-
- All Implemented Interfaces:
ActionListener,KeyListener,MouseListener,MouseMotionListener,EventListener,MouseInputListener,ToolHandler
public class StrikeOutAnnotationHandler extends HighLightAnnotationHandler
StrikeOutAnnotationHandler 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 StrikeOutAnnotation 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
annotation, enableHighlightContents, markupSubType
-
Fields inherited from class org.icepdf.ri.common.tools.TextSelectionPageHandler
isClearSelection, isMouseDrag
-
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, pageViewComponent, preferences
-
-
Constructor Summary
Constructors Constructor Description StrikeOutAnnotationHandler(DocumentViewController documentViewController, AbstractPageViewComponent pageViewComponent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckAndApplyPreferences()-
Methods inherited from class org.icepdf.ri.common.tools.HighLightAnnotationHandler
actionPerformed, createMarkupAnnotation, createMarkupAnnotationFromTextSelection, getSelectedText, getSelectedTextBounds, installTool, keyPressed, keyReleased, keyTyped, mouseClicked, mouseReleased, uninstallTool
-
Methods inherited from class org.icepdf.ri.common.tools.TextSelectionPageHandler
cancelSelection, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, paintTool, setDocumentViewController, setSelectionRectangle
-
Methods inherited from class org.icepdf.ri.common.tools.TextSelection
calculateTextSelectionExclusion, clearSelection, clearSelectionState, convertTextShapesToBounds, convertToPageSpace, lineSelectHandler, multiLineSelectHandler, paintSelectedText, paintTextBounds, selection, selectionEnd, selectionStart, selectionTextSelectIcon, setBottomMargin, setTopMargin, wordLineSelection, wordSelectHandler
-
Methods inherited from class org.icepdf.ri.common.tools.SelectionBoxHandler
clearRectangle, getCurrentRect, getRectToDraw, isOverPageComponent, paintRectangle, paintSelectionBox, resetRectangle, setCurrentRect, setRectToDraw, setSelectionSize, updateDrawableRect, updateSelectionSize
-
Methods inherited from class org.icepdf.ri.common.tools.CommonToolHandler
convertToPageSpace, convertToPageSpace, convertToPageSpace, convertToPageSpace, getPageTransform, getPageTransform, getToPageSpaceTransform, getToPageSpaceTransform
-
-
-
-
Constructor Detail
-
StrikeOutAnnotationHandler
public StrikeOutAnnotationHandler(DocumentViewController documentViewController, AbstractPageViewComponent pageViewComponent)
-
-
Method Detail
-
checkAndApplyPreferences
protected void checkAndApplyPreferences()
- Overrides:
checkAndApplyPreferencesin classHighLightAnnotationHandler
-
-