Save This Page
Home » jcommon-1.0.13 » org.jfree » chart » axis » [javadoc | source]
org.jfree.chart.axis
public class: ExtendedCategoryAxis [javadoc | source]
java.lang.Object
   org.jfree.chart.axis.Axis
      org.jfree.chart.axis.CategoryAxis
         org.jfree.chart.axis.ExtendedCategoryAxis

All Implemented Interfaces:
    Cloneable, Serializable

An extended version of the CategoryAxis class that supports sublabels on the axis.
Field Summary
static final  long serialVersionUID    For serialization. 
Fields inherited from org.jfree.chart.axis.CategoryAxis:
DEFAULT_AXIS_MARGIN,  DEFAULT_CATEGORY_MARGIN
Fields inherited from org.jfree.chart.axis.Axis:
DEFAULT_AXIS_VISIBLE,  DEFAULT_AXIS_LABEL_FONT,  DEFAULT_AXIS_LABEL_PAINT,  DEFAULT_AXIS_LABEL_INSETS,  DEFAULT_AXIS_LINE_PAINT,  DEFAULT_AXIS_LINE_STROKE,  DEFAULT_TICK_LABELS_VISIBLE,  DEFAULT_TICK_LABEL_FONT,  DEFAULT_TICK_LABEL_PAINT,  DEFAULT_TICK_LABEL_INSETS,  DEFAULT_TICK_MARKS_VISIBLE,  DEFAULT_TICK_MARK_STROKE,  DEFAULT_TICK_MARK_PAINT,  DEFAULT_TICK_MARK_INSIDE_LENGTH,  DEFAULT_TICK_MARK_OUTSIDE_LENGTH
Constructor:
 public ExtendedCategoryAxis(String label) 
    Creates a new axis.
    Parameters:
    label - the axis label.
Method from org.jfree.chart.axis.ExtendedCategoryAxis Summary:
addSubLabel,   clone,   createLabel,   equals,   getSubLabelFont,   getSubLabelPaint,   setSubLabelFont,   setSubLabelPaint
Methods from org.jfree.chart.axis.CategoryAxis:
addCategoryLabelToolTip,   calculateCategoryGapSize,   calculateCategorySize,   calculateTextBlockHeight,   calculateTextBlockWidth,   clearCategoryLabelToolTips,   clone,   configure,   createLabel,   draw,   drawCategoryLabels,   drawCategoryLabels,   equals,   getCategoryEnd,   getCategoryJava2DCoordinate,   getCategoryLabelPositionOffset,   getCategoryLabelPositions,   getCategoryLabelToolTip,   getCategoryMargin,   getCategoryMiddle,   getCategorySeriesMiddle,   getCategoryStart,   getLowerMargin,   getMaximumCategoryLabelLines,   getMaximumCategoryLabelWidthRatio,   getTickLabelFont,   getTickLabelPaint,   getUpperMargin,   hashCode,   refreshTicks,   removeCategoryLabelToolTip,   reserveSpace,   setCategoryLabelPositionOffset,   setCategoryLabelPositions,   setCategoryMargin,   setLowerMargin,   setMaximumCategoryLabelLines,   setMaximumCategoryLabelWidthRatio,   setTickLabelFont,   setTickLabelPaint,   setUpperMargin
Methods from org.jfree.chart.axis.Axis:
addChangeListener,   clone,   configure,   draw,   drawAxisLine,   drawLabel,   equals,   getAxisLinePaint,   getAxisLineStroke,   getFixedDimension,   getLabel,   getLabelAngle,   getLabelEnclosure,   getLabelFont,   getLabelInsets,   getLabelPaint,   getPlot,   getTickLabelFont,   getTickLabelInsets,   getTickLabelPaint,   getTickMarkInsideLength,   getTickMarkOutsideLength,   getTickMarkPaint,   getTickMarkStroke,   hasListener,   isAxisLineVisible,   isTickLabelsVisible,   isTickMarksVisible,   isVisible,   notifyListeners,   refreshTicks,   removeChangeListener,   reserveSpace,   setAxisLinePaint,   setAxisLineStroke,   setAxisLineVisible,   setFixedDimension,   setLabel,   setLabelAngle,   setLabelFont,   setLabelInsets,   setLabelInsets,   setLabelPaint,   setPlot,   setTickLabelFont,   setTickLabelInsets,   setTickLabelPaint,   setTickLabelsVisible,   setTickMarkInsideLength,   setTickMarkOutsideLength,   setTickMarkPaint,   setTickMarkStroke,   setTickMarksVisible,   setVisible
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jfree.chart.axis.ExtendedCategoryAxis Detail:
 public  void addSubLabel(Comparable category,
    String label) 
    Adds a sublabel for a category.
 public Object clone() throws CloneNotSupportedException 
    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.
 public boolean equals(Object obj) 
    Tests this axis for equality with an arbitrary object.
 public Font getSubLabelFont() 
    Returns the font for the sublabels.
 public Paint getSubLabelPaint() 
    Returns the paint for the sublabels.
 public  void setSubLabelFont(Font font) 
    Sets the font for the sublabels and sends an AxisChangeEvent to all registered listeners.
 public  void setSubLabelPaint(Paint paint) 
    Sets the paint for the sublabels and sends an AxisChangeEvent to all registered listeners.