public class ExtendedCategoryAxis extends CategoryAxis
CategoryAxis
class that supports
sublabels on the axis.DEFAULT_AXIS_MARGIN, DEFAULT_CATEGORY_MARGIN
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 and Description |
---|
ExtendedCategoryAxis(String label)
Creates a new axis.
|
Modifier and Type | Method and Description |
---|---|
void |
addSubLabel(Comparable category,
String label)
Adds a sublabel for a category.
|
Object |
clone()
Returns a clone of this axis.
|
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. |
addCategoryLabelToolTip, addCategoryLabelURL, clearCategoryLabelToolTips, clearCategoryLabelURLs, configure, draw, drawTickMarks, getCategoryEnd, getCategoryJava2DCoordinate, getCategoryLabelPositionOffset, getCategoryLabelPositions, getCategoryLabelToolTip, getCategoryLabelURL, getCategoryMargin, getCategoryMiddle, getCategoryMiddle, getCategorySeriesMiddle, getCategorySeriesMiddle, getCategoryStart, getLowerMargin, getMaximumCategoryLabelLines, getMaximumCategoryLabelWidthRatio, getTickLabelFont, getTickLabelPaint, getUpperMargin, hashCode, refreshTicks, removeCategoryLabelToolTip, removeCategoryLabelURL, reserveSpace, setCategoryLabelPositionOffset, setCategoryLabelPositions, setCategoryMargin, setLowerMargin, setMaximumCategoryLabelLines, setMaximumCategoryLabelWidthRatio, setTickLabelFont, setTickLabelPaint, setUpperMargin
addChangeListener, createAttributedLabel, getAttributedLabel, getAxisLinePaint, getAxisLineStroke, getFixedDimension, getLabel, getLabelAngle, getLabelFont, getLabelInsets, getLabelLocation, getLabelPaint, getMinorTickMarkInsideLength, getMinorTickMarkOutsideLength, getPlot, getTickLabelFont, getTickLabelInsets, getTickLabelPaint, getTickMarkInsideLength, getTickMarkOutsideLength, getTickMarkPaint, getTickMarkStroke, hasListener, isAxisLineVisible, isMinorTickMarksVisible, isTickLabelsVisible, isTickMarksVisible, isVisible, removeChangeListener, setAttributedLabel, setAttributedLabel, setAxisLinePaint, setAxisLineStroke, setAxisLineVisible, setFixedDimension, setLabel, setLabelAngle, setLabelFont, setLabelInsets, setLabelInsets, setLabelLocation, setLabelPaint, setMinorTickMarkInsideLength, setMinorTickMarkOutsideLength, setMinorTickMarksVisible, setPlot, setTickLabelFont, setTickLabelInsets, setTickLabelPaint, setTickLabelsVisible, setTickMarkInsideLength, setTickMarkOutsideLength, setTickMarkPaint, setTickMarkStroke, setTickMarksVisible, setVisible
public ExtendedCategoryAxis(String label)
label
- the axis label.public Font getSubLabelFont()
null
).setSubLabelFont(Font)
public void setSubLabelFont(Font font)
AxisChangeEvent
to
all registered listeners.font
- the font (null
not permitted).getSubLabelFont()
public Paint getSubLabelPaint()
null
).setSubLabelPaint(Paint)
public void setSubLabelPaint(Paint paint)
AxisChangeEvent
to all registered listeners.paint
- the paint (null
not permitted).getSubLabelPaint()
public void addSubLabel(Comparable category, String label)
category
- the category.label
- the label.public boolean equals(Object obj)
equals
in class CategoryAxis
obj
- the object (null
permitted).public Object clone() throws CloneNotSupportedException
clone
in class CategoryAxis
CloneNotSupportedException
- if there is a problem cloning.Jas4pp 1.5 © Java Analysis Studio for Particle Physics