sgtplot.dm
Class SGT3DVector
- java.lang.Object
-
- sgtplot.dm.SGTVector
-
- sgtplot.dm.SGT3DVector
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, SGTData
public class SGT3DVector extends SGTVector
Defines a data object to be a Vector. Interpretation of U and V is determined by theCoordinateSystem. ForCartesian, U and V are the Cartesian vector components. ForPolar, U and V are R (radius) and Theta (angle) vector components, respectively.- Since:
- 1.0
- See Also:
SGTData,CoordinateSystem, Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description SGT3DVector()Default constructor.SGT3DVector(SGTGrid uComp, SGTGrid vComp, SGTGrid wComp)Construct a SGTVector from two components.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidaddPropertyChangeListener(java.beans.PropertyChangeListener l)Add a PropertyChangeListener to the listener list.SGTDatacopy()Create a copy.java.lang.StringgetId()Get the unique identifier.SGTGridgetW()Get the W component.voidremovePropertyChangeListener(java.beans.PropertyChangeListener l)Remove a PropertyChangeListener from the listener list.voidsetComponents(SGTGrid uComp, SGTGrid vComp, SGTGrid wComp)Set the vector components.voidsetId(java.lang.String ident)Set the unique identifier.voidsetU(SGTGrid wComp)Set the W component.-
Methods inherited from class sgtplot.dm.SGTVector
getKeyTitle, getTitle, getU, getV, getXMetaData, getXRange, getYMetaData, getYRange, isXTime, isYTime, setComponents, setKeyTitle, setTitle, setV
-
-
-
-
Constructor Detail
-
SGT3DVector
public SGT3DVector()
Default constructor.
-
SGT3DVector
public SGT3DVector(SGTGrid uComp, SGTGrid vComp, SGTGrid wComp)
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 vectorvComp- V component of the vectorvComp- W component of the vector
-
-
Method Detail
-
copy
public SGTData copy()
Create a copy. Creates a shallow copy.
-
getW
public SGTGrid getW()
Get the W component.- Returns:
- W component
-
setU
public void setU(SGTGrid wComp)
Set the W component.
-
setComponents
public void setComponents(SGTGrid uComp, SGTGrid vComp, SGTGrid wComp)
Set the vector components.- Parameters:
uComp- U componentvComp- V component
-
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.
-
setId
public void setId(java.lang.String ident)
Set the unique identifier.
-
addPropertyChangeListener
public void addPropertyChangeListener(java.beans.PropertyChangeListener l)
Description copied from interface:SGTDataAdd a PropertyChangeListener to the listener list.- Specified by:
addPropertyChangeListenerin interfaceSGTData- Overrides:
addPropertyChangeListenerin classSGTVector
-
removePropertyChangeListener
public void removePropertyChangeListener(java.beans.PropertyChangeListener l)
Description copied from interface:SGTDataRemove a PropertyChangeListener from the listener list.- Specified by:
removePropertyChangeListenerin interfaceSGTData- Overrides:
removePropertyChangeListenerin classSGTVector
-
-
DMelt 3.0 © DataMelt by jWork.ORG