|
SGT Home | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gov.noaa.pmel.sgt.dm.SimplePoint
SimplePoint
provides an implementation of the
SGTPoint
and Cartesian
interfaces.
SGTPoint
,
Cartesian
Constructor Summary | |
SimplePoint()
Default constructor. |
|
SimplePoint(double xloc,
double yloc,
java.lang.String title)
Simple Point constructor. |
Method Summary | |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener l)
Add a PropertyChangeListener to the listener list. |
SGTData |
copy()
Create a copy. |
java.lang.String |
getId()
Get the unique identifier. |
SGLabel |
getKeyTitle()
Get a title formatted for a Key. |
GeoDate |
getTime()
Get the time coordinate. |
java.lang.String |
getTitle()
Get the title. |
double |
getValue()
Get the associated value. |
SGTMetaData |
getValueMetaData()
Get the associated value SGTMetaData. |
double |
getX()
Get the X coordinate. |
SGTMetaData |
getXMetaData()
Returns the X SGTMetaData. |
SoTRange |
getXRange()
Returns the range of the X coordinates. |
double |
getY()
Get the Y coordinate |
SGTMetaData |
getYMetaData()
Returns the Y SGTMetaData. |
SoTRange |
getYRange()
Returns the range of the Y coordinates. |
boolean |
hasValue()
Is there an associated value? |
boolean |
isXTime()
Is the X coordinate Time? |
boolean |
isYTime()
Is the Y coordinate Time? |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener l)
Remove a PropertyChangeListener from the listener list. |
void |
setId(java.lang.String ident)
Set the unique identifier. |
void |
setKeyTitle(SGLabel title)
Set the title formatted for the VectorKey . |
void |
setTitle(java.lang.String title)
Set the title. |
void |
setValue(double value,
java.lang.String name,
java.lang.String units)
The the associated value and basic metadata. |
void |
setX(double xloc)
Set the X coordinate. |
void |
setXMetaData(SGTMetaData md)
Set the SGTMetaData associated with the x
coordinate |
void |
setY(double yloc)
Set the Y coordinate. |
void |
setYMetaData(SGTMetaData md)
Set the SGTMetaData associated with the y
coordinate |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SimplePoint()
public SimplePoint(double xloc, double yloc, java.lang.String title)
xloc
- X coordinateyloc
- Y coordinatetitle
- the titleMethod Detail |
public SGTData copy()
copy
in interface SGTData
SGTData
public double getX()
getX
in interface SGTPoint
public double getY()
getY
in interface SGTPoint
public double getValue()
getValue
in interface SGTPoint
public boolean hasValue()
hasValue
in interface SGTPoint
public GeoDate getTime()
getTime
in interface SGTPoint
public boolean isXTime()
isXTime
in interface SGTData
public boolean isYTime()
isYTime
in interface SGTData
public java.lang.String getTitle()
getTitle
in interface SGTData
public void setTitle(java.lang.String title)
public SGLabel getKeyTitle()
SGTData
JPlotLayout
will use this
if an explicit Key title is not given in the addData
method.getKeyTitle
in interface SGTData
gov.noaa.pmel.sgt.dm.SGTData
SGLabel
,
ColorKey
,
LineKey
,
PointCollectionKey
,
VectorKey
public void setKeyTitle(SGLabel title)
VectorKey
.public java.lang.String getId()
getId
in interface SGTData
Pane
,
Layer
public void setId(java.lang.String ident)
public SGTMetaData getValueMetaData()
getValueMetaData
in interface SGTPoint
public void setX(double xloc)
dataModified
.public void setY(double yloc)
dataModified
.public void setValue(double value, java.lang.String name, java.lang.String units)
associatedDataModified
.value
- associated dataname
- values nameunits
- values unitspublic void setXMetaData(SGTMetaData md)
SGTMetaData
associated with the x
coordinatepublic void setYMetaData(SGTMetaData md)
SGTMetaData
associated with the y
coordinatepublic SGTMetaData getXMetaData()
SGTData
getXMetaData
in interface SGTData
public SGTMetaData getYMetaData()
SGTData
getYMetaData
in interface SGTData
public SoTRange getXRange()
SGTData
Double.NaN
as the start and end values for data of type double
and return GeoDate(Long.MIN_VALUE)
for data of type
GeoDate
.getXRange
in interface SGTData
gov.noaa.pmel.sgt.dm.SGTData
GeoDate.isMissing()
public SoTRange getYRange()
SGTData
getYRange
in interface SGTData
gov.noaa.pmel.sgt.dm.SGTData
SGTData.getXRange()
public void addPropertyChangeListener(java.beans.PropertyChangeListener l)
SGTData
addPropertyChangeListener
in interface SGTData
public void removePropertyChangeListener(java.beans.PropertyChangeListener l)
SGTData
removePropertyChangeListener
in interface SGTData
|
SGT Home | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |