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

All Implemented Interfaces:
    Serializable, Cloneable, PublicCloneable

A standard linear value axis that replaces integer values with symbols.
Field Summary
public static final  Paint DEFAULT_GRID_BAND_PAINT    The default grid band paint. 
public static final  Paint DEFAULT_GRID_BAND_ALTERNATE_PAINT    The default paint for alternate grid bands.
    since: 1.0.7 -
 
Fields inherited from org.jfree.chart.axis.NumberAxis:
DEFAULT_AUTO_RANGE_INCLUDES_ZERO,  DEFAULT_AUTO_RANGE_STICKY_ZERO,  DEFAULT_TICK_UNIT,  DEFAULT_VERTICAL_TICK_LABELS
Fields inherited from org.jfree.chart.axis.ValueAxis:
DEFAULT_RANGE,  DEFAULT_AUTO_RANGE,  DEFAULT_INVERTED,  DEFAULT_AUTO_RANGE_MINIMUM_SIZE,  DEFAULT_LOWER_MARGIN,  DEFAULT_UPPER_MARGIN,  DEFAULT_LOWER_BOUND,  DEFAULT_UPPER_BOUND,  DEFAULT_AUTO_TICK_UNIT_SELECTION,  MAXIMUM_TICK_COUNT
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 SymbolAxis(String label,
    String[] sv) 
    Constructs a symbol axis, using default attribute values where necessary.
    Parameters:
    label - the axis label (null permitted).
    sv - the list of symbols to display instead of the numeric values.
