Class ArrowAnnotationWrangler
java.lang.Object
com.levigo.jadice.annotation.AnnotationWrangler
com.levigo.jadice.web.client.internal.annotation.Wrangler<ArrowAnnotation>
com.levigo.jadice.web.client.internal.annotation.wrangler.DefaultWrangler<ArrowAnnotation>
com.levigo.jadice.web.client.internal.annotation.wrangler.ArrowAnnotationWrangler
-
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 TypeMethodDescriptiongetHandles
(PageView pageView, Page page, ArrowAnnotation annotation) Creates handles for a specific annotation.float
Returns the minimum line length.boolean
void
setArrowHeadHandleEnabled
(boolean arrowHeadHandleEnabled) void
setMinimumLineLength
(float minimumLineLength) Used to inject the value defined in the annotation profile.protected void
updateCreated
(EditEvent e, ArrowAnnotation createAnno, Point2D createStart, Point2D createEnd) Methods inherited from class com.levigo.jadice.web.client.internal.annotation.wrangler.DefaultWrangler
afterCreate, calcMinWidth, contribute, getCreationMode, getCursor, getMinimumHeight, getMinimumWidth, handleCreateEditEvent, handleEditEvent, isSelectionPoint, isSelectionTouchPoint, setCreationMode, setMinimumHeight, setMinimumWidth
-
Constructor Details
-
ArrowAnnotationWrangler
public ArrowAnnotationWrangler()
-
-
Method Details
-
setArrowHeadHandleEnabled
public void setArrowHeadHandleEnabled(boolean arrowHeadHandleEnabled) -
isArrowHeadHandleEnabled
public boolean isArrowHeadHandleEnabled() -
getHandles
Description copied from class:Wrangler
Creates handles for a specific annotation.- Overrides:
getHandles
in classDefaultWrangler<ArrowAnnotation>
- 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
-
updateCreated
protected void updateCreated(EditEvent e, ArrowAnnotation createAnno, Point2D createStart, Point2D createEnd) - Overrides:
updateCreated
in classDefaultWrangler<ArrowAnnotation>
-
setMinimumLineLength
public void setMinimumLineLength(float minimumLineLength) Used to inject the value defined in the annotation profile.- Parameters:
minimumLineLength
- the minimum line length defined in the underlying annotation profile.
-
getMinimumLineLength
public float getMinimumLineLength()Returns the minimum line length.- Returns:
- the minimum line length.
-