sgtplot.dm
Class SimpleTuple
- java.lang.Object
-
- sgtplot.dm.SimpleTuple
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, Cartesian, CoordinateSystem, SGTData, SGTTuple
public class SimpleTuple extends java.lang.Object implements java.lang.Cloneable, SGTTuple, Cartesian, java.io.Serializable
SimpleTupleprovides an implementation of theSGTTupleandCartesianinterfaces.- Since:
- 2.x
- See Also:
SGTTuple,Cartesian, Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description SimpleTuple()SimpleTuple(double[] xArray, double[] yArray, double[] zArray, java.lang.String title)SimpleTuple(double[] xArray, double[] yArray, java.lang.String title)SimpleTuple(double[] xArray, GeoDate[] yArray, double[] zArray, java.lang.String title)SimpleTuple(double[] xArray, GeoDate[] yArray, java.lang.String title)SimpleTuple(GeoDate[] xArray, double[] yArray, double[] zArray, java.lang.String title)SimpleTuple(GeoDate[] xArray, double[] yArray, java.lang.String title)
-
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 shallow copy.double[]getAssociatedData()GeoDateArraygetGeoDateArray()Get theGeoDateArrayobject.java.lang.StringgetId()Get the unique identifier.SGLabelgetKeyTitle()Get a title formatted for a Key.intgetSize()GeoDate[]getTimeArray()java.lang.StringgetTitle()Get the title.double[]getXArray()SGTMetaDatagetXMetaData()Returns the X SGTMetaData.SoTRangegetXRange()Returns the range of the X coordinates.double[]getYArray()SGTMetaDatagetYMetaData()Returns the Y SGTMetaData.SoTRangegetYRange()Returns the range of the Y coordinates.double[]getZArray()SGTMetaDatagetZMetaData()Range2DgetZRange()booleanhasAssociatedData()booleanisXTime()Returns true if the X coordinate is Time.booleanisYTime()Returns true if the Y coordinate is Time.voidremovePropertyChangeListener(java.beans.PropertyChangeListener l)Remove a PropertyChangeListener from the listener list.voidsetAssociatedData(double[] assocArray)voidsetId(java.lang.String id)voidsetKeyTitle(SGLabel title)voidsetTitle(java.lang.String title)voidsetXArray(double[] xArray)voidsetXArray(GeoDate[] tArray)voidsetXArray(GeoDateArray tArray)voidsetXMetaData(SGTMetaData xMeta)voidsetYArray(double[] yArray)voidsetYArray(GeoDate[] tArray)voidsetYArray(GeoDateArray tArray)voidsetYMetaData(SGTMetaData yMeta)voidsetZArray(double[] zArray)voidsetZMetaData(SGTMetaData zMeta)
-
-
-
Constructor Detail
-
SimpleTuple
public SimpleTuple(double[] xArray, double[] yArray, java.lang.String title)
-
SimpleTuple
public SimpleTuple(GeoDate[] xArray, double[] yArray, java.lang.String title)
-
SimpleTuple
public SimpleTuple(double[] xArray, GeoDate[] yArray, java.lang.String title)
-
SimpleTuple
public SimpleTuple(double[] xArray, double[] yArray, double[] zArray, java.lang.String title)
-
SimpleTuple
public SimpleTuple(GeoDate[] xArray, double[] yArray, double[] zArray, java.lang.String title)
-
SimpleTuple
public SimpleTuple(double[] xArray, GeoDate[] yArray, double[] zArray, java.lang.String title)
-
SimpleTuple
public SimpleTuple()
-
-
Method Detail
-
setXArray
public void setXArray(double[] xArray)
-
setXArray
public void setXArray(GeoDate[] tArray)
-
setXArray
public void setXArray(GeoDateArray tArray)
- Since:
- 3.0
-
setYArray
public void setYArray(double[] yArray)
-
setYArray
public void setYArray(GeoDate[] tArray)
-
setYArray
public void setYArray(GeoDateArray tArray)
- Since:
- 3.0
-
setZArray
public void setZArray(double[] zArray)
-
getTimeArray
public GeoDate[] getTimeArray()
- Specified by:
getTimeArrayin interfaceSGTTuple
-
getGeoDateArray
public GeoDateArray getGeoDateArray()
Description copied from interface:SGTTupleGet theGeoDateArrayobject.- Specified by:
getGeoDateArrayin interfaceSGTTuple- Since:
- 3.0
-
getAssociatedData
public double[] getAssociatedData()
- Specified by:
getAssociatedDatain interfaceSGTTuple
-
setAssociatedData
public void setAssociatedData(double[] assocArray)
-
hasAssociatedData
public boolean hasAssociatedData()
- Specified by:
hasAssociatedDatain interfaceSGTTuple
-
getZMetaData
public SGTMetaData getZMetaData()
- Specified by:
getZMetaDatain interfaceSGTTuple
-
setZMetaData
public void setZMetaData(SGTMetaData zMeta)
-
getTitle
public java.lang.String getTitle()
Description copied from interface:SGTDataGet the title.
-
setTitle
public void setTitle(java.lang.String 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)
-
getId
public java.lang.String getId()
Description copied from interface:SGTDataGet 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 id)
-
copy
public SGTData copy()
Description copied from interface:SGTDataCreate a shallow copy. User should implement using the clone() method, which requires the Cloneable interface be inherited. If clone() is used, then references to objects are copied NOT the object itself.For example,
public SGTData copy() { SGTData newData; try { newData = (SGTData)clone(); } catch (CloneNotSupportedException e) { newData = null; } return newData; }
-
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.
-
getXMetaData
public SGTMetaData getXMetaData()
Description copied from interface:SGTDataReturns the X SGTMetaData.- Specified by:
getXMetaDatain interfaceSGTData
-
setXMetaData
public void setXMetaData(SGTMetaData xMeta)
-
getYMetaData
public SGTMetaData getYMetaData()
Description copied from interface:SGTDataReturns the Y SGTMetaData.- Specified by:
getYMetaDatain interfaceSGTData
-
setYMetaData
public void setYMetaData(SGTMetaData yMeta)
-
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()
-
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