Documentation of 'sgtplot.LinearTransform' Java class
LinearTransform
sgtplot

Class LinearTransform

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, Transform


    public class LinearTransform
    extends AxisTransform
    implements java.lang.Cloneable
    Performs a linear transformation on cartesian axes. If the transformtion is for space the equation is phys = a*user + b and if time is phys = at*time + bt.
    Since:
    1.0
    See Also:
    Serialized Form
    • Constructor Detail

      • LinearTransform

        public LinearTransform()
        Default constructor. Creates a transform with arguments Transform(0.0, 1.0, 0.0, 1.0).
      • LinearTransform

        public LinearTransform(double p1,
                               double p2,
                               double u1,
                               double u2)
        LinearTransform constructor. This constructor is used to define transforms that use double user values.
        Parameters:
        p1 - minimum value, physical coordinates
        p2 - maximum value, physical coordinates
        u1 - minimum value, user coordinates
        u2 - maximum value, user coordinates
      • LinearTransform

        public LinearTransform(Range2D pr,
                               Range2D ur)
        LinearTransform constructor. This constructor is used to define transforms that use double user values.
        Parameters:
        pr - physical coordinate range
        ur - user coordinate range
        See Also:
        Range2D
      • LinearTransform

        public LinearTransform(double p1,
                               double p2,
                               GeoDate t1,
                               GeoDate t2)
        LinearTransform constructor. This constructor is used to define transforms that use GeoDate user values.
        Parameters:
        p1 - minimum value, physical coordinates
        p2 - maximum value, physical coordinates
        t1 - minimum time
        t2 - maximum time
        See Also:
        GeoDate
      • LinearTransform

        public LinearTransform(Range2D pr,
                               TimeRange tr)
        LinearTransform constructor. This constructor is used to define transforms that use GeoDate user values.
        Parameters:
        pr - physical coordinates range
        tr - time range
        See Also:
        Range2D, TimeRange, GeoDate
      • LinearTransform

        public LinearTransform(Range2D pr,
                               SoTRange str)
        LinearTransform constructor. This constructor is used to define transforms that use SoTRange user values.
        Parameters:
        pr - physical coordinates range
        str - space or time range
        Since:
        2.0
        See Also:
        SoTRange, Range2D
    • Method Detail

      • getTransP

        public double getTransP(double u)
        Transform from user to physical coordinates.
        Specified by:
        getTransP in interface Transform
        Parameters:
        u - user value
        Returns:
        physical value
      • copy

        public AxisTransform copy()
        Create a copy of the LinearTransform.
        Returns:
        the copy
      • getTransP

        public double getTransP(GeoDate t)
        Transform from time to physical coordinates.
        Parameters:
        t - time
        Returns:
        user value
      • getTransP

        public double getTransP(long t)
        Transform from long representation of time to physical coordinates.
        Since:
        3.0
      • getTransU

        public double getTransU(double p)
        Transform from physical to user coordinates.
        Specified by:
        getTransU in interface Transform
        Parameters:
        p - physical value
        Returns:
        user value
      • getTimeTransU

        public GeoDate getTimeTransU(double p)
        Transform from physical coordinates to time.
        Parameters:
        p - physical value
        Returns:
        time value
      • getLongTimeTransU

        public long getLongTimeTransU(double p)
        Transform from physical coordinates to long representation of time.
        Parameters:
        p - physical value
        Returns:
        milliseconds since 1970-01-01
        Since:
        3.0
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.