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.RotateHandle, TextAnnotationWrangler.TextSelectionNested 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.TextAnnotationWrangler
cursorPosition, editorBehaviorOnOutsideClick, editorHeight, editorWidth, executeActionAfterCreation, expandHeight, forceAnnotationUpright, showRotationHandle, textSelectionFields 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 TextEditorcreateTextEditor(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.intintbooleanThis can be overriden by any subclass to disable the initial resizing when an annotation is added with a single click.voidsetIconifiedHeight(int iconifiedHeight) voidsetIconifiedWidth(int iconifiedWidth) protected voidupdateCreated(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, setTextSelectionMethods 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:
updateCreatedin classTextAnnotationWrangler
-
createTextEditor
protected TextEditor createTextEditor(int editorMinWidth, int editorMinHeight, TextAnnotation selected, double pageHeight) Description copied from class:TextAnnotationWranglerCreates a text editor. The editor for normal text annotations does not have a minimum size.- Overrides:
createTextEditorin classTextAnnotationWrangler- Parameters:
pageHeight-- Returns:
- a new text editor instance.
-
getHandles
Description copied from class:WranglerCreates handles for a specific annotation.- Overrides:
getHandlesin 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:TextAnnotationWranglerThis can be overriden by any subclass to disable the initial resizing when an annotation is added with a single click.- Overrides:
scaleByEditorWidthin classTextAnnotationWrangler
-