|
SGT Home | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Object | +--gov.noaa.pmel.sgt.dm.Annotation
A container to hold Annote objects.
| Constructor Summary | |
Annotation()
|
|
Annotation(java.lang.String title)
|
|
Annotation(java.lang.String title,
boolean xTime,
boolean yTime)
|
|
| Method Summary | |
void |
add(Annote ann)
|
Annote |
addLine(java.lang.String id,
SGTLine line,
LineAttribute attr)
|
Annote |
addOval(java.lang.String id,
SoTPoint pt1,
SoTPoint pt2,
LineAttribute attr,
java.awt.Color color)
Add an oval to the Annotation. |
Annote |
addPoint(java.lang.String id,
SGTPoint point,
PointAttribute attr)
|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener l)
Add a PropertyChangeListener to the listener list. |
Annote |
addRect(java.lang.String id,
SoTPoint pt1,
SoTPoint pt2,
LineAttribute attr,
java.awt.Color color)
Add an rectangle to the Annotation. |
Annote |
addText(java.lang.String id,
SoTPoint loc,
SGLabel text)
|
SGTData |
copy()
Create a shallow copy. |
Annote |
findAnnote(java.lang.String id)
|
java.lang.String |
getId()
Get the unique identifier. |
SGLabel |
getKeyTitle()
Get a title formatted for a Key. |
java.util.Iterator |
getLineIterator()
|
java.util.Iterator |
getOvalIterator()
|
java.util.Iterator |
getPointIterator()
|
java.util.Iterator |
getRectIterator()
|
java.util.Iterator |
getTextIterator()
|
java.lang.String |
getTitle()
Get the title. |
SGTMetaData |
getXMetaData()
Returns the X SGTMetaData. |
SoTRange |
getXRange()
Returns the range of the X coordinates. |
SGTMetaData |
getYMetaData()
Returns the Y SGTMetaData. |
SoTRange |
getYRange()
Returns the range of the Y coordinates. |
boolean |
hasLine()
|
boolean |
hasOval()
|
boolean |
hasPoint()
|
boolean |
hasRect()
|
boolean |
hasText()
|
boolean |
isXTime()
Returns true if the X coordinate is Time. |
boolean |
isYTime()
Returns true if the Y coordinate is Time. |
void |
propertyChange(java.beans.PropertyChangeEvent evt)
|
boolean |
remove(Annote ann)
|
boolean |
remove(java.lang.String id)
|
void |
removePropertyChangeListener(java.beans.PropertyChangeListener l)
Remove a PropertyChangeListener from the listener list. |
void |
setId(java.lang.String id)
|
void |
setTitle(java.lang.String title)
|
void |
setXMetaData(SGTMetaData meta)
|
void |
setYMetaData(SGTMetaData meta)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Annotation()
public Annotation(java.lang.String title)
public Annotation(java.lang.String title,
boolean xTime,
boolean yTime)
| Method Detail |
public boolean remove(java.lang.String id)
public boolean remove(Annote ann)
public void add(Annote ann)
throws SGException
SGException
public Annote addLine(java.lang.String id,
SGTLine line,
LineAttribute attr)
throws SGException
SGExceptionpublic java.util.Iterator getLineIterator()
public boolean hasLine()
public Annote addPoint(java.lang.String id,
SGTPoint point,
PointAttribute attr)
throws SGException
SGExceptionpublic java.util.Iterator getPointIterator()
public boolean hasPoint()
public Annote addText(java.lang.String id,
SoTPoint loc,
SGLabel text)
throws SGException
SGExceptionpublic java.util.Iterator getTextIterator()
public boolean hasText()
public Annote addOval(java.lang.String id,
SoTPoint pt1,
SoTPoint pt2,
LineAttribute attr,
java.awt.Color color)
throws SGException
Annotation. If attr is non-null an oval
outline will be drawn, if color is non-null it will be filled.
SGExceptionpublic java.util.Iterator getOvalIterator()
public boolean hasOval()
public Annote addRect(java.lang.String id,
SoTPoint pt1,
SoTPoint pt2,
LineAttribute attr,
java.awt.Color color)
throws SGException
Annotation. If attr is non-null an rectangle
outline will be drawn, if color is non-null it will be filled.
SGExceptionpublic java.util.Iterator getRectIterator()
public boolean hasRect()
public Annote findAnnote(java.lang.String id)
public void setTitle(java.lang.String title)
public java.lang.String getTitle()
SGTData
getTitle in interface SGTDatapublic SGLabel getKeyTitle()
SGTDataJPlotLayout will use this
if an explicit Key title is not given in the addData method.
getKeyTitle in interface SGTDataSGLabel,
ColorKey,
LineKey,
PointCollectionKey,
VectorKeypublic void setId(java.lang.String id)
public java.lang.String getId()
SGTData
getId in interface SGTDataPane,
Layerpublic SGTData copy()
SGTDataFor example,
public SGTData copy() {
SGTData newData;
try {
newData = (SGTData)clone();
} catch (CloneNotSupportedException e) {
newData = null;
}
return newData;
}
copy in interface SGTDataObjectpublic boolean isXTime()
SGTData
isXTime in interface SGTDatapublic boolean isYTime()
SGTData
isYTime in interface SGTDatapublic void setXMetaData(SGTMetaData meta)
public SGTMetaData getXMetaData()
SGTData
getXMetaData in interface SGTDatapublic void setYMetaData(SGTMetaData meta)
public SGTMetaData getYMetaData()
SGTData
getYMetaData in interface SGTDatapublic SoTRange getXRange()
SGTDataDouble.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 SGTDataGeoDate.isMissing()public SoTRange getYRange()
SGTData
getYRange in interface SGTDataSGTData.getXRange()public void addPropertyChangeListener(java.beans.PropertyChangeListener l)
SGTData
addPropertyChangeListener in interface SGTDatapublic void removePropertyChangeListener(java.beans.PropertyChangeListener l)
SGTData
removePropertyChangeListener in interface SGTDatapublic void propertyChange(java.beans.PropertyChangeEvent evt)
propertyChange in interface java.beans.PropertyChangeListener
|
SGT Home | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||