| java.lang.Object org.jfree.chart.axis.Axis org.jfree.chart.axis.ValueAxis
All known Subclasses: org.jfree.chart.axis.NumberAxis, org.jfree.chart.axis.DateAxis, org.jfree.experimental.chart.axis.LogAxis, org.jfree.chart.axis.PeriodAxis,
ValueAxis | abstract public class ValueAxis extends Axis implements Cloneable,PublicCloneable,Serializable(Code) | | The base class for axes that display value data, where values are measured
using the double primitive. The two key subclasses are
DateAxis and
NumberAxis .
|
Method Summary | |
abstract protected void | autoAdjustRange() Automatically sets the axis range to fit the range of values in the
dataset. | protected float[] | calculateAnchorPoint(ValueTick tick, double cursor, Rectangle2D dataArea, RectangleEdge edge) Calculates the anchor point for a tick label.
Parameters: tick - the tick. Parameters: cursor - the cursor. Parameters: dataArea - the data area. Parameters: edge - the edge on which the axis is drawn. | public void | centerRange(double value) Centers the axis range about the specified value and sends an
AxisChangeEvent to all registered listeners. | public Object | clone() Returns a clone of the object. | protected void | drawAxisLine(Graphics2D g2, double cursor, Rectangle2D dataArea, RectangleEdge edge) Draws an axis line at the current cursor position and edge. | protected AxisState | drawTickMarksAndLabels(Graphics2D g2, double cursor, Rectangle2D plotArea, Rectangle2D dataArea, RectangleEdge edge) Draws the axis line, tick marks and tick mark labels.
Parameters: g2 - the graphics device. Parameters: cursor - the cursor. Parameters: plotArea - the plot area. Parameters: dataArea - the data area. Parameters: edge - the edge that the axis is aligned with. | public boolean | equals(Object obj) Tests the axis for equality with an arbitrary object.
Parameters: obj - the object (null permitted). | protected double | findMaximumTickLabelHeight(List ticks, Graphics2D g2, Rectangle2D drawArea, boolean vertical) A utility method for determining the height of the tallest tick label.
Parameters: ticks - the ticks. Parameters: g2 - the graphics device. Parameters: drawArea - the area within which the plot and axes should be drawn. Parameters: vertical - a flag that indicates whether or not the tick labels are 'vertical'. | protected double | findMaximumTickLabelWidth(List ticks, Graphics2D g2, Rectangle2D drawArea, boolean vertical) A utility method for determining the width of the widest tick label.
Parameters: ticks - the ticks. Parameters: g2 - the graphics device. Parameters: drawArea - the area within which the plot and axes should be drawn. Parameters: vertical - a flag that indicates whether or not the tick labels are 'vertical'. | public double | getAutoRangeMinimumSize() Returns the minimum size allowed for the axis range when it is
automatically calculated. | protected int | getAutoTickIndex() Returns the auto tick index. | public Range | getDefaultAutoRange() Returns the default auto range. | public Shape | getDownArrow() Returns a shape that can be displayed as an arrow pointing downwards at
the end of an axis line. | public double | getFixedAutoRange() Returns the fixed auto range. | public Shape | getLeftArrow() Returns a shape that can be displayed as an arrow pointing left at the
end of an axis line. | public double | getLowerBound() Returns the lower bound of the axis range. | public double | getLowerMargin() Returns the lower margin for the axis, expressed as a percentage of the
axis range. | public Range | getRange() Returns the range for the axis. | public Shape | getRightArrow() Returns a shape that can be displayed as an arrow pointing right at the
end of an axis line. | public TickUnitSource | getStandardTickUnits() Returns the source for obtaining standard tick units for the axis. | public Shape | getUpArrow() Returns a shape that can be displayed as an arrow pointing upwards at
the end of an axis line. | public double | getUpperBound() Returns the upper bound for the axis range. | public double | getUpperMargin() Returns the upper margin for the axis, expressed as a percentage of the
axis range. | public boolean | isAutoRange() Returns the flag that controls whether or not the axis range is
automatically adjusted to fit the data values. | public boolean | isAutoTickUnitSelection() Returns a flag indicating whether or not the tick unit is automatically
selected from a range of standard tick units. | public boolean | isInverted() Returns a flag that controls the direction of values on the axis.
For a regular axis, values increase from left to right (for a horizontal
axis) and bottom to top (for a vertical axis). | public 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. | public 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. | public boolean | isVerticalTickLabels() Returns true if the tick labels should be rotated (to
vertical), and false otherwise. | abstract public 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.
Parameters: java2DValue - the coordinate in Java2D space. Parameters: area - the area in which the data is plotted. Parameters: edge - the edge along which the axis lies. | public double | lengthToJava2D(double length, Rectangle2D area, RectangleEdge edge) Converts a length in data coordinates into the corresponding length in
Java2D coordinates.
Parameters: length - the length. Parameters: area - the plot area. Parameters: edge - the edge along which the axis lies. | public AxisSpace | reserveSpace(Graphics2D g2, Plot plot, Rectangle2D plotArea, RectangleEdge edge, AxisSpace space) Returns the space required to draw the axis.
Parameters: g2 - the graphics device. Parameters: plot - the plot that the axis belongs to. Parameters: plotArea - the area within which the plot should be drawn. Parameters: edge - the axis location. Parameters: space - the space already reserved (for other axes). | public 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. | public 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. | public 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. | protected void | setAutoRange(boolean auto, boolean notify) Sets the auto range attribute. | public void | setAutoRangeMinimumSize(double size) Sets the auto range minimum size and sends an
AxisChangeEvent
to all registered listeners. | public void | setAutoRangeMinimumSize(double size, boolean notify) Sets the minimum size allowed for the axis range when it is
automatically calculated. | protected void | setAutoTickIndex(int index) Sets the auto tick index. | public void | setAutoTickUnitSelection(boolean flag) Sets a flag indicating whether or not the tick unit is automatically
selected from a range of standard tick units. | public 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. | public void | setDefaultAutoRange(Range range) Sets the default auto range and sends an
AxisChangeEvent to all
registered listeners. | public 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. | public void | setFixedAutoRange(double length) Sets the fixed auto range for the axis. | public 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. | public 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. | public void | setLowerBound(double min) Sets the lower bound for the axis range. | public 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. | public 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. | public 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. | public void | setRange(Range range) Sets the range attribute and sends an
AxisChangeEvent to all
registered listeners. | public void | setRange(Range range, boolean turnOffAutoRange, boolean notify) Sets the range for the axis, if requested, sends an
AxisChangeEvent to all registered listeners. | public void | setRange(double lower, double upper) Sets the axis range and sends an
AxisChangeEvent to all
registered listeners. | public void | setRangeAboutValue(double value, double length) Sets the axis range, where the new range is 'size' in length, and
centered on 'value'. | public 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. | public 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. | public 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. | public 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. | public void | setStandardTickUnits(TickUnitSource source) Sets the source for obtaining standard tick units for the axis and sends
an
AxisChangeEvent to all registered listeners. | public 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. | public void | setUpperBound(double max) Sets the upper bound for the axis range, and sends an
AxisChangeEvent to all registered listeners. | public 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. | public void | setVerticalTickLabels(boolean flag) Sets the flag that controls whether the tick labels are displayed
vertically (that is, rotated 90 degrees from horizontal). | abstract public 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.
Note that it is possible for the coordinate to fall outside the area.
Parameters: value - the data value. Parameters: area - the area for plotting the data. Parameters: edge - the edge along which the axis lies. | public void | zoomRange(double lowerPercent, double upperPercent) Zooms in on the current range. |
DEFAULT_AUTO_RANGE | final public static boolean DEFAULT_AUTO_RANGE(Code) | | The default auto-range value.
|
DEFAULT_AUTO_RANGE_MINIMUM_SIZE | final public static double DEFAULT_AUTO_RANGE_MINIMUM_SIZE(Code) | | The default minimum auto range.
|
DEFAULT_AUTO_TICK_UNIT_SELECTION | final public static boolean DEFAULT_AUTO_TICK_UNIT_SELECTION(Code) | | The default auto-tick-unit-selection value.
|
DEFAULT_INVERTED | final public static boolean DEFAULT_INVERTED(Code) | | The default inverted flag setting.
|
DEFAULT_LOWER_MARGIN | final public static double DEFAULT_LOWER_MARGIN(Code) | | The default value for the lower margin (0.05 = 5%).
|
DEFAULT_RANGE | final public static Range DEFAULT_RANGE(Code) | | The default axis range.
|
DEFAULT_UPPER_MARGIN | final public static double DEFAULT_UPPER_MARGIN(Code) | | The default value for the upper margin (0.05 = 5%).
|
MAXIMUM_TICK_COUNT | final public static int MAXIMUM_TICK_COUNT(Code) | | The maximum tick count.
|
ValueAxis | protected ValueAxis(String label, TickUnitSource standardTickUnits)(Code) | | Constructs a value axis.
Parameters: label - the axis label (null permitted). Parameters: standardTickUnits - the source for standard tick units (null permitted). |
autoAdjustRange | abstract protected void autoAdjustRange()(Code) | | Automatically sets the axis range to fit the range of values in the
dataset. Sometimes this can depend on the renderer used as well (for
example, the renderer may "stack" values, requiring an axis range
greater than otherwise necessary).
|
calculateAnchorPoint | protected float[] calculateAnchorPoint(ValueTick tick, double cursor, Rectangle2D dataArea, RectangleEdge edge)(Code) | | Calculates the anchor point for a tick label.
Parameters: tick - the tick. Parameters: cursor - the cursor. Parameters: dataArea - the data area. Parameters: edge - the edge on which the axis is drawn. The x and y coordinates of the anchor point. |
centerRange | public void centerRange(double value)(Code) | | Centers the axis range about the specified value and sends an
AxisChangeEvent to all registered listeners.
Parameters: value - the center value. |
drawAxisLine | protected void drawAxisLine(Graphics2D g2, double cursor, Rectangle2D dataArea, RectangleEdge edge)(Code) | | Draws an axis line at the current cursor position and edge.
Parameters: g2 - the graphics device. Parameters: cursor - the cursor position. Parameters: dataArea - the data area. Parameters: edge - the edge. |
drawTickMarksAndLabels | protected AxisState drawTickMarksAndLabels(Graphics2D g2, double cursor, Rectangle2D plotArea, Rectangle2D dataArea, RectangleEdge edge)(Code) | | Draws the axis line, tick marks and tick mark labels.
Parameters: g2 - the graphics device. Parameters: cursor - the cursor. Parameters: plotArea - the plot area. Parameters: dataArea - the data area. Parameters: edge - the edge that the axis is aligned with. The width or height used to draw the axis. |
equals | public boolean equals(Object obj)(Code) | | Tests the axis for equality with an arbitrary object.
Parameters: obj - the object (null permitted). true or false . |
findMaximumTickLabelHeight | protected double findMaximumTickLabelHeight(List ticks, Graphics2D g2, Rectangle2D drawArea, boolean vertical)(Code) | | A utility method for determining the height of the tallest tick label.
Parameters: ticks - the ticks. Parameters: g2 - the graphics device. Parameters: drawArea - the area within which the plot and axes should be drawn. Parameters: vertical - a flag that indicates whether or not the tick labels are 'vertical'. The height of the tallest tick label. |
findMaximumTickLabelWidth | protected double findMaximumTickLabelWidth(List ticks, Graphics2D g2, Rectangle2D drawArea, boolean vertical)(Code) | | A utility method for determining the width of the widest tick label.
Parameters: ticks - the ticks. Parameters: g2 - the graphics device. Parameters: drawArea - the area within which the plot and axes should be drawn. Parameters: vertical - a flag that indicates whether or not the tick labels are 'vertical'. The width of the tallest tick label. |
getDownArrow | public Shape getDownArrow()(Code) | | Returns a shape that can be displayed as an arrow pointing downwards at
the end of an axis line.
A shape (never null ). See Also: ValueAxis.setDownArrow(Shape) |
getLowerMargin | public double getLowerMargin()(Code) | | Returns the lower margin for the axis, expressed as a percentage of the
axis range. This controls the space added to the lower end of the axis
when the axis range is automatically calculated (it is ignored when the
axis range is set explicitly). The default value is 0.05 (five percent).
The lower margin. See Also: ValueAxis.setLowerMargin(double) |
getUpArrow | public Shape getUpArrow()(Code) | | Returns a shape that can be displayed as an arrow pointing upwards at
the end of an axis line.
A shape (never null ). See Also: ValueAxis.setUpArrow(Shape) |
getUpperMargin | public double getUpperMargin()(Code) | | Returns the upper margin for the axis, expressed as a percentage of the
axis range. This controls the space added to the lower end of the axis
when the axis range is automatically calculated (it is ignored when the
axis range is set explicitly). The default value is 0.05 (five percent).
The upper margin. See Also: ValueAxis.setUpperMargin(double) |
isAutoRange | public boolean isAutoRange()(Code) | | Returns the flag that controls whether or not the axis range is
automatically adjusted to fit the data values.
The flag. See Also: ValueAxis.setAutoRange(boolean) |
isAutoTickUnitSelection | public boolean isAutoTickUnitSelection()(Code) | | Returns a flag indicating whether or not the tick unit is automatically
selected from a range of standard tick units.
A flag indicating whether or not the tick unit is automaticallyselected. See Also: ValueAxis.setAutoTickUnitSelection(boolean) |
isInverted | public boolean isInverted()(Code) | | Returns a flag that controls the direction of values on the axis.
For a regular axis, values increase from left to right (for a horizontal
axis) and bottom to top (for a vertical axis). When the axis is
'inverted', the values increase in the opposite direction.
The flag. See Also: ValueAxis.setInverted(boolean) |
isNegativeArrowVisible | public boolean isNegativeArrowVisible()(Code) | | Returns a flag that controls whether or not the axis line has an arrow
drawn that points in the negative direction for the axis.
A boolean. See Also: ValueAxis.setNegativeArrowVisible(boolean) |
isPositiveArrowVisible | public boolean isPositiveArrowVisible()(Code) | | Returns a flag that controls whether or not the axis line has an arrow
drawn that points in the positive direction for the axis.
A boolean. See Also: ValueAxis.setPositiveArrowVisible(boolean) |
java2DToValue | abstract public double java2DToValue(double java2DValue, Rectangle2D area, RectangleEdge edge)(Code) | | Converts a coordinate in Java2D space to the corresponding data value,
assuming that the axis runs along one edge of the specified dataArea.
Parameters: java2DValue - the coordinate in Java2D space. Parameters: area - the area in which the data is plotted. Parameters: edge - the edge along which the axis lies. The data value. See Also: ValueAxis.valueToJava2D(double,Rectangle2D,RectangleEdge) |
lengthToJava2D | public double lengthToJava2D(double length, Rectangle2D area, RectangleEdge edge)(Code) | | Converts a length in data coordinates into the corresponding length in
Java2D coordinates.
Parameters: length - the length. Parameters: area - the plot area. Parameters: edge - the edge along which the axis lies. The length in Java2D coordinates. |
reserveSpace | public AxisSpace reserveSpace(Graphics2D g2, Plot plot, Rectangle2D plotArea, RectangleEdge edge, AxisSpace space)(Code) | | Returns the space required to draw the axis.
Parameters: g2 - the graphics device. Parameters: plot - the plot that the axis belongs to. Parameters: plotArea - the area within which the plot should be drawn. Parameters: edge - the axis location. Parameters: space - the space already reserved (for other axes). The space required to draw the axis (including pre-reserved space). |
resizeRange | public void resizeRange(double percent)(Code) | | Increases or decreases the axis range by the specified percentage about
the central value and sends an
AxisChangeEvent to all registered
listeners.
To double the length of the axis range, use 200% (2.0).
To halve the length of the axis range, use 50% (0.5).
Parameters: percent - the resize factor. |
resizeRange | public void resizeRange(double percent, double anchorValue)(Code) | | Increases or decreases the axis range by the specified percentage about
the specified anchor value and sends an
AxisChangeEvent to all
registered listeners.
To double the length of the axis range, use 200% (2.0).
To halve the length of the axis range, use 50% (0.5).
Parameters: percent - the resize factor. Parameters: anchorValue - the new central value after the resize. |
setAutoRange | public void setAutoRange(boolean auto)(Code) | | 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.
Parameters: auto - the new value of the flag. See Also: ValueAxis.isAutoRange() |
setAutoRange | protected void setAutoRange(boolean auto, boolean notify)(Code) | | Sets the auto range attribute. If the notify flag is set,
an
AxisChangeEvent is sent to registered listeners.
Parameters: auto - the flag. Parameters: notify - notify listeners? See Also: ValueAxis.isAutoRange() |
setAutoRangeMinimumSize | public void setAutoRangeMinimumSize(double size, boolean notify)(Code) | | Sets the minimum size allowed for the axis range when it is
automatically calculated.
If requested, an
AxisChangeEvent is forwarded to all registered
listeners.
Parameters: size - the new minimum. Parameters: notify - notify listeners? |
setAutoTickUnitSelection | public void setAutoTickUnitSelection(boolean flag)(Code) | | Sets a flag indicating whether or not the tick unit is automatically
selected from a range of standard tick units. If the flag is changed,
registered listeners are notified that the chart has changed.
Parameters: flag - the new value of the flag. See Also: ValueAxis.isAutoTickUnitSelection() |
setAutoTickUnitSelection | public void setAutoTickUnitSelection(boolean flag, boolean notify)(Code) | | Sets a flag indicating whether or not the tick unit is automatically
selected from a range of standard tick units.
Parameters: flag - the new value of the flag. Parameters: notify - notify listeners? See Also: ValueAxis.isAutoTickUnitSelection() |
setDownArrow | public void setDownArrow(Shape arrow)(Code) | | 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.
Parameters: arrow - the arrow shape (null not permitted). See Also: ValueAxis.getDownArrow() |
setFixedAutoRange | public void setFixedAutoRange(double length)(Code) | | Sets the fixed auto range for the axis.
Parameters: length - the range length. See Also: ValueAxis.getFixedAutoRange() |
setInverted | public void setInverted(boolean flag)(Code) | | Sets a flag that controls the direction of values on the axis, and
notifies registered listeners that the axis has changed.
Parameters: flag - the flag. See Also: ValueAxis.isInverted() |
setLeftArrow | public void setLeftArrow(Shape arrow)(Code) | | 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.
Parameters: arrow - the arrow shape (null not permitted). See Also: ValueAxis.getLeftArrow() |
setLowerMargin | public void setLowerMargin(double margin)(Code) | | Sets the lower margin for the axis (as a percentage of the axis range)
and sends an
AxisChangeEvent to all registered listeners. This
margin is added only when the axis range is auto-calculated - if you set
the axis range manually, the margin is ignored.
Parameters: margin - the margin percentage (for example, 0.05 is five percent). See Also: ValueAxis.getLowerMargin() See Also: ValueAxis.setUpperMargin(double) |
setNegativeArrowVisible | public void setNegativeArrowVisible(boolean visible)(Code) | | 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.
Parameters: visible - the flag. See Also: ValueAxis.setNegativeArrowVisible(boolean) |
setPositiveArrowVisible | public void setPositiveArrowVisible(boolean visible)(Code) | | 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.
Parameters: visible - the flag. See Also: ValueAxis.isPositiveArrowVisible() |
setRange | public void setRange(Range range)(Code) | | Sets the range attribute and sends an
AxisChangeEvent to all
registered listeners. As a side-effect, the auto-range flag is set to
false .
Parameters: range - the range (null not permitted). See Also: ValueAxis.getRange() |
setRange | public void setRange(Range range, boolean turnOffAutoRange, boolean notify)(Code) | | Sets the range for the axis, if requested, sends an
AxisChangeEvent to all registered listeners. As a side-effect,
the auto-range flag is set to false (optional).
Parameters: range - the range (null not permitted). Parameters: turnOffAutoRange - a flag that controls whether or not the auto range is turned off. Parameters: notify - a flag that controls whether or not listeners are notified. See Also: ValueAxis.getRange() |
setRange | public void setRange(double lower, double upper)(Code) | | Sets the axis range and sends an
AxisChangeEvent to all
registered listeners. As a side-effect, the auto-range flag is set to
false .
Parameters: lower - the lower axis limit. Parameters: upper - the upper axis limit. See Also: ValueAxis.getRange() See Also: ValueAxis.setRange(Range) |
setRangeAboutValue | public void setRangeAboutValue(double value, double length)(Code) | | Sets the axis range, where the new range is 'size' in length, and
centered on 'value'.
Parameters: value - the central value. Parameters: length - the range length. |
setRangeWithMargins | public void setRangeWithMargins(Range range)(Code) | | Sets the range for the axis (after first adding the current margins to
the specified range) and sends an
AxisChangeEvent to all
registered listeners.
Parameters: range - the range (null not permitted). |
setRangeWithMargins | public void setRangeWithMargins(Range range, boolean turnOffAutoRange, boolean notify)(Code) | | 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. As a side-effect, the auto-range flag is set to
false (optional).
Parameters: range - the range (excluding margins, null not permitted). Parameters: turnOffAutoRange - a flag that controls whether or not the auto range is turned off. Parameters: notify - a flag that controls whether or not listeners are notified. |
setRangeWithMargins | public void setRangeWithMargins(double lower, double upper)(Code) | | Sets the axis range (after first adding the current margins to the
range) and sends an
AxisChangeEvent to all registered listeners.
As a side-effect, the auto-range flag is set to false .
Parameters: lower - the lower axis limit. Parameters: upper - the upper axis limit. |
setRightArrow | public void setRightArrow(Shape arrow)(Code) | | 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.
Parameters: arrow - the arrow shape (null not permitted). See Also: ValueAxis.getRightArrow() |
setUpArrow | public void setUpArrow(Shape arrow)(Code) | | 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.
Parameters: arrow - the arrow shape (null not permitted). See Also: ValueAxis.getUpArrow() |
setUpperMargin | public void setUpperMargin(double margin)(Code) | | Sets the upper margin for the axis (as a percentage of the axis range)
and sends an
AxisChangeEvent to all registered listeners. This
margin is added only when the axis range is auto-calculated - if you set
the axis range manually, the margin is ignored.
Parameters: margin - the margin percentage (for example, 0.05 is five percent). See Also: ValueAxis.getLowerMargin() See Also: ValueAxis.setLowerMargin(double) |
setVerticalTickLabels | public void setVerticalTickLabels(boolean flag)(Code) | | Sets the flag that controls whether the tick labels are displayed
vertically (that is, rotated 90 degrees from horizontal). If the flag
is changed, an
AxisChangeEvent is sent to all registered
listeners.
Parameters: flag - the flag. See Also: ValueAxis.isVerticalTickLabels() |
valueToJava2D | abstract public double valueToJava2D(double value, Rectangle2D area, RectangleEdge edge)(Code) | | Converts a data value to a coordinate in Java2D space, assuming that the
axis runs along one edge of the specified dataArea.
Note that it is possible for the coordinate to fall outside the area.
Parameters: value - the data value. Parameters: area - the area for plotting the data. Parameters: edge - the edge along which the axis lies. The Java2D coordinate. See Also: ValueAxis.java2DToValue(double,Rectangle2D,RectangleEdge) |
zoomRange | public void zoomRange(double lowerPercent, double upperPercent)(Code) | | Zooms in on the current range.
Parameters: lowerPercent - the new lower bound. Parameters: upperPercent - the new upper bound. |
Methods inherited from org.jfree.chart.axis.Axis | public void addChangeListener(AxisChangeListener listener)(Code)(Java Doc) public Object clone() throws CloneNotSupportedException(Code)(Java Doc) abstract public void configure()(Code)(Java Doc) abstract public AxisState draw(Graphics2D g2, double cursor, Rectangle2D plotArea, Rectangle2D dataArea, RectangleEdge edge, PlotRenderingInfo plotState)(Code)(Java Doc) protected void drawAxisLine(Graphics2D g2, double cursor, Rectangle2D dataArea, RectangleEdge edge)(Code)(Java Doc) protected AxisState drawLabel(String label, Graphics2D g2, Rectangle2D plotArea, Rectangle2D dataArea, RectangleEdge edge, AxisState state)(Code)(Java Doc) public boolean equals(Object obj)(Code)(Java Doc) public Paint getAxisLinePaint()(Code)(Java Doc) public Stroke getAxisLineStroke()(Code)(Java Doc) public double getFixedDimension()(Code)(Java Doc) public String getLabel()(Code)(Java Doc) public double getLabelAngle()(Code)(Java Doc) protected Rectangle2D getLabelEnclosure(Graphics2D g2, RectangleEdge edge)(Code)(Java Doc) public Font getLabelFont()(Code)(Java Doc) public RectangleInsets getLabelInsets()(Code)(Java Doc) public Paint getLabelPaint()(Code)(Java Doc) public Plot getPlot()(Code)(Java Doc) public Font getTickLabelFont()(Code)(Java Doc) public RectangleInsets getTickLabelInsets()(Code)(Java Doc) public Paint getTickLabelPaint()(Code)(Java Doc) public float getTickMarkInsideLength()(Code)(Java Doc) public float getTickMarkOutsideLength()(Code)(Java Doc) public Paint getTickMarkPaint()(Code)(Java Doc) public Stroke getTickMarkStroke()(Code)(Java Doc) public boolean hasListener(EventListener listener)(Code)(Java Doc) public boolean isAxisLineVisible()(Code)(Java Doc) public boolean isTickLabelsVisible()(Code)(Java Doc) public boolean isTickMarksVisible()(Code)(Java Doc) public boolean isVisible()(Code)(Java Doc) protected void notifyListeners(AxisChangeEvent event)(Code)(Java Doc) abstract public List refreshTicks(Graphics2D g2, AxisState state, Rectangle2D dataArea, RectangleEdge edge)(Code)(Java Doc) public void removeChangeListener(AxisChangeListener listener)(Code)(Java Doc) abstract public AxisSpace reserveSpace(Graphics2D g2, Plot plot, Rectangle2D plotArea, RectangleEdge edge, AxisSpace space)(Code)(Java Doc) public void setAxisLinePaint(Paint paint)(Code)(Java Doc) public void setAxisLineStroke(Stroke stroke)(Code)(Java Doc) public void setAxisLineVisible(boolean visible)(Code)(Java Doc) public void setFixedDimension(double dimension)(Code)(Java Doc) public void setLabel(String label)(Code)(Java Doc) public void setLabelAngle(double angle)(Code)(Java Doc) public void setLabelFont(Font font)(Code)(Java Doc) public void setLabelInsets(RectangleInsets insets)(Code)(Java Doc) public void setLabelPaint(Paint paint)(Code)(Java Doc) public void setPlot(Plot plot)(Code)(Java Doc) public void setTickLabelFont(Font font)(Code)(Java Doc) public void setTickLabelInsets(RectangleInsets insets)(Code)(Java Doc) public void setTickLabelPaint(Paint paint)(Code)(Java Doc) public void setTickLabelsVisible(boolean flag)(Code)(Java Doc) public void setTickMarkInsideLength(float length)(Code)(Java Doc) public void setTickMarkOutsideLength(float length)(Code)(Java Doc) public void setTickMarkPaint(Paint paint)(Code)(Java Doc) public void setTickMarkStroke(Stroke stroke)(Code)(Java Doc) public void setTickMarksVisible(boolean flag)(Code)(Java Doc) public void setVisible(boolean flag)(Code)(Java Doc)
|
|
|