Class IconifiedTextAnnotationWrangler
java.lang.Object
com.levigo.jadice.annotation.AnnotationWrangler
com.levigo.jadice.web.client.internal.annotation.Wrangler<TextAnnotation>
com.levigo.jadice.web.client.internal.annotation.wrangler.DefaultWrangler<TextAnnotation>
com.levigo.jadice.web.client.internal.annotation.wrangler.TextAnnotationWrangler
com.levigo.jadice.web.client.internal.annotation.wrangler.IconifiedTextAnnotationWrangler
-
Nested Class Summary
Nested classes/interfaces inherited from class com.levigo.jadice.web.client.internal.annotation.wrangler.TextAnnotationWrangler
TextAnnotationWrangler.CursorPosition, TextAnnotationWrangler.EditorBehaviorOnOutsideClick, TextAnnotationWrangler.ExpandHeight, TextAnnotationWrangler.ForceAnnotationUpright, TextAnnotationWrangler.RotateHandle, TextAnnotationWrangler.TextSelection
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.TextAnnotationWrangler
cursorPosition, editorBehaviorOnOutsideClick, editorHeight, editorWidth, executeActionAfterCreation, expandHeight, forceAnnotationUpright, showRotationHandle, textSelection
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 TypeMethodDescriptionprotected TextEditor
createTextEditor
(int editorMinWidth, int editorMinHeight, TextAnnotation selected, double pageHeight) Creates a text editor.getHandles
(PageView pageView, Page page, TextAnnotation annotation) Creates handles for a specific annotation.int
int
boolean
This can be overriden by any subclass to disable the initial resizing when an annotation is added with a single click.void
setIconifiedHeight
(int iconifiedHeight) void
setIconifiedWidth
(int iconifiedWidth) protected void
updateCreated
(EditEvent e, TextAnnotation createAnno, Point2D createStart, Point2D createEnd) Methods inherited from class com.levigo.jadice.web.client.internal.annotation.wrangler.TextAnnotationWrangler
afterCreate, calculateEditorBounds, contribute, getCursorPosition, getEditorBehaviorOnOutsideClick, getEditorHeight, getEditorWidth, getForceAnnotationUpright, getIcon, getIconFont, getMultiplier, getTextSelection, handleEditEvent, isExecuteActionAfterCreation, isSelectionPoint, isShowRotationHandle, openTextEditor, setCursorPosition, setEditorBehaviorOnOutsideClick, setEditorHeight, setEditorWidth, setExecuteActionAfterCreation, setExpandHeight, setForceAnnotationUpright, setShowRotationHandle, setTextSelection
Methods inherited from class com.levigo.jadice.web.client.internal.annotation.wrangler.DefaultWrangler
calcMinWidth, getCreationMode, getCursor, getMinimumHeight, getMinimumWidth, handleCreateEditEvent, isSelectionTouchPoint, setCreationMode, setMinimumHeight, setMinimumWidth
-
Constructor Details
-
IconifiedTextAnnotationWrangler
public IconifiedTextAnnotationWrangler()
-
-
Method Details
-
getIconifiedWidth
public int getIconifiedWidth() -
setIconifiedWidth
public void setIconifiedWidth(int iconifiedWidth) -
getIconifiedHeight
public int getIconifiedHeight() -
setIconifiedHeight
public void setIconifiedHeight(int iconifiedHeight) -
updateCreated
protected void updateCreated(EditEvent e, TextAnnotation createAnno, Point2D createStart, Point2D createEnd) - Overrides:
updateCreated
in classTextAnnotationWrangler
-
createTextEditor
protected TextEditor createTextEditor(int editorMinWidth, int editorMinHeight, TextAnnotation selected, double pageHeight) Description copied from class:TextAnnotationWrangler
Creates a text editor. The editor for normal text annotations does not have a minimum size.- Overrides:
createTextEditor
in classTextAnnotationWrangler
- Parameters:
pageHeight
-- Returns:
- a new text editor instance.
-
getHandles
Description copied from class:Wrangler
Creates handles for a specific annotation.- Overrides:
getHandles
in classTextAnnotationWrangler
- 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
-
scaleByEditorWidth
public boolean scaleByEditorWidth()Description copied from class:TextAnnotationWrangler
This can be overriden by any subclass to disable the initial resizing when an annotation is added with a single click.- Overrides:
scaleByEditorWidth
in classTextAnnotationWrangler
-