public class

CategoryTick

extends Tick
java.lang.Object
   ↳ org.jfree.chart.axis.Tick
     ↳ org.jfree.chart.axis.CategoryTick

Class Overview

A tick for a CategoryAxis.

Summary

Public Constructors
CategoryTick(Comparable category, TextBlock label, TextBlockAnchor labelAnchor, TextAnchor rotationAnchor, double angle)
Creates a new tick.
Public Methods
boolean equals(Object obj)
Tests this category tick for equality with an arbitrary object.
Comparable getCategory()
Returns the category.
TextBlock getLabel()
Returns the label.
TextBlockAnchor getLabelAnchor()
Returns the label anchor.
int hashCode()
Returns a hash code for this object.
[Expand]
Inherited Methods
From class org.jfree.chart.axis.Tick
From class java.lang.Object

Public Constructors

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).

Public Methods

public boolean equals (Object obj)

Tests this category tick for equality with an arbitrary object.

Parameters
obj the object (null permitted).
Returns
  • A boolean.

public Comparable getCategory ()

Returns the category.

Returns
  • The category.

public TextBlock getLabel ()

Returns the label.

Returns
  • The label.

public TextBlockAnchor getLabelAnchor ()

Returns the label anchor.

Returns
  • The label anchor.

public int hashCode ()

Returns a hash code for this object.

Returns
  • A hash code.