org.icepdf.ri.common.tools
Interface ToolHandler

All Superinterfaces:
java.util.EventListener, javax.swing.event.MouseInputListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener
All Known Implementing Classes:
AnnotationSelectionHandler, CircleAnnotationHandler, DynamicZoomHandler, FreeTextAnnotationHandler, HighLightAnnotationHandler, InkAnnotationHandler, LineAnnotationHandler, LineArrowAnnotationHandler, LinkAnnotationHandler, PanningHandler, SquareAnnotationHandler, StrikeOutAnnotationHandler, TextAnnotationHandler, TextSelectionPageHandler, TextSelectionViewHandler, UnderLineAnnotationHandler, ZoomInPageHandler, ZoomInViewHandler, ZoomOutPageHandler

public interface ToolHandler
extends javax.swing.event.MouseInputListener

The ToolHandler interface should be implemented by any tool handler that needs to paints to the screen.


Method Summary
 void installTool()
          Callback code that allows post construct task to take place when the tool is selected via the AbstractDocumentView.setToolMode(int) call.
 void paintTool(java.awt.Graphics g)
          Paints the tools pre-annotation creation state.
 void uninstallTool()
          Callback code that allows pre destroy task to take place when the tool is unselected via the AbstractDocumentView.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(java.awt.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 the AbstractDocumentView.setToolMode(int) call.


uninstallTool

void uninstallTool()
Callback code that allows pre destroy task to take place when the tool is unselected via the AbstractDocumentView.setToolMode(int) call.