com.jrefinery.chart
Class VerticalNumberAxis3D

java.lang.Object
  extended by com.jrefinery.chart.Axis
      extended by com.jrefinery.chart.ValueAxis
          extended by com.jrefinery.chart.NumberAxis
              extended by com.jrefinery.chart.VerticalNumberAxis
                  extended by com.jrefinery.chart.VerticalNumberAxis3D
All Implemented Interfaces:
AxisConstants, VerticalAxis

public class VerticalNumberAxis3D
extends VerticalNumberAxis

A standard linear value axis, for values displayed vertically.


Field Summary
static double DEFAULT_EFFECT_3D
          The default 3D-effect (in pixels).
 
Fields inherited from class com.jrefinery.chart.VerticalNumberAxis
verticalLabel
 
Fields inherited from class com.jrefinery.chart.NumberAxis
autoRangeIncludesZero, autoRangeMinimumSize, autoRangeStickyZero, DEFAULT_AUTO_RANGE_INCLUDES_ZERO, DEFAULT_AUTO_RANGE_STICKY_ZERO, DEFAULT_LOWER_MARGIN, DEFAULT_MINIMUM_AUTO_RANGE, DEFAULT_TICK_UNIT, DEFAULT_UPPER_MARGIN, inverted, lowerMargin, standardTickUnits, tickUnit, upperMargin
 
Fields inherited from class com.jrefinery.chart.ValueAxis
anchorValue, autoRange, autoTickIndex, autoTickUnitSelection, crosshairLockedOnData, crosshairPaint, crosshairStroke, crosshairValue, crosshairVisible, DEFAULT_AUTO_RANGE, DEFAULT_CROSSHAIR_PAINT, DEFAULT_CROSSHAIR_STROKE, DEFAULT_CROSSHAIR_VISIBLE, DEFAULT_GRID_LINE_PAINT, DEFAULT_GRID_LINE_STROKE, DEFAULT_MAXIMUM_AXIS_VALUE, DEFAULT_MINIMUM_AXIS_VALUE, fixedAutoRange, gridLinesVisible, gridPaint, gridStroke, maximumRangeLength, minimumRangeLength, range
 
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
VerticalNumberAxis3D()
          Constructs a VerticalNumberAxis3D, with no label and default attributes.
VerticalNumberAxis3D(java.lang.String label)
          Constructs a VerticalNumberAxis3D, with the specified label and default attributes.
VerticalNumberAxis3D(java.lang.String label, java.awt.Font labelFont, double minimumAxisValue, double maximumAxisValue)
          Constructs a VerticalNumberAxis3D, using default attributes where necessary.
VerticalNumberAxis3D(java.lang.String label, java.awt.Font labelFont, java.awt.Paint labelPaint, java.awt.Insets labelInsets, boolean labelDrawnVertical, boolean tickLabelsVisible, java.awt.Font tickLabelFont, java.awt.Paint tickLabelPaint, java.awt.Insets tickLabelInsets, boolean tickMarksVisible, java.awt.Stroke tickMarkStroke, boolean autoRange, boolean autoRangeIncludesZero, boolean autoRangeStickyZero, java.lang.Number autoRangeMinimum, double minimumAxisValue, double maximumAxisValue, boolean inverted, boolean autoTickUnitSelection, NumberTickUnit tickUnit, boolean gridLinesVisible, java.awt.Stroke gridStroke, java.awt.Paint gridPaint, boolean crosshairVisible, double crosshairValue, java.awt.Stroke crosshairStroke, java.awt.Paint crosshairPaint, double effect3d)
          Constructs a new VerticalNumberAxis3D.
 
Method Summary
 void draw(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D drawArea, java.awt.geom.Rectangle2D dataArea)
          Draws the plot on a Java 2D graphics device (such as the screen or a printer).
 double getEffect3d()
          Return axis 3d deep along 'Z' axis.
 
Methods inherited from class com.jrefinery.chart.VerticalNumberAxis
autoAdjustRange, configure, isCompatiblePlot, isVerticalLabel, refreshTicks, reserveAxisArea, reserveWidth, setVerticalLabel, translateJava2DtoValue, translateValueToJava2D
 
Methods inherited from class com.jrefinery.chart.NumberAxis
autoRangeIncludesZero, autoRangeStickyZero, calculateHighestVisibleTickValue, calculateLowestVisibleTickValue, calculateVisibleTickCount, getAutoRangeMinimumSize, getLowerMargin, getStandardTickUnits, getTickUnit, getUpperMargin, isInverted, setAutoRangeIncludesZero, setAutoRangeMinimumSize, setAutoRangeStickyZero, setInverted, setLowerMargin, setStandardTickUnits, setTickUnit, setUpperMargin
 
