Package org.jfree.chart.axis
Class ExtendedCategoryAxis
java.lang.Object
org.jfree.chart.axis.Axis
org.jfree.chart.axis.CategoryAxis
org.jfree.chart.axis.ExtendedCategoryAxis
- All Implemented Interfaces:
Serializable
,Cloneable
public class ExtendedCategoryAxis extends CategoryAxis
An extended version of the
CategoryAxis
class that supports sublabels
on the axis.- See Also:
- Serialized Form
-
Field Summary
Fields inherited from class org.jfree.chart.axis.CategoryAxis
DEFAULT_AXIS_MARGIN, DEFAULT_CATEGORY_MARGIN
Fields inherited from class org.jfree.chart.axis.Axis
DEFAULT_AXIS_LABEL_FONT, DEFAULT_AXIS_LABEL_INSETS, DEFAULT_AXIS_LABEL_PAINT, DEFAULT_AXIS_LINE_PAINT, DEFAULT_AXIS_LINE_STROKE, DEFAULT_AXIS_VISIBLE, DEFAULT_TICK_LABEL_FONT, DEFAULT_TICK_LABEL_INSETS, DEFAULT_TICK_LABEL_PAINT, DEFAULT_TICK_LABELS_VISIBLE, DEFAULT_TICK_MARK_INSIDE_LENGTH, DEFAULT_TICK_MARK_OUTSIDE_LENGTH, DEFAULT_TICK_MARK_PAINT, DEFAULT_TICK_MARK_STROKE, DEFAULT_TICK_MARKS_VISIBLE
-
Constructor Summary
Constructors Constructor Description ExtendedCategoryAxis(String label)
Creates a new axis. -
Method Summary
Modifier and Type Method Description void
addSubLabel(Comparable category, String label)
Adds a sublabel for a category.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.void
setSubLabelPaint(Paint paint)
Sets the paint for the sublabels.Methods inherited from class org.jfree.chart.axis.CategoryAxis
addCategoryLabelToolTip, clearCategoryLabelToolTips, clone, configure, draw, equals, getBottomCategoryLabelPosition, getCategoryEnd, getCategoryJava2DCoordinate, getCategoryLabelPositionOffset, getCategoryLabelPositions, getCategoryMargin, getCategoryMiddle, getCategoryStart, getLeftCategoryLabelPosition, getLowerMargin, getMaxCategoryLabelWidthRatio, getRightCategoryLabelPosition, getSkipCategoryLabelsToFit, getTopCategoryLabelPosition, getUpperMargin, isVerticalCategoryLabels, refreshTicks, removeCategoryLabelToolTip, reserveSpace, setBottomCategoryLabelPosition, setCategoryLabelPositionOffset, setCategoryLabelPositions, setCategoryMargin, setLeftCategoryLabelPosition, setLowerMargin, setMaxCategoryLabelWidthRatio, setRightCategoryLabelPosition, setSkipCategoryLabelsToFit, setSkipLabels, setTopCategoryLabelPosition, setUpperMargin, setVerticalCategoryLabels
Methods inherited from class org.jfree.chart.axis.Axis
addChangeListener, getAxisLinePaint, getAxisLineStroke, getFixedDimension, getLabel, getLabelAngle, getLabelFont, getLabelInsets, getLabelPaint, getPlot, getTickLabelFont, getTickLabelInsets, getTickLabelPaint, getTickMarkInsideLength, getTickMarkOutsideLength, getTickMarkPaint, getTickMarkStroke, isAxisLineVisible, isTickLabelsVisible, isTickMarksVisible, isVisible, removeChangeListener, setAxisLinePaint, setAxisLineStroke, setAxisLineVisible, setFixedDimension, setLabel, setLabelAngle, setLabelFont, setLabelInsets, setLabelPaint, setPlot, setTickLabelFont, setTickLabelInsets, setTickLabelPaint, setTickLabelsVisible, setTickMarkInsideLength, setTickMarkOutsideLength, setTickMarkPaint, setTickMarkStroke, setTickMarksVisible, setVisible
-
Constructor Details
-
ExtendedCategoryAxis
Creates a new axis.- Parameters:
label
- the axis label.
-
-
Method Details
-
getSubLabelFont
Returns the font for the sublabels.- Returns:
- the font.
-
setSubLabelFont
Sets the font for the sublabels.- Parameters:
font
- the font.
-
getSubLabelPaint
Returns the paint for the sublabels.- Returns:
- the paint.
-
setSubLabelPaint
Sets the paint for the sublabels.- Parameters:
paint
- the paint.
-
addSubLabel
Adds a sublabel for a category.- Parameters:
category
- the category.label
- the label.
-