com.jrefinery.chart
Class CategoryAxis

java.lang.Object
  extended by com.jrefinery.chart.Axis
      extended by 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.


Field Summary
 
Fields inherited from class com.jrefinery.chart.Axis
fixedDimension, label, labelFont, labelInsets, labelPaint, listeners, plot, tickLabelFont, tickLabelInsets, tickLabelPaint, tickLabelsVisible, 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_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)
          Constructs a category axis.
 
Method Summary
 
Methods inherited from class com.jrefinery.chart.Axis
addChangeListener, configure, draw, getFixedDimension, getLabel, getLabelFont, getLabelInsets, getLabelPaint, getMaxTickLabelWidth, getPlot, getTickLabelFont, getTickLabelInsets, getTickLabelPaint, getTickMarkStroke, isCompatiblePlot, isTickLabelsVisible, isTickMarksVisible, isVisible, notifyListeners, refreshTicks, removeChangeListener, setFixedDimension, setLabel, setLabelFont, setLabelInsets, setLabelPaint, setPlot, setTickLabelFont, setTickLabelInsets, setTickLabelPaint, setTickLabelsVisible, 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)
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 - 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 - Flag indicating whether or not tick marks are visible.
tickMarkStroke - The stroke 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.


Copyright © 2003 MBARI.

The Monterey Bay Aquarium Research Institute (MBARI) provides this documentation and code "as is", with no warranty, express or implied, of its quality or consistency. It is provided without support and without obligation on the part of MBARI to assist in its use, correction, modification, or enhancement.