Class CategoryLabelEntity

All Implemented Interfaces:
Serializable, Cloneable, PublicCloneable

An entity to represent the labels on a CategoryAxis.
See Also:
  • Constructor Details

    • CategoryLabelEntity

      public CategoryLabelEntity(Comparable key, Shape area, String toolTipText, String urlText)
      Creates a new entity.
      Parameters:
      key - the category key (null not permitted).
      area - the hotspot.
      toolTipText - the tool tip text.
      urlText - the URL text.
  • Method Details

    • getKey

      public Comparable getKey()
      Returns the category key.
      Returns:
      The category key.
    • equals

      public boolean equals(Object obj)
      Tests this instance 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()
      Returns a hash code for this instance.
      Overrides:
      hashCode in class ChartEntity
      Returns:
      A hash code.
    • toString

      public String toString()
      Returns a string representation of this entity. This is primarily useful for debugging.
      Overrides:
      toString in class ChartEntity
      Returns:
      A string representation of this entity.