org.tigris.gef.presentation
Class EdgeAnnotationStrategy

java.lang.Object
  extended by org.tigris.gef.presentation.AnnotationStrategy
      extended by org.tigris.gef.presentation.EdgeAnnotationStrategy

public class EdgeAnnotationStrategy
extends AnnotationStrategy


Constructor Summary
EdgeAnnotationStrategy()
           
 
Method Summary
 void drawConnectingLine(Fig annotation)
          Draws a dotted line between this annotation and its owner.
 java.awt.Point restoreAnnotationPosition(Fig annotation)
           
 void storeAnnotationPosition(Fig annotation)
          Calculates offset and ratio of annotation (relative to annotationOwner).
 void translateAnnotations(Fig owner)
          move annotations.
 
Methods inherited from class org.tigris.gef.presentation.AnnotationStrategy
addAnnotation, getAllAnnotations, getAnnotationProperties, getAnnotationsVector, lineIsVisible, numOfAnnotations, removeAllAnnotations, removeAllConnectingLines, removeAnnotation, replaceAnnotation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EdgeAnnotationStrategy

public EdgeAnnotationStrategy()
Method Detail

restoreAnnotationPosition

public java.awt.Point restoreAnnotationPosition(Fig annotation)
Overrides:
restoreAnnotationPosition in class AnnotationStrategy

storeAnnotationPosition

public void storeAnnotationPosition(Fig annotation)
Calculates offset and ratio of annotation (relative to annotationOwner). method is called when the annotation is moved without its owner

Specified by:
storeAnnotationPosition in class AnnotationStrategy

drawConnectingLine

public void drawConnectingLine(Fig annotation)
                        throws java.lang.NullPointerException
Draws a dotted line between this annotation and its owner.

Throws:
java.lang.NullPointerException

translateAnnotations

public void translateAnnotations(Fig owner)
move annotations. this method is called when an annotationOwner is moved without its annotations

Specified by:
translateAnnotations in class AnnotationStrategy