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
-
Field Summary
Fields inherited from class com.levigo.jadice.web.client.internal.annotation.wrangler.DefaultWrangler
boundsType, createAnno, createEnd, createStart, EMPTY_HANDLE_LIST, MINIMUM_HEIGHT, MINIMUM_WIDTH, minimumHeight, minimumWidth, selectionInspector
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Path2D
getHandles
(PageView pageView, Page page, PathAnnotation annotation) Creates handles for a specific annotation.boolean
handleCreateEditEvent
(EditEvent e, PathAnnotation annotation) Invoked during the creation of an annotation.void
setClosed
(boolean closed) Methods inherited from class com.levigo.jadice.web.client.internal.annotation.wrangler.DefaultWrangler
afterCreate, calcMinWidth, contribute, getCreationMode, getCursor, getMinimumHeight, getMinimumWidth, handleEditEvent, isSelectionPoint, isSelectionTouchPoint, setCreationMode, setMinimumHeight, setMinimumWidth, updateCreated
-
Constructor Details
-
PolygonAnnotationWrangler
public PolygonAnnotationWrangler()
-
-
Method Details
-
getHandles
Description copied from class:Wrangler
Creates handles for a specific annotation.- Overrides:
getHandles
in 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:Wrangler
Invoked 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:
handleCreateEditEvent
in 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
-