gov.noaa.pmel.sgt.dm
Class Annote

java.lang.Object
  extended by gov.noaa.pmel.sgt.dm.Annote
All Implemented Interfaces:
SGTData, java.beans.PropertyChangeListener, java.io.Serializable, java.util.EventListener
Direct Known Subclasses:
Annote.Line, Annote.Oval, Annote.Point, Annote.Rect, Annote.Text

public abstract class Annote
extends java.lang.Object
implements SGTData, java.io.Serializable, java.beans.PropertyChangeListener

Abstract class for annotations.

Since:
3.0
Version:
$Revision$
Author:
Donald Denbo
See Also:
Serialized Form

Nested Class Summary
static class Annote.Line
          Class for line annotations.
static class Annote.Oval
          Class for oval annotations.
static class Annote.Point
          Class for point annotations.
static class Annote.Rect
          Class for rectangle annotations.
static class Annote.Text
          Class for text annotations.
 
Field Summary
protected  java.beans.PropertyChangeSupport changes_
           
protected  java.lang.String id_
           
 
Constructor Summary
protected Annote()
           
 
Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener l)
          Add a PropertyChangeListener to the listener list.
protected  java.awt.Rectangle computeBounds(Graph graph, SoTDomain domain)
           
 java.lang.String getAnnoteId()
           
abstract  java.awt.Rectangle getBounds(Graph graph)
           
abstract  SoTDomain getDomain()
           
abstract  void init()
          Init method used to setup serialized object.
abstract  void moveBy(SoTPoint point)
           
abstract  void propertyChange(java.beans.PropertyChangeEvent evt)
           
 void removePropertyChangeListener(java.beans.PropertyChangeListener l)
          Remove a PropertyChangeListener from the listener list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface gov.noaa.pmel.sgt.dm.SGTData
copy, getId, getKeyTitle, getTitle, getXMetaData, getXRange, getYMetaData, getYRange, isXTime, isYTime
 

Field Detail

changes_

protected transient java.beans.PropertyChangeSupport changes_

id_

protected java.lang.String id_
Constructor Detail

Annote

protected Annote()
Method Detail

computeBounds

protected java.awt.Rectangle computeBounds(Graph graph,
                                           SoTDomain domain)

getBounds

public abstract java.awt.Rectangle getBounds(Graph graph)

getDomain

public abstract SoTDomain getDomain()

moveBy

public abstract void moveBy(SoTPoint point)

propertyChange

public abstract void propertyChange(java.beans.PropertyChangeEvent evt)
Specified by:
propertyChange in interface java.beans.PropertyChangeListener

getAnnoteId

public java.lang.String getAnnoteId()

init

public abstract void init()
Init method used to setup serialized object.


addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener l)
Description copied from interface: SGTData
Add a PropertyChangeListener to the listener list.

Specified by:
addPropertyChangeListener in interface SGTData

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener l)
Description copied from interface: SGTData
Remove a PropertyChangeListener from the listener list.

Specified by:
removePropertyChangeListener in interface SGTData