-
- All Superinterfaces:
EventListener,MouseInputListener,MouseListener,MouseMotionListener
- All Known Implementing Classes:
AnnotationSelectionHandler,CircleAnnotationHandler,DynamicZoomHandler,EditTextHandler,FreeTextAnnotationHandler,HighLightAnnotationHandler,InkAnnotationHandler,LineAnnotationHandler,LineArrowAnnotationHandler,LinkAnnotationHandler,PanningHandler,RedactionAnnotationHandler,SignatureAnnotationHandler,SquareAnnotationHandler,StrikeOutAnnotationHandler,TextAnnotationHandler,TextSelectionPageHandler,TextSelectionViewHandler,UnderLineAnnotationHandler,ZoomInPageHandler,ZoomInViewHandler,ZoomOutPageHandler
public interface ToolHandler extends MouseInputListener
The ToolHandler interface should be implemented by any tool handler that needs to paints to the screen.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidinstallTool()Callback code that allows post construct task to take place when the tool is selected via theAbstractDocumentView.setToolMode(int)call.voidpaintTool(Graphics g)Paints the tools pre-annotation creation state.voiduninstallTool()Callback code that allows pre destroy task to take place when the tool is unselected via theAbstractDocumentView.setToolMode(int)call.-
Methods inherited from interface java.awt.event.MouseListener
mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased
-
Methods inherited from interface java.awt.event.MouseMotionListener
mouseDragged, mouseMoved
-
-
-
-
Method Detail
-
paintTool
void paintTool(Graphics g)
Paints the tools pre-annotation creation state.- Parameters:
g- graphics context
-
installTool
void installTool()
Callback code that allows post construct task to take place when the tool is selected via theAbstractDocumentView.setToolMode(int)call.
-
uninstallTool
void uninstallTool()
Callback code that allows pre destroy task to take place when the tool is unselected via theAbstractDocumentView.setToolMode(int)call.
-
-