|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.noaa.pmel.sgt.dm.Annotation
public class 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 |
---|
clone, equals, finalize, 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
SGException
public java.util.Iterator getLineIterator()
public boolean hasLine()
public Annote addPoint(java.lang.String id, SGTPoint point, PointAttribute attr) throws SGException
SGException
public java.util.Iterator getPointIterator()
public boolean hasPoint()
public Annote addText(java.lang.String id, SoTPoint loc, SGLabel text) throws SGException
SGException
public 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.
SGException
public 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.
SGException
public 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 SGTData
public SGLabel getKeyTitle()
SGTData
JPlotLayout
will use this
if an explicit Key title is not given in the addData
method.
getKeyTitle
in interface SGTData
SGLabel
,
ColorKey
,
LineKey
,
PointCollectionKey
,
VectorKey
public void setId(java.lang.String id)
public java.lang.String getId()
SGTData
getId
in interface SGTData
Pane
,
Layer
public SGTData copy()
SGTData
For example,
public SGTData copy() { SGTData newData; try { newData = (SGTData)clone(); } catch (CloneNotSupportedException e) { newData = null; } return newData; }
copy
in interface SGTData
Object
public boolean isXTime()
SGTData
isXTime
in interface SGTData
public boolean isYTime()
SGTData
isYTime
in interface SGTData
public void setXMetaData(SGTMetaData meta)
public SGTMetaData getXMetaData()
SGTData
getXMetaData
in interface SGTData
public void setYMetaData(SGTMetaData meta)
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
GeoDate.isMissing()
public SoTRange getYRange()
SGTData
getYRange
in interface 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
public void propertyChange(java.beans.PropertyChangeEvent evt)
propertyChange
in interface java.beans.PropertyChangeListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |