Class XYAnnotationEntity

java.lang.Object
org.jfree.chart.entity.ChartEntity
org.jfree.chart.entity.XYAnnotationEntity
All Implemented Interfaces:
Serializable, Cloneable, PublicCloneable

public class XYAnnotationEntity extends ChartEntity implements Serializable
A chart entity that represents an annotation on an XYPlot.
See Also:
  • Constructor Details

    • XYAnnotationEntity

      public XYAnnotationEntity(Shape hotspot, int rendererIndex, String toolTipText, String urlText)
      Creates a new entity.
      Parameters:
      hotspot - the area.
      rendererIndex - the rendererIndex (zero-based index).
      toolTipText - the tool tip text.
      urlText - the URL text for HTML image maps.
  • Method Details

    • getRendererIndex

      public int getRendererIndex()
      Returns the renderer index.
      Returns:
      The renderer index.
    • setRendererIndex

      public void setRendererIndex(int index)
      Sets the renderer index.
      Parameters:
      index - the item index (zero-based).
    • equals

      public boolean equals(Object obj)
      Tests the entity for equality with an arbitrary object.
      Overrides:
      equals in class ChartEntity
      Parameters:
      obj - the object (null permitted).
      Returns:
      A boolean.
    • canEqual

      public boolean canEqual(Object other)
      Ensures symmetry between super/subclass implementations of equals. For more detail, see http://jqno.nl/equalsverifier/manual/inheritance.
      Overrides:
      canEqual in class ChartEntity
      Parameters:
      other - Object
      Returns:
      true ONLY if the parameter is THIS class type
    • hashCode

      public int hashCode()
      Description copied from class: ChartEntity
      Returns a hash code for this instance.
      Overrides:
      hashCode in class ChartEntity
      Returns:
      A hash code.