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, 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 TypeMethodDescriptiongetHandles(PageView pageView, Page page, ArrowAnnotation annotation) Creates handles for a specific annotation.floatReturns the minimum line length.booleanvoidsetArrowHeadHandleEnabled(boolean arrowHeadHandleEnabled) voidsetMinimumLineLength(float minimumLineLength) Used to inject the value defined in the annotation profile.protected voidupdateCreated(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, getForceAnnotationUpright, getMinimumHeight, getMinimumWidth, handleCreateEditEvent, handleEditEvent, isSelectionPoint, isSelectionTouchPoint, setCreationMode, setForceAnnotationUpright, setMinimumHeight, setMinimumWidth
-
Constructor Details
-
ArrowAnnotationWrangler
public ArrowAnnotationWrangler()
-
-
Method Details
-
setArrowHeadHandleEnabled
public void setArrowHeadHandleEnabled(boolean arrowHeadHandleEnabled) -
isArrowHeadHandleEnabled
public boolean isArrowHeadHandleEnabled() -
getHandles
Description copied from class:WranglerCreates handles for a specific annotation.- Overrides:
getHandlesin 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:
updateCreatedin 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.
-