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

Class SGTVector

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, SGTData
    Direct Known Subclasses:
    SGT3DVector


    public class SGTVector
    extends java.lang.Object
    implements SGTData, java.lang.Cloneable, java.io.Serializable
    Defines a data object to be a Vector. Interpretation of U and V is determined by the CoordinateSystem. For Cartesian, U and V are the Cartesian vector components. For Polar , U and V are R (radius) and Theta (angle) vector components, respectively.
    Since:
    1.0
    See Also:
    SGTData, CoordinateSystem, Serialized Form
    • Constructor Detail

      • SGTVector

        public SGTVector()
        Default constructor.
      • SGTVector

        public SGTVector(SGTGrid uComp,
                         SGTGrid vComp)
        Construct a SGTVector from two components. The two components must match in both SGTData and CoordinateSystem Interfaces. Both components must be the same shape.
        Parameters:
        uComp - U component of the vector
        vComp - V component of the vector
    • Method Detail

      • copy

        public SGTData copy()
        Create a copy. Creates a shallow copy.
        Specified by:
        copy in interface SGTData
        Returns:
        shallow copy
        See Also:
        SGTData
      • getU

        public SGTGrid getU()
        Get the U component.
        Returns:
        U component
      • getV

        public SGTGrid getV()
        Get the V component.
        Returns:
        V component
      • setU

        public void setU(SGTGrid uComp)
        Set the U component.
        Parameters:
        uComp - U component
      • setV

        public void setV(SGTGrid vComp)
        Set the V component.
        Parameters:
        vComp - V component
      • setComponents

        public void setComponents(SGTGrid uComp,
                                  SGTGrid vComp)
        Set the vector components.
        Parameters:
        uComp - U component
        vComp - V component
      • setTitle

        public void setTitle(java.lang.String title)
        Set the vector's title.
        Parameters:
        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
        See Also:
        Pane, Layer
      • setId

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

        public java.lang.String getTitle()
        Get the vector's title.
        Specified by:
        getTitle in interface SGTData
        Returns:
        the title
      • isXTime

        public boolean isXTime()
        Description copied from interface: SGTData
        Returns true if the X coordinate is Time.
        Specified by:
        isXTime in interface SGTData
      • isYTime

        public boolean isYTime()
        Description copied from interface: SGTData
        Returns true if the Y coordinate is Time.
        Specified by:
        isYTime in interface SGTData
      • 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.