Class PolygonAnnotationWrangler
java.lang.Object
com.levigo.jadice.annotation.AnnotationWrangler
com.levigo.jadice.web.client.internal.annotation.Wrangler<PathAnnotation>
com.levigo.jadice.web.client.internal.annotation.wrangler.DefaultWrangler<PathAnnotation>
com.levigo.jadice.web.client.internal.annotation.wrangler.PolygonAnnotationWrangler
-
Nested Class Summary
Nested classes/interfaces inherited from class com.levigo.jadice.web.client.internal.annotation.wrangler.DefaultWrangler
DefaultWrangler.CreationMode, DefaultWrangler.ForceAnnotationUpright -
Field Summary
Fields inherited from class com.levigo.jadice.web.client.internal.annotation.wrangler.DefaultWrangler
boundsType, createAnno, createEnd, createStart, EMPTY_HANDLE_LIST, forceAnnotationUpright, MINIMUM_HEIGHT, MINIMUM_WIDTH, minimumHeight, minimumWidth, selectionInspector -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Path2DgetHandles(PageView pageView, Page page, PathAnnotation annotation) Creates handles for a specific annotation.booleanhandleCreateEditEvent(EditEvent e, PathAnnotation annotation) Invoked during the creation of an annotation.voidsetClosed(boolean closed) Methods inherited from class com.levigo.jadice.web.client.internal.annotation.wrangler.DefaultWrangler
afterCreate, calcMinWidth, contribute, getCreationMode, getCursor, getForceAnnotationUpright, getMinimumHeight, getMinimumWidth, handleEditEvent, isSelectionPoint, isSelectionTouchPoint, setCreationMode, setForceAnnotationUpright, setMinimumHeight, setMinimumWidth, updateCreated
-
Constructor Details
-
PolygonAnnotationWrangler
public PolygonAnnotationWrangler()
-
-
Method Details
-
getHandles
Description copied from class:WranglerCreates handles for a specific annotation.- Overrides:
getHandlesin classDefaultWrangler<PathAnnotation>- Parameters:
pageView- PageView the annotation is shown on (for example for repaint calls)page- The page that contains the annotationannotation- The annotation the wrangler should create handles for- Returns:
- Handles that can be used to edit the annotation
-
convert
-
convert
-
setClosed
public void setClosed(boolean closed) -
handleCreateEditEvent
Description copied from class:WranglerInvoked during the creation of an annotation.Can be invoked multiple times. For example during the creation of a polygon based annotation each mouse down event could indicate a new corner of the polygon at the current mouse position.
- Overrides:
handleCreateEditEventin classDefaultWrangler<PathAnnotation>- Parameters:
e- An event that controls a part of the creationannotation- The annotation that shall be created- Returns:
- True when creation finished, false else
-