org.tigris.gef.presentation
Class AnnotationStrategy
java.lang.Object
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).
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AnnotationStrategy
public AnnotationStrategy()
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()