Methods inherited from class com.jrefinery.chart.ValueAxis
centerRange, getAnchorValue, getCrosshairPaint, getCrosshairStroke, getCrosshairValue, getFixedAutoRange, getGridPaint, getGridStroke, getMaximumAxisValue, getMinimumAxisValue, getRange, isAutoRange, isAutoTickUnitSelection, isCrosshairLockedOnData, isCrosshairVisible, isGridLinesVisible, resizeRange, resizeRange, setAnchoredRange, setAnchorValue, setAutoRange, setAutoTickUnitSelection, setCrosshairLockedOnData, setCrosshairPaint, setCrosshairStroke, setCrosshairValue, setCrosshairVisible, setFixedAutoRange, setGridLinesVisible, setGridPaint, setGridStroke, setMaximumAxisValue, setMinimumAxisValue, setRange, setRange, setRangeAboutValue
 
Methods inherited from class com.jrefinery.chart.Axis
addChangeListener, getFixedDimension, getLabel, getLabelFont, getLabelInsets, getLabelPaint, getMaxTickLabelWidth, getPlot, getTickLabelFont, getTickLabelInsets, getTickLabelPaint, getTickMarkStroke, isTickLabelsVisible, isTickMarksVisible, isVisible, notifyListeners, 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
 

Field Detail

DEFAULT_EFFECT_3D

public static final double DEFAULT_EFFECT_3D
The default 3D-effect (in pixels).

See Also:
Constant Field Values
Constructor Detail

VerticalNumberAxis3D

public VerticalNumberAxis3D()
Constructs a VerticalNumberAxis3D, with no label and default attributes.


VerticalNumberAxis3D

public VerticalNumberAxis3D(java.lang.String label)
Constructs a VerticalNumberAxis3D, with the specified label and default attributes.

Parameters:
label - The axis label.

VerticalNumberAxis3D

public VerticalNumberAxis3D(java.lang.String label,
                            java.awt.Font labelFont,
                            double minimumAxisValue,
                            double maximumAxisValue)
Constructs a VerticalNumberAxis3D, using default attributes where necessary.

Parameters:
label - The axis label.
labelFont - The font for displaying the axis label.
minimumAxisValue - The lowest value shown on the axis.
maximumAxisValue - The highest value shown on the axis.

VerticalNumberAxis3D

public VerticalNumberAxis3D(java.lang.String label,
                            java.awt.Font labelFont,
                            java.awt.Paint labelPaint,
                            java.awt.Insets labelInsets,
                            boolean labelDrawnVertical,
                            boolean tickLabelsVisible,
                            java.awt.Font tickLabelFont,
                            java.awt.Paint tickLabelPaint,
                            java.awt.Insets tickLabelInsets,
                            boolean tickMarksVisible,
                            java.awt.Stroke tickMarkStroke,
                            boolean autoRange,
                            boolean autoRangeIncludesZero,
                            boolean autoRangeStickyZero,
                            java.lang.Number autoRangeMinimum,
                            double minimumAxisValue,
                            double maximumAxisValue,
                            boolean inverted,
                            boolean autoTickUnitSelection,
                            NumberTickUnit tickUnit,
                            boolean gridLinesVisible,
                            java.awt.Stroke gridStroke,
                            java.awt.Paint gridPaint,
                            boolean crosshairVisible,
                            double crosshairValue,
                            java.awt.Stroke crosshairStroke,
                            java.awt.Paint crosshairPaint,
                            double effect3d)
Constructs a new VerticalNumberAxis3D.

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.
labelDrawnVertical - Flag indicating whether or not the label is drawn vertically.
tickLabelsVisible - Flag indicating whether or not tick labels are visible.
tickLabelFont - The font used to display tick labels.
tickLabelPaint - The paint used to draw tick labels.
tickLabelInsets - Determines the amount of blank space around tick labels.
tickMarksVisible - Flag indicating whether or not tick marks are visible.
tickMarkStroke - The stroke used to draw tick marks (if visible).
autoRange - Flag indicating whether or not the axis is automatically scaled to fit the data.
autoRangeIncludesZero - A flag indicating whether or not zero *must* be displayed on axis.
autoRangeMinimum - The smallest automatic range allowed.
minimumAxisValue - The lowest value shown on the axis.
maximumAxisValue - The highest value shown on the axis.
inverted - A flag indicating whether the axis is normal or inverted (inverted means running from positive to negative).
autoTickUnitSelection - A flag indicating whether or not the tick units are selected automatically.
tickUnit - The tick unit.
gridLinesVisible - Flag indicating whether or not grid lines are visible for this axis.
gridStroke - The pen/brush used to display grid lines (if visible).
gridPaint - The color used to display grid lines (if visible).
crosshairValue - The value at which to draw an optional crosshair (null permitted).
crosshairStroke - The pen/brush used to draw the crosshair.
crosshairPaint - The color used to draw the crosshair.
effect3d - 'Z' axis deep.
Method Detail

getEffect3d

public double getEffect3d()
Return axis 3d deep along 'Z' axis.


draw

public void draw(java.awt.Graphics2D g2,
                 java.awt.geom.Rectangle2D drawArea,
                 java.awt.geom.Rectangle2D dataArea)
Draws the plot on a Java 2D graphics device (such as the screen or a printer).

Overrides:
draw in class VerticalNumberAxis
Parameters:
g2 - The graphics device.
drawArea - The area within which the chart should be drawn.
dataArea - The area within which the plot should be drawn (a subset of the drawArea).


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.