org.jfree.chart.axis
public class ExtendedCategoryAxis extends CategoryAxis
Constructor Summary | |
---|---|
ExtendedCategoryAxis(String label)
Creates a new axis.
|
Method Summary | |
---|---|
void | addSubLabel(Comparable category, String label)
Adds a sublabel for a category.
|
Object | clone()
Returns a clone of this axis.
|
protected TextBlock | createLabel(Comparable category, float width, RectangleEdge edge, Graphics2D g2)
Overrides the default behaviour by adding the sublabel to the text
block that is used for the category label.
|
boolean | equals(Object obj)
Tests this axis for equality with an arbitrary object.
|
Font | getSubLabelFont()
Returns the font for the sublabels.
|
Paint | getSubLabelPaint()
Returns the paint for the sublabels.
|
void | setSubLabelFont(Font font)
Sets the font for the sublabels and sends an AxisChangeEvent to
all registered listeners.
|
void | setSubLabelPaint(Paint paint)
Sets the paint for the sublabels and sends an AxisChangeEvent
to all registered listeners.
|
Parameters: label the axis label.
Parameters: category the category. label the label.
Returns: A clone.
Throws: CloneNotSupportedException if there is a problem cloning.
Parameters: category the category. width the width (not used yet). edge the location of the axis. g2 the graphics device.
Returns: A label.
Parameters: obj the object (null
permitted).
Returns: A boolean.
Returns: The font (never null
).
See Also: setSubLabelFont
Returns: The paint (never null
).
See Also: setSubLabelPaint
Parameters: font the font (null
not permitted).
See Also: getSubLabelFont
Parameters: paint the paint (null
not permitted).
See Also: getSubLabelPaint