- java.lang.Object
-
- org.icepdf.ri.common.tools.CommonToolHandler
-
- org.icepdf.ri.common.tools.SelectionBoxHandler
-
- org.icepdf.ri.common.tools.LineAnnotationHandler
-
- org.icepdf.ri.common.tools.LineArrowAnnotationHandler
-
- All Implemented Interfaces:
MouseListener,MouseMotionListener,EventListener,MouseInputListener,ToolHandler
public class LineArrowAnnotationHandler extends LineAnnotationHandler
LineArrowAnnotationHandler tool is responsible for painting representation of a line arrow on the screen during a click and drag mouse event. The first point is recorded on mousePressed and the line is drawn from first point the current location of the mouse. An open arrow is drawn at the starting point.
Once the mouseReleased event is fired this handler will create new LineArrowAnnotation and respective AnnotationComponent. The addition of the Annotation object to the page is handled by the annotation callback.- Since:
- 5.0
-
-
Field Summary
-
Fields inherited from class org.icepdf.ri.common.tools.LineAnnotationHandler
borderStyle, endLineEnding, endOfLine, internalColor, lineColor, opacity, startLineEnding, startOfLine, stroke
-
Fields inherited from class org.icepdf.ri.common.tools.SelectionBoxHandler
currentRect, dash1, previousRectDrawn, rectToDraw, selectionBoxColour
-
Fields inherited from class org.icepdf.ri.common.tools.CommonToolHandler
documentViewController, pageViewComponent, preferences
-
-
Constructor Summary
Constructors Constructor Description LineArrowAnnotationHandler(DocumentViewController documentViewController, AbstractPageViewComponent pageViewComponent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckAndApplyPreferences()voidpaintTool(Graphics g)Paints the tools pre-annotation creation state.-
Methods inherited from class org.icepdf.ri.common.tools.LineAnnotationHandler
installTool, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, setSelectionRectangle, uninstallTool
-
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
-
LineArrowAnnotationHandler
public LineArrowAnnotationHandler(DocumentViewController documentViewController, AbstractPageViewComponent pageViewComponent)
-
-
Method Detail
-
paintTool
public void paintTool(Graphics g)
Description copied from interface:ToolHandlerPaints the tools pre-annotation creation state.- Specified by:
paintToolin interfaceToolHandler- Overrides:
paintToolin classLineAnnotationHandler- Parameters:
g- graphics context
-
checkAndApplyPreferences
protected void checkAndApplyPreferences()
- Overrides:
checkAndApplyPreferencesin classLineAnnotationHandler
-
-