sgtplot.dm
Class SGTFull3DVector
- java.lang.Object
-
- sgtplot.dm.SGTFull3DVector
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, SGTData
public class SGTFull3DVector 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 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 SGTFull3DVector()Default constructor.SGTFull3DVector(ThreeDGrid uComp, ThreeDGrid vComp, ThreeDGrid wComp)Construct a SGT3DVector from three 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.SGLabelgetKeyTitle()Get a title formatted for a Key.java.lang.StringgetTitle()Get the vector's title.ThreeDGridgetU()Get the U component.ThreeDGridgetV()Get the V component.ThreeDGridgetW()Get the W component.SGTMetaDatagetXMetaData()Returns the X SGTMetaData.SoTRangegetXRange()Returns the range of the X coordinates.SGTMetaDatagetYMetaData()Returns the Y SGTMetaData.SoTRangegetYRange()Returns the range of the Y coordinates.SGTMetaDatagetZMetaData()SoTRangegetZRange()booleanisXTime()Returns true if the X coordinate is Time.booleanisYTime()Returns true if the Y coordinate is Time.booleanisZTime()voidremovePropertyChangeListener(java.beans.PropertyChangeListener l)Remove a PropertyChangeListener from the listener list.voidsetComponents(ThreeDGrid uComp, ThreeDGrid vComp, ThreeDGrid wComp)Set the vector components.voidsetId(java.lang.String ident)Set the unique identifier.voidsetKeyTitle(SGLabel title)Set the title formatted for theVectorKey.voidsetTitle(java.lang.String title)Set the vector's title.voidsetU(ThreeDGrid uComp)Set the U component.voidsetV(ThreeDGrid vComp)Set the V component.voidsetW(ThreeDGrid wComp)Set the W component.
-
-
-
Constructor Detail
-
SGTFull3DVector
public SGTFull3DVector()
Default constructor.
-
SGTFull3DVector
public SGTFull3DVector(ThreeDGrid uComp, ThreeDGrid vComp, ThreeDGrid wComp)
Construct a SGT3DVector from three components. The three components must match in both SGTData and CoordinateSystem Interfaces. All components must be the same shape.- Parameters:
uComp- U component of the vectorvComp- V component of the vectorwComp- W component of the vector
-
-
Method Detail
-
copy
public SGTData copy()
Create a copy. Creates a shallow copy.
-
getU
public ThreeDGrid getU()
Get the U component.- Returns:
- U component
-
getV
public ThreeDGrid getV()
Get the V component.- Returns:
- V component
-
getW
public ThreeDGrid getW()
Get the W component.- Returns:
- W component
-
setU
public void setU(ThreeDGrid uComp)
Set the U component.- Parameters:
uComp- U component
-
setV
public void setV(ThreeDGrid vComp)
Set the V component.- Parameters:
vComp- V component
-
setW
public void setW(ThreeDGrid wComp)
Set the W component.- Parameters:
vComp- W component
-
setComponents
public void setComponents(ThreeDGrid uComp, ThreeDGrid vComp, ThreeDGrid wComp)
Set the vector components.- Parameters:
uComp- U componentvComp- V component
-
setTitle
public void setTitle(java.lang.String title)
Set the vector's title.- Parameters:
title-
-
getKeyTitle
public SGLabel getKeyTitle()
Description copied from interface:SGTDataGet a title formatted for a Key.JPlotLayoutwill use this if an explicit Key title is not given in theaddDatamethod.- Specified by:
getKeyTitlein interfaceSGTData- See Also:
SGLabel,ColorKey,LineKey,PointCollectionKey,VectorKey
-
setKeyTitle
public void setKeyTitle(SGLabel title)
Set the title formatted for theVectorKey.
-
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.
-
getTitle
public java.lang.String getTitle()
Get the vector's title.
-
isXTime
public boolean isXTime()
Description copied from interface:SGTDataReturns true if the X coordinate is Time.
-
isYTime
public boolean isYTime()
Description copied from interface:SGTDataReturns true if the Y coordinate is Time.
-
isZTime
public boolean isZTime()
-
getXMetaData
public SGTMetaData getXMetaData()
Description copied from interface:SGTDataReturns the X SGTMetaData.- Specified by:
getXMetaDatain interfaceSGTData
-
getYMetaData
public SGTMetaData getYMetaData()
Description copied from interface:SGTDataReturns the Y SGTMetaData.- Specified by:
getYMetaDatain interfaceSGTData
-
getZMetaData
public SGTMetaData getZMetaData()
-
getXRange
public SoTRange getXRange()
Description copied from interface:SGTDataReturns the range of the X coordinates. If all the data in the array is missing, this method will returnDouble.NaNas the start and end values for data of typedoubleand returnGeoDate(Long.MIN_VALUE)for data of typeGeoDate.- Specified by:
getXRangein interfaceSGTData- See Also:
GeoDate.isMissing()
-
getYRange
public SoTRange getYRange()
Description copied from interface:SGTDataReturns the range of the Y coordinates.- Specified by:
getYRangein interfaceSGTData- See Also:
SGTData.getXRange()
-
getZRange
public SoTRange getZRange()
-
addPropertyChangeListener
public void addPropertyChangeListener(java.beans.PropertyChangeListener l)
Description copied from interface:SGTDataAdd a PropertyChangeListener to the listener list.- Specified by:
addPropertyChangeListenerin interfaceSGTData
-
removePropertyChangeListener
public void removePropertyChangeListener(java.beans.PropertyChangeListener l)
Description copied from interface:SGTDataRemove a PropertyChangeListener from the listener list.- Specified by:
removePropertyChangeListenerin interfaceSGTData
-
-
DMelt 3.0 © DataMelt by jWork.ORG