| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjas.plot.AxisType
jas.plot.DoubleAxis
public final class 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 Form| Field Summary | 
|---|
| Fields 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(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(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) scale| Method 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 DoubleCoordinateTransformationpublic double getPlotMax()
getPlotMax in interface DoubleCoordinateTransformationpublic double getDataMin()
setMin().
setMin(double)public double getDataMax()
setMax().
setMax(double)public CoordinateTransformation getCoordinateTransformation()
DoubleCoordinateTransformation.
DoubleCoordinateTransformationpublic double convert(double d)
DoubleCoordinateTransformation
convert in interface DoubleCoordinateTransformationconvert in interface Transformationpublic double unConvert(double d)
DoubleCoordinateTransformation
unConvert in interface DoubleCoordinateTransformationpublic double getIntersection()
public void writeExternal(ObjectOutput out)
                   throws IOException
writeExternal in interface ExternalizableIOException
public void readExternal(ObjectInput in)
                  throws IOException
readExternal in interface ExternalizableIOException
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||