Documentation of 'jas2.plot.DoubleAxis' Java class
DoubleAxis
jas2.plot

Class DoubleAxis

  • All Implemented Interfaces:
    CoordinateTransformation, DoubleCoordinateTransformation, Transformation, java.io.Externalizable, java.io.Serializable


    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(boolean), Serialized Form
    • Constructor Detail

      • 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
    • Method Detail

      • 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)
      • getDataMin

        public double getDataMin()
        Returns the minimum of the data on the axis, as given to the method setMin().
        See Also:
        setMin(double)
      • getDataMax

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

        public double getIntersection()
      • writeExternal

        public void writeExternal(java.io.ObjectOutput out)
                           throws java.io.IOException
        Specified by:
        writeExternal in interface java.io.Externalizable
        Throws:
        java.io.IOException
      • readExternal

        public void readExternal(java.io.ObjectInput in)
                          throws java.io.IOException
        Specified by:
        readExternal in interface java.io.Externalizable
        Throws:
        java.io.IOException

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.