JIDE 3.5.15

com.jidesoft.chart.axis
Class CategoryAxis<T>

java.lang.Object
  extended by com.jidesoft.chart.axis.Axis
      extended by com.jidesoft.chart.axis.CategoryAxis<T>
Type Parameters:
T - the type of object described by the categories
All Implemented Interfaces:
PropertyChangeListener, EventListener

public class CategoryAxis<T>
extends Axis

An axis used specifically for displaying categorical values.


Field Summary
 
Fields inherited from class com.jidesoft.chart.axis.Axis
MIN_RESOLUTION, PROPERTY_AXIS_COLOR, PROPERTY_LABEL, PROPERTY_MINOR_TICK_COLOR, PROPERTY_MINOR_TICK_LENGTH, PROPERTY_RANGE, PROPERTY_STROKE, PROPERTY_TICK_CALCULATOR, PROPERTY_TICK_COLOR, PROPERTY_TICK_FONT, PROPERTY_TICK_LABEL_COLOR, PROPERTY_TICK_LENGTH, PROPERTY_TICKS, PROPERTY_UPDATE_OTHER_AXES
 
Constructor Summary
CategoryAxis()
          Creates a Category axis for a Category range with no categories.
CategoryAxis(AutoPositionedLabel label)
          Creates an empty category axis, and uses the supplied label object as a label for the axis
CategoryAxis(CategoryRange<T> range)
          Creates a category axis using the supplied CategoryRange to specify where to place the ticks and tick labels.
CategoryAxis(CategoryRange<T> range, String text)
          Creates a CategoryAxis using the supplied CategoryRange to specify where to place the ticks and tick labels.
CategoryAxis(String text)
          Creates an empty category axis, but uses the supplied text as a label
 
Method Summary
 AxisQuantity getQuantity()
          Returns the CATEGORY quantity
protected  void init()
           
 void setRange(double min, double max)
          Sets the range for the axis to be a numeric range with the supplied minimum and maximum values
 void setRange(Range<?> range)
          Sets the range for the axis to be the supplied range
 void setRange(Range<?> range, boolean updateOtherAxes)
          Set the range of the axis.
 void setRange(Range<?> range, boolean updateOtherAxes, boolean fireEvent)
          Sets the range, with the option of not firing a property change event.
 
Methods inherited from class com.jidesoft.chart.axis.Axis
addPropertyChangeListener, equals, getAxisColor, getAxisRenderer, getAxisTransform, getDomain, getFloatingPosition, getLabel, getLabelWidth, getMinorTickColor, getMinorTickLength, getOutputRange, getPlacement, getRange, getStroke, getTickCalculator, getTickColor, getTickFont, getTickLabelColor, getTickLabelOffset, getTickLabelRotation, getTickLength, getTicks, hashCode, isFlipped, isLabelVisible, isTicksVisible, isVisible, labelWidth, labelWidth, maximum, midPoint, minimum, propertyChange, removePropertyChangeListener, render, setAxisColor, setAxisRenderer, setAxisTransform, setDomain, setFlipped, setFloatingPosition, setLabel, setLabel, setLabelVisible, setLabelWidth, setMinorTickColor, setMinorTickLength, setPlacement, setStroke, setTickCalculator, setTickColor, setTickFont, setTickLabelColor, setTickLabelOffset, setTickLabelRotation, setTickLength, setTicksVisible, setVisible, toString, updateTicks, zoom, zoomFromPosition
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CategoryAxis

public CategoryAxis()
Creates a Category axis for a Category range with no categories. (This is one way of creating an axis with no ticks!) If you use one of the constructors that does not take a CategoryRange as a parameter, then you would need to call setRange() with a CategoryRange instance some time later instead.


CategoryAxis

public CategoryAxis(String text)
Creates an empty category axis, but uses the supplied text as a label

Parameters:
text - the text label for the axis

CategoryAxis

public CategoryAxis(AutoPositionedLabel label)
Creates an empty category axis, and uses the supplied label object as a label for the axis

Parameters:
label - the axis label

CategoryAxis

public CategoryAxis(CategoryRange<T> range)
Creates a category axis using the supplied CategoryRange to specify where to place the ticks and tick labels.

Parameters:
range - the range of Category values to display along the axis

CategoryAxis

public CategoryAxis(CategoryRange<T> range,
                    String text)
Creates a CategoryAxis using the supplied CategoryRange to specify where to place the ticks and tick labels.

Parameters:
range - the range of Category values to display along the axis
text - the text to use as the axis label
Method Detail

init

protected void init()

getQuantity

public AxisQuantity getQuantity()
Returns the CATEGORY quantity

Overrides:
getQuantity in class Axis
Returns:
the CATEGORY quantity

setRange

public void setRange(Range<?> range,
                     boolean updateOtherAxes,
                     boolean fireEvent)
Description copied from class: Axis
Sets the range, with the option of not firing a property change event. This can be useful when considering performance, but only when you know that there will be an update to the chart soon anyway (probably because of some other related event).

Overrides:
setRange in class Axis

setRange

public void setRange(Range<?> range)
Description copied from class: Axis
Sets the range for the axis to be the supplied range

Overrides:
setRange in class Axis
Parameters:
range - the new range

setRange

public void setRange(Range<?> range,
                     boolean updateOtherAxes)
Description copied from class: Axis
Set the range of the axis.

Overrides:
setRange in class Axis

setRange

public void setRange(double min,
                     double max)
Description copied from class: Axis
Sets the range for the axis to be a numeric range with the supplied minimum and maximum values

Overrides:
setRange in class Axis
Parameters:
min - the minimum value for the range
max - the maximum value for the range

JIDE 3.5.15