sgtplot.dm
Interface SGTData
-
- All Known Implementing Classes:
- Annotation, Annote, Annote.Line, Annote.Oval, Annote.Point, Annote.Rect, Annote.Text, Collection, PointCollection, SGT3DVector, SGTFull3DVector, SGTVector, SimpleGrid, SimpleLine, SimplePoint, SimpleTuple, ThreeDGrid
public interface SGTDataBase class for sgtplot datamodel rank information. TheSGTDataclass and its children are used by sgtplot to determine the rank (point, line, grid) of the data. Data values can be eitherdoubleorGeoDate, which extendsDate. Missing values are indicated byDouble.NaNfor typedoubleand bynullor byLong.MIN_VALUEmilliseconds after (before) January 1, 1970 00:00:00 GMT forGeoDate.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description voidaddPropertyChangeListener(java.beans.PropertyChangeListener l)Add a PropertyChangeListener to the listener list.SGTDatacopy()Create a shallow copy.java.lang.StringgetId()Get the unique identifier.SGLabelgetKeyTitle()Get a title formatted for a Key.java.lang.StringgetTitle()Get the title.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.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.
-
-
-
Method Detail
-
getTitle
java.lang.String getTitle()
Get the title.
-
getKeyTitle
SGLabel getKeyTitle()
Get a title formatted for a Key.JPlotLayoutwill use this if an explicit Key title is not given in theaddDatamethod.- See Also:
SGLabel,ColorKey,LineKey,PointCollectionKey,VectorKey
-
getId
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.
-
copy
SGTData copy()
Create 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; }- Returns:
- shallow copy
- See Also:
Object
-
isXTime
boolean isXTime()
Returns true if the X coordinate is Time.
-
isYTime
boolean isYTime()
Returns true if the Y coordinate is Time.
-
getXMetaData
SGTMetaData getXMetaData()
Returns the X SGTMetaData.
-
getYMetaData
SGTMetaData getYMetaData()
Returns the Y SGTMetaData.
-
getXRange
SoTRange getXRange()
Returns 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.- See Also:
GeoDate.isMissing()
-
getYRange
SoTRange getYRange()
Returns the range of the Y coordinates.- See Also:
getXRange()
-
addPropertyChangeListener
void addPropertyChangeListener(java.beans.PropertyChangeListener l)
Add a PropertyChangeListener to the listener list.
-
removePropertyChangeListener
void removePropertyChangeListener(java.beans.PropertyChangeListener l)
Remove a PropertyChangeListener from the listener list.
-
-
DMelt 3.0 © DataMelt by jWork.ORG