|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jfree.chart.axis.Axis
org.jfree.chart.axis.CategoryAxis
org.jfree.chart.axis.ExtendedCategoryAxis
public class ExtendedCategoryAxis
An extended version of the CategoryAxis class that supports
sublabels on the axis.
| Field Summary |
|---|
| Fields inherited from class org.jfree.chart.axis.CategoryAxis |
|---|
DEFAULT_AXIS_MARGIN, DEFAULT_CATEGORY_MARGIN |
| Constructor Summary | |
|---|---|
ExtendedCategoryAxis(java.lang.String label)
Creates a new axis. |
|
| Method Summary | |
|---|---|
void |
addSubLabel(java.lang.Comparable category,
java.lang.String label)
Adds a sublabel for a category. |
java.lang.Object |
clone()
Returns a clone of this axis. |
protected org.jfree.text.TextBlock |
createLabel(java.lang.Comparable category,
float width,
org.jfree.ui.RectangleEdge edge,
java.awt.Graphics2D g2)
Overrides the default behaviour by adding the sublabel to the text block that is used for the category label. |
boolean |
equals(java.lang.Object obj)
Tests this axis for equality with an arbitrary object. |
java.awt.Font |
getSubLabelFont()
Returns the font for the sublabels. |
java.awt.Paint |
getSubLabelPaint()
Returns the paint for the sublabels. |
void |
setSubLabelFont(java.awt.Font font)
Sets the font for the sublabels and sends an AxisChangeEvent to
all registered listeners. |
void |
setSubLabelPaint(java.awt.Paint paint)
Sets the paint for the sublabels and sends an AxisChangeEvent
to all registered listeners. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExtendedCategoryAxis(java.lang.String label)
label - the axis label.| Method Detail |
|---|
public java.awt.Font getSubLabelFont()
null).setSubLabelFont(Font)public void setSubLabelFont(java.awt.Font font)
AxisChangeEvent to
all registered listeners.
font - the font (null not permitted).getSubLabelFont()public java.awt.Paint getSubLabelPaint()
null).setSubLabelPaint(Paint)public void setSubLabelPaint(java.awt.Paint paint)
AxisChangeEvent
to all registered listeners.
paint - the paint (null not permitted).getSubLabelPaint()
public void addSubLabel(java.lang.Comparable category,
java.lang.String label)
category - the category.label - the label.
protected org.jfree.text.TextBlock createLabel(java.lang.Comparable category,
float width,
org.jfree.ui.RectangleEdge edge,
java.awt.Graphics2D g2)
createLabel in class CategoryAxiscategory - the category.width - the width (not used yet).edge - the location of the axis.g2 - the graphics device.
public boolean equals(java.lang.Object obj)
equals in class CategoryAxisobj - the object (null permitted).
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class CategoryAxisjava.lang.CloneNotSupportedException - if there is a problem cloning.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||