Tabnine Logo
TickLabelEntity
Code IndexAdd Tabnine to your IDE (free)

How to use
TickLabelEntity
in
org.jfree.chart.entity

Best Java code snippets using org.jfree.chart.entity.TickLabelEntity (Showing top 5 results out of 315)

origin: org.codehaus.jtstand/jtstand-chart

/**
 * Tests this instance for equality with an arbitrary object.
 *
 * @param obj  the object (<code>null</code> permitted).
 *
 * @return A boolean.
 */
public boolean equals(Object obj) {
  if (obj == this) {
    return true;
  }
  if (!(obj instanceof CategoryLabelEntity)) {
    return false;
  }
  CategoryLabelEntity that = (CategoryLabelEntity) obj;
  if (!ObjectUtilities.equal(this.key, that.key)) {
    return false;
  }
  return super.equals(obj);
}
origin: jfree/jfreechart

/**
 * Returns a hash code for this instance.
 *
 * @return A hash code.
 */
@Override
public int hashCode() {
  int result = super.hashCode();
  result = HashUtils.hashCode(result, this.key);
  return result;
}
origin: org.zkoss.zk/zkex

/**
 * decode TickLabelEntity into key-value pair of Area's componentScope.
 * @param area the Area where the final attribute is set
 * @param info the TickLabelEntity to be decoded.
 */
private void decodeTickLabelInfo(Area area, TickLabelEntity info, Chart chart) {
  if (info == null) {
    return;
  }
  final ChartModel model = chart.getModel(); 
  final int seq = ((Integer)chart.getAttribute("TICK_SEQ")).intValue();
  
  if (model instanceof CategoryModel) {
    Comparable category = ((CategoryModel)model).getCategory(seq);
    area.setAttribute("category", category);
    if (chart.isShowTooltiptext() && info.getToolTipText() == null) {
      area.setTooltiptext(category.toString());
    }
  }
}
 
origin: org.codehaus.jtstand/jtstand-chart

/**
 * Returns a hash code for this instance.
 *
 * @return A hash code.
 */
public int hashCode() {
  int result = super.hashCode();
  result = HashUtilities.hashCode(result, this.key);
  return result;
}
origin: jfree/jfreechart

/**
 * Tests this instance for equality with an arbitrary object.
 *
 * @param obj  the object ({@code null} permitted).
 *
 * @return A boolean.
 */
@Override
public boolean equals(Object obj) {
  if (obj == this) {
    return true;
  }
  if (!(obj instanceof CategoryLabelEntity)) {
    return false;
  }
  CategoryLabelEntity that = (CategoryLabelEntity) obj;
  if (!ObjectUtils.equal(this.key, that.key)) {
    return false;
  }
  return super.equals(obj);
}
org.jfree.chart.entityTickLabelEntity

Javadoc

A chart entity representing a tick label.

Most used methods

  • equals
  • hashCode
  • getToolTipText

Popular in Java

  • Start an intent from android
  • getResourceAsStream (ClassLoader)
  • startActivity (Activity)
  • putExtra (Intent)
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now