|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jas.plot.AxisType | +--jas.plot.DoubleAxis
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.
setUseSuggestedRange(boolean)
, Serialized FormFields inherited from class jas.plot.AxisType |
axis |
Constructor Summary | |
DoubleAxis()
Creates linear axis. |
|
DoubleAxis(boolean logarithmic)
Creates a new numeric axis. |
Method Summary | |
double |
convert(double d)
Returns a pixel value for a given double value. |
CoordinateTransformation |
getCoordinateTransformation()
Returns an instance of DoubleCoordinateTransformation . |
double |
getDataMax()
Returns the maximum of the data on the axis, as given to the method setMax() . |
double |
getDataMin()
Returns the minimum of the data on the axis, as given to the method setMin() . |
double |
getIntersection()
|
double |
getPlotMax()
Returns the maximum of the axis range. |
double |
getPlotMin()
Returns the minimum of the axis range. |
boolean |
getUseSuggestedRange()
|
boolean |
isLogarithmic()
|
void |
readExternal(java.io.ObjectInput in)
|
void |
setLogarithmic(boolean logarithmic)
|
void |
setMax(double data_max)
|
void |
setMin(double data_min)
|
void |
setUseSuggestedRange(boolean useSuggestedRange)
|
double |
unConvert(double d)
Returns a double value for a given pixel. |
void |
writeExternal(java.io.ObjectOutput out)
|
Methods inherited from class jas.plot.AxisType |
getAxis |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DoubleAxis()
public DoubleAxis(boolean logarithmic)
logarithmic
- whether the axis uses logarithmic (as opposed to liear) scaleMethod Detail |
public void setLogarithmic(boolean logarithmic)
public boolean isLogarithmic()
public void setUseSuggestedRange(boolean useSuggestedRange)
public boolean getUseSuggestedRange()
public void setMin(double data_min)
public void setMax(double data_max)
public double getPlotMin()
getPlotMin
in interface DoubleCoordinateTransformation
public double getPlotMax()
getPlotMax
in interface DoubleCoordinateTransformation
public double getDataMin()
setMin()
.setMin(double)
public double getDataMax()
setMax()
.setMax(double)
public CoordinateTransformation getCoordinateTransformation()
DoubleCoordinateTransformation
.DoubleCoordinateTransformation
public double convert(double d)
DoubleCoordinateTransformation
convert
in interface DoubleCoordinateTransformation
public double unConvert(double d)
DoubleCoordinateTransformation
unConvert
in interface DoubleCoordinateTransformation
public double getIntersection()
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
public void readExternal(java.io.ObjectInput in) throws java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |