org.tigris.gef.presentation
Class AnnotationStrategy

java.lang.Object
  extended by org.tigris.gef.presentation.AnnotationStrategy
Direct Known Subclasses:
EdgeAnnotationStrategy, NoAnnotationStrategy, NodeAnnotationStrategy

public abstract class AnnotationStrategy
extends java.lang.Object

Each class serving as AnnotationOwner gets an AnnotationStrategy saying how the Annotations should behave when the AnnotationOwner changes its position (e.g. move in parallel).


Constructor Summary
AnnotationStrategy()
           
 
Method Summary
 void addAnnotation(Fig owner, Fig annotation, AnnotationProperties properties)
           
 java.util.Enumeration getAllAnnotations()
           
 AnnotationProperties getAnnotationProperties(Fig annotation)
           
 java.util.Vector getAnnotationsVector()
          USED BY PGML.tee
protected  boolean lineIsVisible(Fig annotation)
           
 int numOfAnnotations()
           
 void removeAllAnnotations()
           
 void removeAllConnectingLines()
           
 void removeAnnotation(Fig annotation)
           
 void replaceAnnotation(Fig annotation, AnnotationProperties properties)
           
 java.awt.Point restoreAnnotationPosition(Fig annotation)
           
abstract  void storeAnnotationPosition(Fig annotation)
           
abstract  void translateAnnotations(Fig owner)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationStrategy

public AnnotationStrategy()
Method Detail

restoreAnnotationPosition

public java.awt.Point restoreAnnotationPosition(Fig annotation)

translateAnnotations

public abstract void translateAnnotations(Fig owner)

storeAnnotationPosition

public abstract void storeAnnotationPosition(Fig annotation)

lineIsVisible

protected boolean lineIsVisible(Fig annotation)

addAnnotation

public void addAnnotation(Fig owner,
                          Fig annotation,
                          AnnotationProperties properties)

numOfAnnotations

public int numOfAnnotations()

getAnnotationProperties

public AnnotationProperties getAnnotationProperties(Fig annotation)

getAllAnnotations

public java.util.Enumeration getAllAnnotations()

getAnnotationsVector

public java.util.Vector getAnnotationsVector()
USED BY PGML.tee


replaceAnnotation

public void replaceAnnotation(Fig annotation,
                              AnnotationProperties properties)

removeAnnotation

public void removeAnnotation(Fig annotation)

removeAllAnnotations

public void removeAllAnnotations()

removeAllConnectingLines

public void removeAllConnectingLines()