All Packages Class Hierarchy This Package Previous Next Index
Class jas.plot.DoubleAxis
java.lang.Object
|
+----jas.plot.AxisType
|
+----jas.plot.DoubleAxis
- public final class DoubleAxis
- extends AxisType
- implements DoubleCoordinateTransformation
Implements a simple numeric axis, with either linear or logarithmic scale. Users
may set a flag that determines whether the axis may round to close values for simplicity
of labels or whether the axis should keep to the given range. If, for example, the minimum
is set to 4.3 and the maximum is set to 95.9, this class may be configured to round the
extrema so that the labels are 0, 10, 20, ..., 100. Use setUseSuggestedRange(boolean)
to set whether a pretty range is automatically used.
- See Also:
- setUseSuggestedRange
-
DoubleAxis()
- Creates linear axis.
-
DoubleAxis(boolean)
- Creates a new numeric axis.
-
convert(double)
-
-
getCoordinateTransformation()
- Returns an instance of
DoubleCoordinateTransformation.
-
getDataMax()
- Returns the maximum of the data on the axis, as given
to the method
setMax().
-
getDataMin()
- Returns the minimum of the data on the axis, as given
to the method
setMin().
-
getIntersection()
-
-
getPlotMax()
- Returns the maximum of the axis range.
-
getPlotMin()
- Returns the minimum of the axis range.
-
getUseSuggestedRange()
-
-
isLogarithmic()
-
-
readExternal(ObjectInput)
-
-
setLogarithmic(boolean)
-
-
setMax(double)
-
-
setMin(double)
-
-
setUseSuggestedRange(boolean)
-
-
unConvert(double)
-
-
writeExternal(ObjectOutput)
-
DoubleAxis
public DoubleAxis()
- Creates linear axis.
DoubleAxis
public DoubleAxis(boolean logarithmic)
- Creates a new numeric axis.
- Parameters:
- logarithmic - whether the axis uses logarithmic (as opposed to liear) scale
setLogarithmic
public void setLogarithmic(boolean logarithmic)
isLogarithmic
public boolean isLogarithmic()
setUseSuggestedRange
public void setUseSuggestedRange(boolean useSuggestedRange)
getUseSuggestedRange
public boolean getUseSuggestedRange()
setMin
public void setMin(double data_min)
setMax
public void setMax(double data_max)
getPlotMin
public double getPlotMin()
- Returns the minimum of the axis range.
getPlotMax
public double getPlotMax()
- Returns the maximum of the axis range.
getDataMin
public double getDataMin()
- Returns the minimum of the data on the axis, as given
to the method
setMin().
- See Also:
- setMin
getDataMax
public double getDataMax()
- Returns the maximum of the data on the axis, as given
to the method
setMax().
- See Also:
- setMax
getCoordinateTransformation
public CoordinateTransformation getCoordinateTransformation()
- Returns an instance of
DoubleCoordinateTransformation.
- Overrides:
- getCoordinateTransformation in class AxisType
- See Also:
- DoubleCoordinateTransformation
convert
public double convert(double d)
unConvert
public double unConvert(double d)
getIntersection
public double getIntersection()
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Overrides:
- writeExternal in class AxisType
readExternal
public void readExternal(ObjectInput in) throws IOException
- Overrides:
- readExternal in class AxisType
All Packages Class Hierarchy This Package Previous Next Index