Documentation of 'sgtplot.dm.SimplePoint' Java class
SimplePoint
sgtplot.dm

Class SimplePoint

    • Constructor Detail

      • SimplePoint

        public SimplePoint()
        Default constructor.
      • SimplePoint

        public SimplePoint(double xloc,
                           double yloc,
                           java.lang.String title)
        Simple Point constructor.
        Parameters:
        xloc - X coordinate
        yloc - Y coordinate
        title - the title
      • SimplePoint

        public SimplePoint(SoTPoint loc,
                           java.lang.String title)
        Simple Point constructor.
        Parameters:
        loc - SoTPoint
        title - the title
        Since:
        3.0
    • Method Detail

      • copy

        public SGTData copy()
        Create a copy.
        Specified by:
        copy in interface SGTData
        Returns:
        shallow copy
        Since:
        2.0
        See Also:
        SGTData
      • getX

        public double getX()
        Get the X coordinate.
        Specified by:
        getX in interface SGTPoint
      • getY

        public double getY()
        Get the Y coordinate
        Specified by:
        getY in interface SGTPoint
      • getValue

        public double getValue()
        Get the associated value.
        Specified by:
        getValue in interface SGTPoint
      • hasValue

        public boolean hasValue()
        Is there an associated value?
        Specified by:
        hasValue in interface SGTPoint
      • getLongTime

        public long getLongTime()
        Get the time in long referenced to 1970-01-01
        Specified by:
        getLongTime in interface SGTPoint
        Since:
        3.0
      • setTime

        public void setTime(GeoDate date)
        Set the time coordinate
        Since:
        3.0
      • setTime

        public void setTime(long t)
        Since:
        3.0
      • isXTime

        public boolean isXTime()
        Is the X coordinate Time?
        Specified by:
        isXTime in interface SGTData
      • isYTime

        public boolean isYTime()
        Is the Y coordinate Time?
        Specified by:
        isYTime in interface SGTData
      • getTitle

        public java.lang.String getTitle()
        Get the title.
        Specified by:
        getTitle in interface SGTData
      • setTitle

        public void setTitle(java.lang.String title)
        Set the title.
      • setKeyTitle

        public void setKeyTitle(SGLabel title)
        Set the title formatted for the VectorKey.
      • getId

        public java.lang.String getId()
        Get the unique identifier. The presence of the identifier is optional, but if it is present it should be unique. This field is used to search for the layer that contains the data.
        Specified by:
        getId in interface SGTData
        Returns:
        unique identifier
        Since:
        2.0
        See Also:
        Pane, Layer
      • setId

        public void setId(java.lang.String ident)
        Set the unique identifier.
      • setX

        public void setX(double xloc)
        Set the X coordinate.
        Property Change: dataModified.
      • setY

        public void setY(double yloc)
        Set the Y coordinate.
        Property Change: dataModified.
      • setValue

        public void setValue(double value,
                             java.lang.String name,
                             java.lang.String units)
        The the associated value and basic metadata.
        Property Change: associatedDataModified.
        Parameters:
        value - associated data
        name - values name
        units - values units
      • setXMetaData

        public void setXMetaData(SGTMetaData md)
        Set the SGTMetaData associated with the x coordinate
        Since:
        2.0
      • setYMetaData

        public void setYMetaData(SGTMetaData md)
        Set the SGTMetaData associated with the y coordinate
        Since:
        2.0
      • getXRange

        public SoTRange getXRange()
        Description copied from interface: SGTData
        Returns the range of the X coordinates. If all the data in the array is missing, this method will return Double.NaN as the start and end values for data of type double and return GeoDate(Long.MIN_VALUE) for data of type GeoDate.
        Specified by:
        getXRange in interface SGTData
        See Also:
        GeoDate.isMissing()
      • addPropertyChangeListener

        public void addPropertyChangeListener(java.beans.PropertyChangeListener l)
        Description copied from interface: SGTData
        Add a PropertyChangeListener to the listener list.
        Specified by:
        addPropertyChangeListener in interface SGTData
      • removePropertyChangeListener

        public void removePropertyChangeListener(java.beans.PropertyChangeListener l)
        Description copied from interface: SGTData
        Remove a PropertyChangeListener from the listener list.
        Specified by:
        removePropertyChangeListener in interface SGTData

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.