Class IconifiedTextAnnotationWrangler


public class IconifiedTextAnnotationWrangler extends TextAnnotationWrangler
  • 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 class TextAnnotationWrangler
    • 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 class TextAnnotationWrangler
      Parameters:
      pageHeight -
      Returns:
      a new text editor instance.
    • getHandles

      public List<? extends Handle> getHandles(PageView pageView, Page page, TextAnnotation annotation)
      Description copied from class: Wrangler
      Creates handles for a specific annotation.
      Overrides:
      getHandles in class TextAnnotationWrangler
      Parameters:
      pageView - PageView the annotation is shown on (for example for repaint calls)
      page - The page that contains the annotation
      annotation - 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 class TextAnnotationWrangler