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

Constructor Index

 o DoubleAxis()
Creates linear axis.
 o DoubleAxis(boolean)
Creates a new numeric axis.

Method Index

 o convert(double)
 o getCoordinateTransformation()
Returns an instance of DoubleCoordinateTransformation.
 o getDataMax()
Returns the maximum of the data on the axis, as given to the method setMax().
 o getDataMin()
Returns the minimum of the data on the axis, as given to the method setMin().
 o getIntersection()
 o getPlotMax()
Returns the maximum of the axis range.
 o getPlotMin()
Returns the minimum of the axis range.
 o getUseSuggestedRange()
 o isLogarithmic()
 o readExternal(ObjectInput)
 o setLogarithmic(boolean)
 o setMax(double)
 o setMin(double)
 o setUseSuggestedRange(boolean)
 o unConvert(double)
 o writeExternal(ObjectOutput)

Constructors

 o DoubleAxis
 public DoubleAxis()
Creates linear axis.

 o DoubleAxis
 public DoubleAxis(boolean logarithmic)
Creates a new numeric axis.

Parameters:
logarithmic - whether the axis uses logarithmic (as opposed to liear) scale

Methods

 o setLogarithmic
 public void setLogarithmic(boolean logarithmic)
 o isLogarithmic
 public boolean isLogarithmic()
 o setUseSuggestedRange
 public void setUseSuggestedRange(boolean useSuggestedRange)
 o getUseSuggestedRange
 public boolean getUseSuggestedRange()
 o setMin
 public void setMin(double data_min)
 o setMax
 public void setMax(double data_max)
 o getPlotMin
 public double getPlotMin()
Returns the minimum of the axis range.

 o getPlotMax
 public double getPlotMax()
Returns the maximum of the axis range.

 o getDataMin
 public double getDataMin()
Returns the minimum of the data on the axis, as given to the method setMin().

See Also:
setMin
 o getDataMax
 public double getDataMax()
Returns the maximum of the data on the axis, as given to the method setMax().

See Also:
setMax
 o getCoordinateTransformation
 public CoordinateTransformation getCoordinateTransformation()
Returns an instance of DoubleCoordinateTransformation.

Overrides:
getCoordinateTransformation in class AxisType
See Also:
DoubleCoordinateTransformation
 o convert
 public double convert(double d)
 o unConvert
 public double unConvert(double d)
 o getIntersection
 public double getIntersection()
 o writeExternal
 public void writeExternal(ObjectOutput out) throws IOException
Overrides:
writeExternal in class AxisType
 o readExternal
 public void readExternal(ObjectInput in) throws IOException
Overrides:
readExternal in class AxisType

All Packages  Class Hierarchy  This Package  Previous  Next  Index