abstract
void
|
autoAdjustRange()
Automatically sets the axis range to fit the range of values in the
dataset.
|
float[]
|
calculateAnchorPoint(ValueTick tick, double cursor, Rectangle2D dataArea, RectangleEdge edge)
Calculates the anchor point for a tick label.
|
void
|
centerRange(double value)
Centers the axis range about the specified value and sends an
AxisChangeEvent to all registered listeners.
|
Object
|
clone()
Returns a clone of the object.
|
void
|
drawAxisLine(Graphics2D g2, double cursor, Rectangle2D dataArea, RectangleEdge edge)
Draws an axis line at the current cursor position and edge.
|
AxisState
|
drawTickMarksAndLabels(Graphics2D g2, double cursor, Rectangle2D plotArea, Rectangle2D dataArea, RectangleEdge edge)
Draws the axis line, tick marks and tick mark labels.
|
boolean
|
equals(Object obj)
Tests the axis for equality with an arbitrary object.
|
double
|
findMaximumTickLabelHeight(List ticks, Graphics2D g2, Rectangle2D drawArea, boolean vertical)
A utility method for determining the height of the tallest tick label.
|
double
|
findMaximumTickLabelWidth(List ticks, Graphics2D g2, Rectangle2D drawArea, boolean vertical)
A utility method for determining the width of the widest tick label.
|
double
|
getAutoRangeMinimumSize()
Returns the minimum size allowed for the axis range when it is
automatically calculated.
|
int
|
getAutoTickIndex()
Returns the auto tick index.
|
Range
|
getDefaultAutoRange()
Returns the default auto range.
|
Shape
|
getDownArrow()
Returns a shape that can be displayed as an arrow pointing downwards at
the end of an axis line.
|
double
|
getFixedAutoRange()
Returns the fixed auto range.
|
Shape
|
getLeftArrow()
Returns a shape that can be displayed as an arrow pointing left at the
end of an axis line.
|
double
|
getLowerBound()
Returns the lower bound of the axis range.
|
double
|
getLowerMargin()
Returns the lower margin for the axis, expressed as a percentage of the
axis range.
|
int
|
getMinorTickCount()
Returns the number of minor tick marks to display.
|
Range
|
getRange()
Returns the range for the axis.
|
Shape
|
getRightArrow()
Returns a shape that can be displayed as an arrow pointing right at the
end of an axis line.
|
TickUnitSource
|
getStandardTickUnits()
Returns the source for obtaining standard tick units for the axis.
|
Shape
|
getUpArrow()
Returns a shape that can be displayed as an arrow pointing upwards at
the end of an axis line.
|
double
|
getUpperBound()
Returns the upper bound for the axis range.
|
double
|
getUpperMargin()
Returns the upper margin for the axis, expressed as a percentage of the
axis range.
|
boolean
|
isAutoRange()
Returns the flag that controls whether or not the axis range is
automatically adjusted to fit the data values.
|
boolean
|
isAutoTickUnitSelection()
Returns a flag indicating whether or not the tick unit is automatically
selected from a range of standard tick units.
|
boolean
|
isInverted()
Returns a flag that controls the direction of values on the axis.
|
boolean
|
isNegativeArrowVisible()
Returns a flag that controls whether or not the axis line has an arrow
drawn that points in the negative direction for the axis.
|
boolean
|
isPositiveArrowVisible()
Returns a flag that controls whether or not the axis line has an arrow
drawn that points in the positive direction for the axis.
|
boolean
|
isVerticalTickLabels()
Returns true if the tick labels should be rotated (to
vertical), and false otherwise.
|
abstract
double
|
java2DToValue(double java2DValue, Rectangle2D area, RectangleEdge edge)
Converts a coordinate in Java2D space to the corresponding data value,
assuming that the axis runs along one edge of the specified dataArea.
|
double
|
lengthToJava2D(double length, Rectangle2D area, RectangleEdge edge)
Converts a length in data coordinates into the corresponding length in
Java2D coordinates.
|
void
|
pan(double percent)
Slides the axis range by the specified percentage.
|
AxisSpace
|
reserveSpace(Graphics2D g2, Plot plot, Rectangle2D plotArea, RectangleEdge edge, AxisSpace space)
Returns the space required to draw the axis.
|
void
|
resizeRange(double percent)
Increases or decreases the axis range by the specified percentage about
the central value and sends an AxisChangeEvent to all registered
listeners.
|
void
|
resizeRange(double percent, double anchorValue)
Increases or decreases the axis range by the specified percentage about
the specified anchor value and sends an AxisChangeEvent to all
registered listeners.
|
void
|
resizeRange2(double percent, double anchorValue)
Increases or decreases the axis range by the specified percentage about
the specified anchor value and sends an AxisChangeEvent to all
registered listeners.
|
void
|
setAutoRange(boolean auto, boolean notify)
Sets the auto range attribute.
|
void
|
setAutoRange(boolean auto)
Sets a flag that determines whether or not the axis range is
automatically adjusted to fit the data, and notifies registered
listeners that the axis has been modified.
|
void
|
setAutoRangeMinimumSize(double size)
Sets the auto range minimum size and sends an AxisChangeEvent
to all registered listeners.
|
void
|
setAutoRangeMinimumSize(double size, boolean notify)
Sets the minimum size allowed for the axis range when it is
automatically calculated.
|
void
|
setAutoTickIndex(int index)
Sets the auto tick index.
|
void
|
setAutoTickUnitSelection(boolean flag, boolean notify)
Sets a flag indicating whether or not the tick unit is automatically
selected from a range of standard tick units.
|
void
|
setAutoTickUnitSelection(boolean flag)
Sets a flag indicating whether or not the tick unit is automatically
selected from a range of standard tick units.
|
void
|
setDefaultAutoRange(Range range)
Sets the default auto range and sends an AxisChangeEvent to all
registered listeners.
|
void
|
setDownArrow(Shape arrow)
Sets the shape that can be displayed as an arrow pointing downwards at
the end of an axis line and sends an AxisChangeEvent to all
registered listeners.
|
void
|
setFixedAutoRange(double length)
Sets the fixed auto range for the axis.
|
void
|
setInverted(boolean flag)
Sets a flag that controls the direction of values on the axis, and
notifies registered listeners that the axis has changed.
|
void
|
setLeftArrow(Shape arrow)
Sets the shape that can be displayed as an arrow pointing left at the
end of an axis line and sends an AxisChangeEvent to all
registered listeners.
|
void
|
setLowerBound(double min)
Sets the lower bound for the axis range.
|
void
|
setLowerMargin(double margin)
Sets the lower margin for the axis (as a percentage of the axis range)
and sends an AxisChangeEvent to all registered listeners.
|
void
|
setMinorTickCount(int count)
Sets the number of minor tick marks to display, and sends an
AxisChangeEvent to all registered listeners.
|
void
|
setNegativeArrowVisible(boolean visible)
Sets a flag that controls whether or not the axis lines has an arrow
drawn that points in the negative direction for the axis, and sends an
AxisChangeEvent to all registered listeners.
|
void
|
setPositiveArrowVisible(boolean visible)
Sets a flag that controls whether or not the axis lines has an arrow
drawn that points in the positive direction for the axis, and sends an
AxisChangeEvent to all registered listeners.
|
void
|
setRange(Range range, boolean turnOffAutoRange, boolean notify)
Sets the range for the axis, if requested, sends an
AxisChangeEvent to all registered listeners.
|
void
|
setRange(double lower, double upper)
Sets the axis range and sends an AxisChangeEvent to all
registered listeners.
|
void
|
setRange(Range range)
Sets the range attribute and sends an AxisChangeEvent to all
registered listeners.
|
void
|
setRangeAboutValue(double value, double length)
Sets the axis range, where the new range is 'size' in length, and
centered on 'value'.
|
void
|
setRangeWithMargins(Range range)
Sets the range for the axis (after first adding the current margins to
the specified range) and sends an AxisChangeEvent to all
registered listeners.
|
void
|
setRangeWithMargins(double lower, double upper)
Sets the axis range (after first adding the current margins to the
range) and sends an AxisChangeEvent to all registered listeners.
|
void
|
setRangeWithMargins(Range range, boolean turnOffAutoRange, boolean notify)
Sets the range for the axis after first adding the current margins to
the range and, if requested, sends an AxisChangeEvent to all
registered listeners.
|
void
|
setRightArrow(Shape arrow)
Sets the shape that can be displayed as an arrow pointing rightwards at
the end of an axis line and sends an AxisChangeEvent to all
registered listeners.
|
void
|
setStandardTickUnits(TickUnitSource source)
Sets the source for obtaining standard tick units for the axis and sends
an AxisChangeEvent to all registered listeners.
|
void
|
setUpArrow(Shape arrow)
Sets the shape that can be displayed as an arrow pointing upwards at
the end of an axis line and sends an AxisChangeEvent to all
registered listeners.
|
void
|
setUpperBound(double max)
Sets the upper bound for the axis range, and sends an
AxisChangeEvent to all registered listeners.
|
void
|
setUpperMargin(double margin)
Sets the upper margin for the axis (as a percentage of the axis range)
and sends an AxisChangeEvent to all registered listeners.
|
void
|
setVerticalTickLabels(boolean flag)
Sets the flag that controls whether the tick labels are displayed
vertically (that is, rotated 90 degrees from horizontal).
|
abstract
double
|
valueToJava2D(double value, Rectangle2D area, RectangleEdge edge)
Converts a data value to a coordinate in Java2D space, assuming that the
axis runs along one edge of the specified dataArea.
|
void
|
zoomRange(double lowerPercent, double upperPercent)
Zooms in on the current range.
|