Class ValueAxis
- All Implemented Interfaces:
Serializable,Cloneable,org.jfree.util.PublicCloneable
- Direct Known Subclasses:
DateAxis,NumberAxis
public abstract class ValueAxis extends Axis implements Cloneable, org.jfree.util.PublicCloneable, Serializable
double primitive. The two key subclasses are
DateAxis and NumberAxis.- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description static booleanDEFAULT_AUTO_RANGEThe default auto-range value.static doubleDEFAULT_AUTO_RANGE_MINIMUM_SIZEThe default minimum auto range.static booleanDEFAULT_AUTO_TICK_UNIT_SELECTIONThe default auto-tick-unit-selection value.static booleanDEFAULT_INVERTEDThe default inverted flag setting.static doubleDEFAULT_LOWER_BOUNDThe default lower bound for the axis.static doubleDEFAULT_LOWER_MARGINThe default value for the lower margin (0.05 = 5%).static RangeDEFAULT_RANGEThe default axis range.static doubleDEFAULT_UPPER_BOUNDThe default upper bound for the axis.static doubleDEFAULT_UPPER_MARGINThe default value for the upper margin (0.05 = 5%).static intMAXIMUM_TICK_COUNTThe maximum tick count.Fields inherited from class org.jfree.chart.axis.Axis
DEFAULT_AXIS_LABEL_FONT, DEFAULT_AXIS_LABEL_INSETS, DEFAULT_AXIS_LABEL_PAINT, DEFAULT_AXIS_LINE_PAINT, DEFAULT_AXIS_LINE_STROKE, DEFAULT_AXIS_VISIBLE, DEFAULT_TICK_LABEL_FONT, DEFAULT_TICK_LABEL_INSETS, DEFAULT_TICK_LABEL_PAINT, DEFAULT_TICK_LABELS_VISIBLE, DEFAULT_TICK_MARK_INSIDE_LENGTH, DEFAULT_TICK_MARK_OUTSIDE_LENGTH, DEFAULT_TICK_MARK_PAINT, DEFAULT_TICK_MARK_STROKE, DEFAULT_TICK_MARKS_VISIBLE -
Method Summary
Modifier and Type Method Description voidcenterRange(double value)Centers the axis range about the specified value and sends anAxisChangeEventto all registered listeners.Objectclone()Returns a clone of the object.booleanequals(Object obj)Tests the axis for equality with an arbitrary object.doublegetAutoRangeMinimumSize()Returns the minimum size allowed for the axis range when it is automatically calculated.ShapegetDownArrow()Returns a shape that can be displayed as an arrow pointing downwards at the end of an axis line.doublegetFixedAutoRange()Returns the fixed auto range.ShapegetLeftArrow()Returns a shape that can be displayed as an arrow pointing left at the end of an axis line.doublegetLowerBound()Returns the lower bound of the axis range.doublegetLowerMargin()Returns the lower margin for the axis, expressed as a percentage of the axis range.doublegetMaximumAxisValue()Deprecated.Use getUpperBound().doublegetMinimumAxisValue()Deprecated.Use getLowerBound().RangegetRange()Returns the range for the axis.ShapegetRightArrow()Returns a shape that can be displayed as an arrow pointing right at the end of an axis line.TickUnitSourcegetStandardTickUnits()Returns the source for obtaining standard tick units for the axis.ShapegetUpArrow()Returns a shape that can be displayed as an arrow pointing upwards at the end of an axis line.doublegetUpperBound()Returns the upper bound for the axis range.doublegetUpperMargin()Returns the upper margin for the axis, expressed as a percentage of the axis range.booleanisAutoRange()Returns true if the axis range is automatically adjusted to fit the data.booleanisAutoTickUnitSelection()Returns a flag indicating whether or not the tick unit is automatically selected from a range of standard tick units.booleanisInverted()Returns a flag that controls the direction of values on the axis.booleanisNegativeArrowVisible()Returns a flag that controls whether or not the axis line has an arrow drawn that points in the negative direction for the axis.booleanisPositiveArrowVisible()Returns a flag that controls whether or not the axis line has an arrow drawn that points in the positive direction for the axis.booleanisVerticalTickLabels()Returns true if the tick labels should be rotated (to vertical), and false otherwise.abstract doublejava2DToValue(double java2DValue, Rectangle2D area, org.jfree.ui.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.AxisSpacereserveSpace(Graphics2D g2, Plot plot, Rectangle2D plotArea, org.jfree.ui.RectangleEdge edge, AxisSpace space, boolean isOpositeAxisVisible)Returns the space required to draw the axis.voidresizeRange(double percent)Increases or decreases the axis range by the specified percentage about the central value and sends anAxisChangeEventto all registered listeners.voidresizeRange(double percent, double anchorValue)Increases or decreases the axis range by the specified percentage about the specified anchor value and sends anAxisChangeEventto all registered listeners.voidsetAutoRange(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.voidsetAutoRangeMinimumSize(double size)Sets the auto range minimum size and sends anAxisChangeEventto all registered listeners.voidsetAutoRangeMinimumSize(double size, boolean notify)Sets the minimum size allowed for the axis range when it is automatically calculated.voidsetAutoTickUnitSelection(boolean flag)Sets a flag indicating whether or not the tick unit is automatically selected from a range of standard tick units.voidsetAutoTickUnitSelection(boolean flag, boolean notify)Sets a flag indicating whether or not the tick unit is automatically selected from a range of standard tick units.voidsetDownArrow(Shape arrow)Sets the shape that can be displayed as an arrow pointing downwards at the end of an axis line and sends anAxisChangeEventto all registered listeners.voidsetFixedAutoRange(double length)Sets the fixed auto range for the axis.voidsetInverted(boolean flag)Sets a flag that controls the direction of values on the axis, and notifies registered listeners that the axis has changed.voidsetLeftArrow(Shape arrow)Sets the shape that can be displayed as an arrow pointing left at the end of an axis line and sends anAxisChangeEventto all registered listeners.voidsetLowerBound(double min)Sets the lower bound for the axis range.voidsetLowerMargin(double margin)Sets the lower margin for the axis (as a percentage of the axis range) and sends anAxisChangeEventto all registered listeners.voidsetMaximumAxisValue(double max)Deprecated.Use setUpperBound(...).voidsetMinimumAxisValue(double min)Deprecated.Use setLowerBound(...).voidsetNegativeArrowVisible(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 anAxisChangeEventto all registered listeners.voidsetPositiveArrowVisible(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 anAxisChangeEventto all registered listeners.voidsetRange(double lower, double upper)Sets the axis range and sends anAxisChangeEventto all registered listeners.voidsetRange(Range range)Sets the range attribute and sends anAxisChangeEventto all registered listeners.voidsetRange(Range range, boolean turnOffAutoRange, boolean notify)Sets the range for the axis, if requested, sends anAxisChangeEventto all registered listeners.voidsetRangeAboutValue(double value, double length)Sets the axis range, where the new range is 'size' in length, and centered on 'value'.voidsetRangeWithMargins(double lower, double upper)Sets the axis range (after first adding the current margins to the range) and sends anAxisChangeEventto all registered listeners.voidsetRangeWithMargins(Range range)Sets the range for the axis (after first adding the current margins to the specified range) and sends anAxisChangeEventto all registered listeners.voidsetRangeWithMargins(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 anAxisChangeEventto all registered listeners.voidsetRightArrow(Shape arrow)Sets the shape that can be displayed as an arrow pointing rightwards at the end of an axis line and sends anAxisChangeEventto all registered listeners.voidsetStandardTickUnits(TickUnitSource source)Sets the source for obtaining standard tick units for the axis and sends anAxisChangeEventto all registered listeners.voidsetUpArrow(Shape arrow)Sets the shape that can be displayed as an arrow pointing upwards at the end of an axis line and sends anAxisChangeEventto all registered listeners.voidsetUpperBound(double max)Sets the upper bound for the axis range.voidsetUpperMargin(double margin)Sets the upper margin for the axis (as a percentage of the axis range) and sends anAxisChangeEventto all registered listeners.voidsetVerticalTickLabels(boolean flag)Sets the flag that controls whether the tick labels are displayed vertically (that is, rotated 90 degrees from horizontal).doubletranslateJava2DtoValue(float java2DValue, Rectangle2D dataArea, org.jfree.ui.RectangleEdge edge)Deprecated.Use translateJava2DToValue(double, ...).doubletranslateJava2DToValue(double java2DValue, Rectangle2D area, org.jfree.ui.RectangleEdge edge)Deprecated.Use java2DToValue instead.doubletranslateValueToJava2D(double value, Rectangle2D area, org.jfree.ui.RectangleEdge edge)Deprecated.Use valueToJava2D instead.abstract doublevalueToJava2D(double value, Rectangle2D area, org.jfree.ui.RectangleEdge edge)Converts a data value to a coordinate in Java2D space, assuming that the axis runs along one edge of the specified dataArea.voidzoomRange(double lowerPercent, double upperPercent)Zooms in on the current range.Methods inherited from class org.jfree.chart.axis.Axis
addChangeListener, configure, draw, getAxisLinePaint, getAxisLineStroke, getFixedDimension, getLabel, getLabelAngle, getLabelFont, getLabelInsets, getLabelPaint, getPlot, getTickLabelFont, getTickLabelInsets, getTickLabelPaint, getTickMarkInsideLength, getTickMarkOutsideLength, getTickMarkPaint, getTickMarkStroke, isAxisLineVisible, isTickLabelsVisible, isTickMarksVisible, isVisible, refreshTicks, removeChangeListener, setAxisLinePaint, setAxisLineStroke, setAxisLineVisible, setFixedDimension, setLabel, setLabelAngle, setLabelFont, setLabelInsets, setLabelPaint, setPlot, setTickLabelFont, setTickLabelInsets, setTickLabelPaint, setTickLabelsVisible, setTickMarkInsideLength, setTickMarkOutsideLength, setTickMarkPaint, setTickMarkStroke, setTickMarksVisible, setVisible
-
Field Details
-
DEFAULT_RANGE
The default axis range. -
DEFAULT_AUTO_RANGE
public static final boolean DEFAULT_AUTO_RANGEThe default auto-range value.- See Also:
- Constant Field Values
-
DEFAULT_INVERTED
public static final boolean DEFAULT_INVERTEDThe default inverted flag setting.- See Also:
- Constant Field Values
-
DEFAULT_AUTO_RANGE_MINIMUM_SIZE
public static final double DEFAULT_AUTO_RANGE_MINIMUM_SIZEThe default minimum auto range.- See Also:
- Constant Field Values
-
DEFAULT_LOWER_MARGIN
public static final double DEFAULT_LOWER_MARGINThe default value for the lower margin (0.05 = 5%).- See Also:
- Constant Field Values
-
DEFAULT_UPPER_MARGIN
public static final double DEFAULT_UPPER_MARGINThe default value for the upper margin (0.05 = 5%).- See Also:
- Constant Field Values
-
DEFAULT_LOWER_BOUND
public static final double DEFAULT_LOWER_BOUNDThe default lower bound for the axis.- See Also:
- Constant Field Values
-
DEFAULT_UPPER_BOUND
public static final double DEFAULT_UPPER_BOUNDThe default upper bound for the axis.- See Also:
- Constant Field Values
-
DEFAULT_AUTO_TICK_UNIT_SELECTION
public static final boolean DEFAULT_AUTO_TICK_UNIT_SELECTIONThe default auto-tick-unit-selection value.- See Also:
- Constant Field Values
-
MAXIMUM_TICK_COUNT
public static final int MAXIMUM_TICK_COUNTThe maximum tick count.- See Also:
- Constant Field Values
-
-
Method Details
-
isVerticalTickLabels
public boolean isVerticalTickLabels()Returns true if the tick labels should be rotated (to vertical), and false otherwise.- Returns:
trueorfalse.
-
setVerticalTickLabels
public void setVerticalTickLabels(boolean flag)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
AxisChangeEventis sent to all registered listeners.- Parameters:
flag- the flag.
-
isPositiveArrowVisible
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.- Returns:
- A boolean.
-
setPositiveArrowVisible
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 anAxisChangeEventto all registered listeners.- Parameters:
visible- the flag.
-
isNegativeArrowVisible
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.- Returns:
- A boolean.
-
setNegativeArrowVisible
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 anAxisChangeEventto all registered listeners.- Parameters:
visible- the flag.
-
getUpArrow
Returns a shape that can be displayed as an arrow pointing upwards at the end of an axis line.- Returns:
- A shape (never
null).
-
setUpArrow
Sets the shape that can be displayed as an arrow pointing upwards at the end of an axis line and sends anAxisChangeEventto all registered listeners.- Parameters:
arrow- the arrow shape (nullnot permitted).
-
getDownArrow
Returns a shape that can be displayed as an arrow pointing downwards at the end of an axis line.- Returns:
- A shape (never
null).
-
setDownArrow
Sets the shape that can be displayed as an arrow pointing downwards at the end of an axis line and sends anAxisChangeEventto all registered listeners.- Parameters:
arrow- the arrow shape (nullnot permitted).
-
getLeftArrow
Returns a shape that can be displayed as an arrow pointing left at the end of an axis line.- Returns:
- A shape (never
null).
-
setLeftArrow
Sets the shape that can be displayed as an arrow pointing left at the end of an axis line and sends anAxisChangeEventto all registered listeners.- Parameters:
arrow- the arrow shape (nullnot permitted).
-
getRightArrow
Returns a shape that can be displayed as an arrow pointing right at the end of an axis line.- Returns:
- A shape (never
null).
-
setRightArrow
Sets the shape that can be displayed as an arrow pointing rightwards at the end of an axis line and sends anAxisChangeEventto all registered listeners.- Parameters:
arrow- the arrow shape (nullnot permitted).
-
reserveSpace
public AxisSpace reserveSpace(Graphics2D g2, Plot plot, Rectangle2D plotArea, org.jfree.ui.RectangleEdge edge, AxisSpace space, boolean isOpositeAxisVisible)Returns the space required to draw the axis.- Specified by:
reserveSpacein classAxis- Parameters:
g2- the graphics device.plot- the plot that the axis belongs to.plotArea- the area within which the plot should be drawn.edge- the axis location.space- the space already reserved (for other axes).- Returns:
- The space required to draw the axis (including pre-reserved space).
-
isInverted
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). When the axis is 'inverted', the values increase in the opposite direction.
- Returns:
- the flag.
-
setInverted
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.- Parameters:
flag- the flag.
-
isAutoRange
public boolean isAutoRange()Returns true if the axis range is automatically adjusted to fit the data.- Returns:
- the auto-range flag.
-
setAutoRange
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.- Parameters:
auto- the new value of the flag.
-
getAutoRangeMinimumSize
public double getAutoRangeMinimumSize()Returns the minimum size allowed for the axis range when it is automatically calculated.- Returns:
- the minimum range.
-
setAutoRangeMinimumSize
public void setAutoRangeMinimumSize(double size)Sets the auto range minimum size and sends anAxisChangeEventto all registered listeners.- Parameters:
size- the size.
-
setAutoRangeMinimumSize
public void setAutoRangeMinimumSize(double size, boolean notify)Sets the minimum size allowed for the axis range when it is automatically calculated.If requested, an
AxisChangeEventis forwarded to all registered listeners.- Parameters:
size- the new minimum.notify- notify listeners?
-
getLowerMargin
public double getLowerMargin()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).- Returns:
- The lower margin.
-
setLowerMargin
public void setLowerMargin(double margin)Sets the lower margin for the axis (as a percentage of the axis range) and sends anAxisChangeEventto 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).
-
getUpperMargin
public double getUpperMargin()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).- Returns:
- The upper margin.
-
setUpperMargin
public void setUpperMargin(double margin)Sets the upper margin for the axis (as a percentage of the axis range) and sends anAxisChangeEventto 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).
-
getFixedAutoRange
public double getFixedAutoRange()Returns the fixed auto range.- Returns:
- the length.
-
setFixedAutoRange
public void setFixedAutoRange(double length)Sets the fixed auto range for the axis.- Parameters:
length- the range length.
-
getLowerBound
public double getLowerBound()Returns the lower bound of the axis range.- Returns:
- The lower bound.
-
setLowerBound
public void setLowerBound(double min)Sets the lower bound for the axis range. AnAxisChangeEventis sent to all registered listeners.- Parameters:
min- the new minimum.
-
getUpperBound
public double getUpperBound()Returns the upper bound for the axis range.- Returns:
- The upper bound.
-
setUpperBound
public void setUpperBound(double max)Sets the upper bound for the axis range. AnAxisChangeEventis sent to all registered listeners.- Parameters:
max- the new maximum.
-
getRange
Returns the range for the axis.- Returns:
- The axis range (never
null).
-
setRange
Sets the range attribute and sends anAxisChangeEventto all registered listeners. As a side-effect, the auto-range flag is set tofalse.- Parameters:
range- the range (nullnot permitted).
-
setRange
Sets the range for the axis, if requested, sends anAxisChangeEventto all registered listeners. As a side-effect, the auto-range flag is set tofalse(optional).- Parameters:
range- the range (nullnot permitted).turnOffAutoRange- a flag that controls whether or not the auto range is turned off.notify- a flag that controls whether or not listeners are notified.
-
setRange
public void setRange(double lower, double upper)Sets the axis range and sends anAxisChangeEventto all registered listeners. As a side-effect, the auto-range flag is set tofalse.- Parameters:
lower- the lower axis limit.upper- the upper axis limit.
-
setRangeWithMargins
Sets the range for the axis (after first adding the current margins to the specified range) and sends anAxisChangeEventto all registered listeners.- Parameters:
range- the range (nullnot permitted).
-
setRangeWithMargins
Sets the range for the axis after first adding the current margins to the range and, if requested, sends anAxisChangeEventto all registered listeners. As a side-effect, the auto-range flag is set tofalse(optional).- Parameters:
range- the range (excluding margins,nullnot permitted).turnOffAutoRange- a flag that controls whether or not the auto range is turned off.notify- a flag that controls whether or not listeners are notified.
-
setRangeWithMargins
public void setRangeWithMargins(double lower, double upper)Sets the axis range (after first adding the current margins to the range) and sends anAxisChangeEventto all registered listeners. As a side-effect, the auto-range flag is set tofalse.- Parameters:
lower- the lower axis limit.upper- the upper axis limit.
-
setRangeAboutValue
public void setRangeAboutValue(double value, double length)Sets the axis range, where the new range is 'size' in length, and centered on 'value'.- Parameters:
value- the central value.length- the range length.
-
isAutoTickUnitSelection
public boolean isAutoTickUnitSelection()Returns a flag indicating whether or not the tick unit is automatically selected from a range of standard tick units.- Returns:
- a flag indicating whether or not the tick unit is automatically selected.
-
setAutoTickUnitSelection
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. If the flag is changed, registered listeners are notified that the chart has changed.- Parameters:
flag- the new value of the flag.
-
setAutoTickUnitSelection
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.- Parameters:
flag- the new value of the flag.notify- notify listeners?
-
getStandardTickUnits
Returns the source for obtaining standard tick units for the axis.- Returns:
- the source (possibly
null).
-
setStandardTickUnits
Sets the source for obtaining standard tick units for the axis and sends anAxisChangeEventto all registered listeners. The axis will try to select the smallest tick unit from the source that does not cause the tick labels to overlap (see also thesetAutoTickUnitSelection(boolean)method.- Parameters:
source- the source for standard tick units (nullpermitted).
-
valueToJava2D
public abstract double valueToJava2D(double value, Rectangle2D area, org.jfree.ui.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.area- the area for plotting the data.edge- the edge along which the axis lies.- Returns:
- the Java2D coordinate.
-
java2DToValue
public abstract double java2DToValue(double java2DValue, Rectangle2D area, org.jfree.ui.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.area- the area in which the data is plotted.edge- the edge along which the axis lies.- Returns:
- the data value.
-
centerRange
public void centerRange(double value)Centers the axis range about the specified value and sends anAxisChangeEventto all registered listeners.- Parameters:
value- the center value.
-
resizeRange
public void resizeRange(double percent)Increases or decreases the axis range by the specified percentage about the central value and sends anAxisChangeEventto 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)Increases or decreases the axis range by the specified percentage about the specified anchor value and sends anAxisChangeEventto 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.anchorValue- the new central value after the resize.
-
zoomRange
public void zoomRange(double lowerPercent, double upperPercent)Zooms in on the current range.- Parameters:
lowerPercent- the new lower bound.upperPercent- the new upper bound.
-
equals
Tests the axis for equality with an arbitrary object. -
clone
Returns a clone of the object.- Specified by:
clonein interfaceorg.jfree.util.PublicCloneable- Overrides:
clonein classAxis- Returns:
- A clone.
- Throws:
CloneNotSupportedException- if some component of the axis does not support cloning.
-
getMinimumAxisValue
public double getMinimumAxisValue()Deprecated.Use getLowerBound().Returns the minimum value for the axis.- Returns:
- the minimum value for the axis.
-
setMinimumAxisValue
public void setMinimumAxisValue(double min)Deprecated.Use setLowerBound(...).Sets the minimum value for the axis.Registered listeners are notified that the axis has been modified.
- Parameters:
min- the new minimum.
-
getMaximumAxisValue
public double getMaximumAxisValue()Deprecated.Use getUpperBound().Returns the maximum value for the axis.- Returns:
- the maximum value.
-
setMaximumAxisValue
public void setMaximumAxisValue(double max)Deprecated.Use setUpperBound(...).Sets the maximum value for the axis.Registered listeners are notified that the axis has been modified.
- Parameters:
max- the new maximum.
-
translateValueToJava2D
public double translateValueToJava2D(double value, Rectangle2D area, org.jfree.ui.RectangleEdge edge)Deprecated.Use valueToJava2D instead.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 plotArea.
- Parameters:
value- the data value.area- the area for plotting the data.edge- the edge along which the axis lies.- Returns:
- The Java2D coordinate.
-
translateJava2DtoValue
public double translateJava2DtoValue(float java2DValue, Rectangle2D dataArea, org.jfree.ui.RectangleEdge edge)Deprecated.Use translateJava2DToValue(double, ...).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.dataArea- the area in which the data is plotted.edge- the edge along which the axis lies.- Returns:
- the data value.
-
translateJava2DToValue
public double translateJava2DToValue(double java2DValue, Rectangle2D area, org.jfree.ui.RectangleEdge edge)Deprecated.Use java2DToValue instead.Converts a coordinate in Java2D space to the corresponding data value, assuming that the axis runs along one edge of the specified area.- Parameters:
java2DValue- the coordinate in Java2D space.area- the area in which the data is plotted.edge- the edge along which the axis lies.- Returns:
- the data value.
-