com.jrefinery.chart
Class CategoryAxis

java.lang.Object
  |
  +--com.jrefinery.chart.Axis
        |
        +--com.jrefinery.chart.CategoryAxis
All Implemented Interfaces:
AxisConstants
Direct Known Subclasses:
HorizontalCategoryAxis, VerticalCategoryAxis

public abstract class CategoryAxis
extends Axis

An axis that displays categories.

The axis needs to rely on the plot for placement of labels, since the plot controls how the categories are distributed.

Author:
DG

Fields inherited from class com.jrefinery.chart.Axis
fixedDimension, label, labelFont, labelInsets, labelPaint, plot, tickLabelFont, tickLabelInsets, tickLabelPaint, tickLabelsVisible, tickMarkPaint, tickMarkStroke, tickMarksVisible, ticks, visible
 
Fields inherited from interface com.jrefinery.chart.AxisConstants
DEFAULT_AXIS_LABEL_FONT, DEFAULT_AXIS_LABEL_INSETS, DEFAULT_AXIS_LABEL_PAINT, DEFAULT_TICK_LABEL_FONT, DEFAULT_TICK_LABEL_INSETS, DEFAULT_TICK_LABEL_PAINT, DEFAULT_TICK_PAINT, DEFAULT_TICK_STROKE
 
Constructor Summary
protected CategoryAxis(java.lang.String label)
          Constructs a category axis, using default values where necessary.
protected CategoryAxis(java.lang.String label, java.awt.Font labelFont, java.awt.Paint labelPaint, java.awt.Insets labelInsets, boolean categoryLabelsVisible, java.awt.Font categoryLabelFont, java.awt.Paint categoryLabelPaint, java.awt.Insets categoryLabelInsets, boolean tickMarksVisible, java.awt.Stroke tickMarkStroke, java.awt.Paint tickMarkPaint)
          Constructs a category axis.
 
Methods inherited from class com.jrefinery.chart.Axis
addChangeListener, configure, draw, getFixedDimension, getLabel, getLabelFont, getLabelInsets, getLabelPaint, getMaxTickLabelWidth, getPlot, getTickLabelFont, getTickLabelInsets, getTickLabelPaint, getTickMarkPaint, getTickMarkStroke, isCompatiblePlot, isTickLabelsVisible, isTickMarksVisible, isVisible, notifyListeners, refreshTicks, removeChangeListener, setFixedDimension, setLabel, setLabelFont, setLabelInsets, setLabelPaint, setPlot, setTickLabelFont, setTickLabelInsets, setTickLabelPaint, setTickLabelsVisible, setTickMarkPaint, setTickMarkStroke, setTickMarksVisible, setVisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CategoryAxis

protected CategoryAxis(java.lang.String label,
                       java.awt.Font labelFont,
                       java.awt.Paint labelPaint,
                       java.awt.Insets labelInsets,
                       boolean categoryLabelsVisible,
                       java.awt.Font categoryLabelFont,
                       java.awt.Paint categoryLabelPaint,
                       java.awt.Insets categoryLabelInsets,
                       boolean tickMarksVisible,
                       java.awt.Stroke tickMarkStroke,
                       java.awt.Paint tickMarkPaint)
Constructs a category axis.
Parameters:
label - the axis label.
labelFont - the font for displaying the axis label.
labelPaint - the paint used to draw the axis label.
labelInsets - determines the amount of blank space around the label.
categoryLabelsVisible - a flag indicating whether or not category labels are visible.
categoryLabelFont - the font used to display category (tick) labels.
categoryLabelPaint - the paint used to draw category (tick) labels.
categoryLabelInsets - the insets for the category labels.
tickMarksVisible - a flag indicating whether or not tick marks are visible.
tickMarkStroke - the stroke used to draw tick marks (if visible).
tickMarkPaint - the paint used to draw tick marks (if visible).

CategoryAxis

protected CategoryAxis(java.lang.String label)
Constructs a category axis, using default values where necessary.
Parameters:
label - the axis label.