|
|||||||||
| 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, logger |
| 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. |
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. |
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. |
void |
setSubLabelPaint(java.awt.Paint paint)
Sets the paint for the sublabels. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, 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()
public void setSubLabelFont(java.awt.Font font)
font - the font.public java.awt.Paint getSubLabelPaint()
public void setSubLabelPaint(java.awt.Paint paint)
paint - the paint.
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.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||