Method from org.jfree.chart.axis.SymbolAxis Summary:
autoAdjustRange,   draw,   drawGridBands,   drawGridBandsHorizontal,   drawGridBandsVertical,   equals,   getGridBandAlternatePaint,   getGridBandPaint,   getSymbols,   isGridBandsVisible,   refreshTicks,   refreshTicksHorizontal,   refreshTicksVertical,   selectAutoTickUnit,   setGridBandAlternatePaint,   setGridBandPaint,   setGridBandsVisible,   valueToString
Methods from org.jfree.chart.axis.NumberAxis:
autoAdjustRange,   calculateHighestVisibleTickValue,   calculateLowestVisibleTickValue,   calculateVisibleTickCount,   clone,   configure,   createIntegerTickUnits,   createIntegerTickUnits,   createStandardTickUnits,   createStandardTickUnits,   draw,   equals,   estimateMaximumTickLabelHeight,   estimateMaximumTickLabelWidth,   getAutoRangeIncludesZero,   getAutoRangeStickyZero,   getMarkerBand,   getNumberFormatOverride,   getRangeType,   getTickUnit,   hashCode,   java2DToValue,   refreshTicks,   refreshTicksHorizontal,   refreshTicksVertical,   selectAutoTickUnit,   selectHorizontalAutoTickUnit,   selectVerticalAutoTickUnit,   setAutoRangeIncludesZero,   setAutoRangeStickyZero,   setMarkerBand,   setNumberFormatOverride,   setRangeType,   setTickUnit,   setTickUnit,   valueToJava2D
Methods from org.jfree.chart.axis.ValueAxis:
autoAdjustRange,   calculateAnchorPoint,   centerRange,   clone,   drawAxisLine,   drawTickMarksAndLabels,   equals,   findMaximumTickLabelHeight,   findMaximumTickLabelWidth,   getAutoRangeMinimumSize,   getAutoTickIndex,   getDefaultAutoRange,   getDownArrow,   getFixedAutoRange,   getLeftArrow,   getLowerBound,   getLowerMargin,   getRange,   getRightArrow,   getStandardTickUnits,   getUpArrow,   getUpperBound,   getUpperMargin,   isAutoRange,   isAutoTickUnitSelection,   isInverted,   isNegativeArrowVisible,   isPositiveArrowVisible,   isVerticalTickLabels,   java2DToValue,   lengthToJava2D,   reserveSpace,   resizeRange,   resizeRange,   setAutoRange,   setAutoRange,   setAutoRangeMinimumSize,   setAutoRangeMinimumSize,   setAutoTickIndex,   setAutoTickUnitSelection,   setAutoTickUnitSelection,   setDefaultAutoRange,   setDownArrow,   setFixedAutoRange,   setInverted,   setLeftArrow,   setLowerBound,   setLowerMargin,   setNegativeArrowVisible,   setPositiveArrowVisible,   setRange,   setRange,   setRange,   setRangeAboutValue,   setRangeWithMargins,   setRangeWithMargins,   setRangeWithMargins,   setRightArrow,   setStandardTickUnits,   setUpArrow,   setUpperBound,   setUpperMargin,   setVerticalTickLabels,   valueToJava2D,   zoomRange
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.SymbolAxis Detail:
 protected  void autoAdjustRange() 
    Rescales the axis to ensure that all data is visible.
 public AxisState draw(Graphics2D g2,
    double cursor,
    Rectangle2D plotArea,
    Rectangle2D dataArea,
    RectangleEdge edge,
    PlotRenderingInfo plotState) 
    Draws the axis on a Java 2D graphics device (such as the screen or a printer).
 protected  void drawGridBands(Graphics2D g2,
    Rectangle2D plotArea,
    Rectangle2D dataArea,
    RectangleEdge edge,
    List ticks) 
    Draws the grid bands. Alternate bands are colored using gridBandPaint (DEFAULT_GRID_BAND_PAINT by default).
 protected  void drawGridBandsHorizontal(Graphics2D g2,
    Rectangle2D plotArea,
    Rectangle2D dataArea,
    boolean firstGridBandIsDark,
    List ticks) 
    Draws the grid bands for the axis when it is at the top or bottom of the plot.
 protected  void drawGridBandsVertical(Graphics2D g2,
    Rectangle2D drawArea,
    Rectangle2D plotArea,
    boolean firstGridBandIsDark,
    List ticks) 
    Draws the grid bands for the axis when it is at the top or bottom of the plot.
 public boolean equals(Object obj) 
    Tests this axis for equality with an arbitrary object.
 public Paint getGridBandAlternatePaint() 
    Returns the paint used for alternate grid bands.
 public Paint getGridBandPaint() 
    Returns the paint used to color the grid bands.
 public String[] getSymbols() 
    Returns an array of the symbols for the axis.
 public boolean isGridBandsVisible() 
    Returns true if the grid bands are showing, and false otherwise.
 public List refreshTicks(Graphics2D g2,
    AxisState state,
    Rectangle2D dataArea,
    RectangleEdge edge) 
    Calculates the positions of the tick labels for the axis, storing the results in the tick label list (ready for drawing).
 protected List refreshTicksHorizontal(Graphics2D g2,
    Rectangle2D dataArea,
    RectangleEdge edge) 
    Calculates the positions of the tick labels for the axis, storing the results in the tick label list (ready for drawing).
 protected List refreshTicksVertical(Graphics2D g2,
    Rectangle2D dataArea,
    RectangleEdge edge) 
    Calculates the positions of the tick labels for the axis, storing the results in the tick label list (ready for drawing).
 protected  void selectAutoTickUnit(Graphics2D g2,
    Rectangle2D dataArea,
    RectangleEdge edge) 
    This operation is not supported by this axis.
 public  void setGridBandAlternatePaint(Paint paint) 
    Sets the paint used for alternate grid bands and sends a AxisChangeEvent to all registered listeners.
 public  void setGridBandPaint(Paint paint) 
    Sets the grid band paint and sends an AxisChangeEvent to all registered listeners.
 public  void setGridBandsVisible(boolean flag) 
    Sets the visibility of the grid bands and notifies registered listeners that the axis has been modified.
 public String valueToString(double value) 
    Converts a value to a string, using the list of symbols.