Documentation of 'sgtplot.util.SoTPoint' Java class
SoTPoint
sgtplot.util

Class SoTPoint

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


    public class SoTPoint
    extends java.lang.Object
    implements java.io.Serializable, java.lang.Cloneable
    SoTPoint has two coordinates which are of type SoTValue. SoT stands for space or time, but being basically lazy I've abbreviated it.
    See Also:
    Serialized Form
    • Constructor Detail

      • SoTPoint

        public SoTPoint()
        Default constructor.
      • SoTPoint

        public SoTPoint(SoTValue x,
                        SoTValue y)
        Construct a SoTPoint from SoTValues.
        Parameters:
        x - space or time coordinate
        y - space or time coordinate
      • SoTPoint

        public SoTPoint(double x,
                        double y)
        Construct a SoTPoint from doubles.
      • SoTPoint

        public SoTPoint(double x,
                        GeoDate y)
        Construct a SoTPoint from a double and a GeoDate.
      • SoTPoint

        public SoTPoint(double x,
                        long y)
        Since:
        sgtplot 3.0
      • SoTPoint

        public SoTPoint(GeoDate x,
                        double y)
        Construct a SoTPoint from a GeoDate and a double.
      • SoTPoint

        public SoTPoint(long x,
                        double y)
        Since:
        sgtplot 3.0
      • SoTPoint

        public SoTPoint(SoTPoint pt)
        Construct a SoTPoint from a SoTPoint.
    • Method Detail

      • getX

        public SoTValue getX()
        Get x value
      • setX

        public void setX(SoTValue x)
        Set x value
        Since:
        sgtplot 3.0
      • getY

        public SoTValue getY()
        Get y value
      • setY

        public void setY(SoTValue y)
        Set y value
        Since:
        sgtplot 3.0
      • equals

        public boolean equals(SoTPoint stp)
        Test for equality. For equality both x and y values must be equal.
      • isXTime

        public boolean isXTime()
        Test if x value is time
      • isYTime

        public boolean isYTime()
        Test if y value is time
      • add

        public void add(SoTPoint point)
        Add to point.
        Since:
        sgtplot 3.0
      • copy

        public SoTPoint copy()
        Make a copy of the SoTRange.
        Since:
        sgtplot 3.0
      • toString

        public java.lang.String toString()
        Convert SoTPoint to a default string
        Overrides:
        toString in class java.lang.Object
        Returns:
        string representation of the SoTPoint.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.