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

Class SimpleLine

    • Constructor Detail

      • SimpleLine

        public SimpleLine()
        Default constuctor.
      • SimpleLine

        public SimpleLine(double[] xloc,
                          double[] yloc,
                          java.lang.String title)
        Constructor for X and Y double.
        Parameters:
        xloc - X coordinates
        yloc - Y coordinates
        title - the Title
      • SimpleLine

        public SimpleLine(GeoDate[] tloc,
                          double[] yloc,
                          java.lang.String title)
        Constructor for X Time and Y double.
        Parameters:
        tloc - Time coordinates
        yloc - Y coordinates
        title - the Title
      • SimpleLine

        public SimpleLine(GeoDateArray tloc,
                          double[] yloc,
                          java.lang.String title)
        Constructor for X Time and Y double.
        Parameters:
        tloc - Time coordinates
        yloc - Y coordinates
        title - the Title
        Since:
        3.0
      • SimpleLine

        public SimpleLine(double[] xloc,
                          GeoDateArray tloc,
                          java.lang.String title)
        Constructor for X double and Y Time.
        Parameters:
        xloc - X coordinates
        tloc - Time coordinates
        title - the Title
        Since:
        3.0
      • SimpleLine

        public SimpleLine(double[] xloc,
                          GeoDate[] tloc,
                          java.lang.String title)
        Constructor for X double and Y Time.
        Parameters:
        xloc - X coordinates
        tloc - Time coordinates
        title - the Title
    • Method Detail

      • copy

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

        public double[] getXArray()
        Get the X coordinate array.
        Specified by:
        getXArray in interface SGTLine
      • getYArray

        public double[] getYArray()
        Get the Y coordinate array.
        Specified by:
        getYArray in interface SGTLine
      • 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
      • 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:
        JPane, Layer
      • setId

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

        public void setAssociatedData(SGTLine assoc)
        Set the data that will be associated with SGTLine
        Property Change: associatedDataModified.
        Since:
        2.0
      • hasAssociatedData

        public boolean hasAssociatedData()
        Is there associated data?
        Specified by:
        hasAssociatedData in interface SGTLine
      • setXMetaData

        public void setXMetaData(SGTMetaData md)
        Set the X coordinate metadata.
      • setYMetaData

        public void setYMetaData(SGTMetaData md)
        Set the Y coordinate metadata.
      • setTitle

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

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

        public void setXArray(double[] xloc)
        Set the X coordinate array.
        Property Change: dataModified.
      • setYArray

        public void setYArray(double[] yloc)
        Set the Y coordinate array
        Property Change: dataModified.
      • setTimeArray

        public void setTimeArray(GeoDate[] tloc)
        Set the Time coordinate array
        Property Change: dataModified.
      • setTimeArray

        public void setTimeArray(GeoDateArray tarray)
        Since:
        3.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.