org.jfree.chart.axis
Class CategoryTick

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

public class CategoryTick
extends Tick

A tick for a CategoryAxis.

See Also:
Serialized Form

Constructor Summary
CategoryTick(java.lang.Comparable category, org.jfree.text.TextBlock label, org.jfree.text.TextBlockAnchor labelAnchor, org.jfree.ui.TextAnchor rotationAnchor, double angle)
          Creates a new tick.
 
Method Summary
 java.lang.Comparable getCategory()
          Returns the category.
 org.jfree.text.TextBlock getLabel()
          Returns the label.
 org.jfree.text.TextBlockAnchor getLabelAnchor()
          Returns the label anchor.
 
Methods inherited from class org.jfree.chart.axis.Tick
clone, getAngle, getRotationAnchor, getText, getTextAnchor, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CategoryTick

public CategoryTick(java.lang.Comparable category,
                    org.jfree.text.TextBlock label,
                    org.jfree.text.TextBlockAnchor labelAnchor,
                    org.jfree.ui.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 Detail

getCategory

public java.lang.Comparable getCategory()
Returns the category.

Returns:
the category.

getLabel

public org.jfree.text.TextBlock getLabel()
Returns the label.

Returns:
the label.

getLabelAnchor

public org.jfree.text.TextBlockAnchor getLabelAnchor()
Returns the label anchor.

Returns:
the label anchor.