org.icepdf.ri.common.tools
Class UnderLineAnnotationHandler

java.lang.Object
  extended by org.icepdf.ri.common.tools.CommonToolHandler
      extended by org.icepdf.ri.common.tools.SelectionBoxHandler
          extended by org.icepdf.ri.common.tools.TextSelection
              extended by org.icepdf.ri.common.tools.TextSelectionPageHandler
                  extended by org.icepdf.ri.common.tools.HighLightAnnotationHandler
                      extended by org.icepdf.ri.common.tools.UnderLineAnnotationHandler
All Implemented Interfaces:
java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.util.EventListener, javax.swing.event.MouseInputListener, ToolHandler

public class UnderLineAnnotationHandler
extends HighLightAnnotationHandler

UnderLineAnnotationHandler tool extends TextSelectionPageHandler which takes care visually selected text as the mouse is dragged across text on the current page.

Once the mouseReleased event is fired this handler will create new UnderLineAnnotation and respective AnnotationComponent. The addition of the Annotation object to the page is handled by the annotation callback. Once create the handler will deselect the text and the newly created annotation will be displayed.

Since:
5.0

Field Summary
 
Fields inherited from class org.icepdf.ri.common.tools.HighLightAnnotationHandler
highLightType
 
Fields inherited from class org.icepdf.ri.common.tools.TextSelection
bottomMargin, bottomMarginExclusion, enableMarginExclusion, enableMarginExclusionBorder, lastMouseLocation, lastMousePressedLocation, logger, pageLock, selectedCount, topMargin, topMarginExclusion
 
Fields inherited from class org.icepdf.ri.common.tools.SelectionBoxHandler
currentRect, dash1, previousRectDrawn, rectToDraw, selectionBoxColour, stroke
 
Fields inherited from class org.icepdf.ri.common.tools.CommonToolHandler
documentViewController, documentViewModel, pageViewComponent
 
Constructor Summary
UnderLineAnnotationHandler(DocumentViewController documentViewController, AbstractPageViewComponent pageViewComponent, DocumentViewModel documentViewModel)
           
 
Method Summary
 
Methods inherited from class org.icepdf.ri.common.tools.HighLightAnnotationHandler
createTextMarkupAnnotation, mouseClicked, mouseReleased
 
Methods inherited from class org.icepdf.ri.common.tools.TextSelectionPageHandler
convertToPageSpace, installTool, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, paintTool, setDocumentViewController, setSelectionRectangle, uninstallTool
 
Methods inherited from class org.icepdf.ri.common.tools.TextSelection
calculateTextSelectionExclusion, clearSelection, clearSelectionState, lineSelectHandler, multiLineSelectHandler, paintSelectedText, paintTextBounds, selection, selectionEnd, selectionIcon, selectionStart, setBottomMargin, setTopMargin, wordLineSelection, wordSelectHandler
 
Methods inherited from class org.icepdf.ri.common.tools.SelectionBoxHandler
clearRectangle, getCurrentRect, getRectToDraw, isOverPageComponent, paintSelectionBox, resetRectangle, setCurrentRect, setRectToDraw, setSelectionSize, updateDrawableRect, updateSelectionSize
 
Methods inherited from class org.icepdf.ri.common.tools.CommonToolHandler
convertMouseToPageSpace, convertRectangleToPageSpace, convertToPageSpace, convertToPageSpace, convertToPageSpace, getPageTransform, getPageTransform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnderLineAnnotationHandler

public UnderLineAnnotationHandler(DocumentViewController documentViewController,
                                  AbstractPageViewComponent pageViewComponent,
                                  DocumentViewModel documentViewModel)