Class CategoryTick

java.lang.Object
org.jfree.chart.axis.Tick
org.jfree.chart.axis.CategoryTick
All Implemented Interfaces:
Serializable, Cloneable

public class CategoryTick extends Tick
A tick for a CategoryAxis.
See Also:
  • Constructor Details

    • CategoryTick

      public CategoryTick(Comparable category, TextBlock label, TextBlockAnchor labelAnchor, TextAnchor rotationAnchor, double angle)
      Creates a new tick.
      Parameters:
      category - the category.
      label - the label.
      labelAnchor - the label anchor.
      rotationAnchor - the rotation anchor.
      angle - the rotation angle (in radians).
  • Method Details

    • getCategory

      Returns the category.
      Returns:
      The category.
    • getLabel

      public TextBlock getLabel()
      Returns the label.
      Returns:
      The label.
    • getLabelAnchor

      Returns the label anchor.
      Returns:
      The label anchor.
    • equals

      public boolean equals(Object obj)
      Tests this category tick for equality with an arbitrary object.
      Overrides:
      equals in class Tick
      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 Tick
      Parameters:
      other - Object
      Returns:
      true ONLY if the parameter is THIS class type
    • hashCode

      public int hashCode()
      Returns a hash code for this object.
      Overrides:
      hashCode in class Tick
      Returns:
      A hash code.