|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.icepdf.ri.common.tools.PanningHandler
public class PanningHandler
Container logic used for view panning via mouse dragging for page views. Panning can be handle in the view and doesn't need to be handled by the page components.
| Constructor Summary | |
|---|---|
PanningHandler(DocumentViewController documentViewController,
DocumentViewModel documentViewModel,
AbstractDocumentView parentComponent)
|
|
| 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 |
mouseClicked(java.awt.event.MouseEvent e)
Invoked when the mouse button has been clicked (pressed and released) on a component. |
void |
mouseDragged(java.awt.event.MouseEvent e)
Mouse dragged, initiates page panning if the tool is selected. |
void |
mouseEntered(java.awt.event.MouseEvent e)
Invoked when the mouse enters a component. |
void |
mouseExited(java.awt.event.MouseEvent e)
Invoked when the mouse exits a component. |
void |
mouseMoved(java.awt.event.MouseEvent e)
|
void |
mousePressed(java.awt.event.MouseEvent e)
Invoked when a mouse button has been pressed on a component. |
void |
mouseReleased(java.awt.event.MouseEvent e)
Invoked when a mouse button has been released on a component. |
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 class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PanningHandler(DocumentViewController documentViewController,
DocumentViewModel documentViewModel,
AbstractDocumentView parentComponent)
| Method Detail |
|---|
public void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged in interface java.awt.event.MouseMotionListenere - awt mouse eventpublic void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved in interface java.awt.event.MouseMotionListenerpublic void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked in interface java.awt.event.MouseListenerpublic void mousePressed(java.awt.event.MouseEvent e)
mousePressed in interface java.awt.event.MouseListenerpublic void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased in interface java.awt.event.MouseListenerpublic void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered in interface java.awt.event.MouseListenerpublic void mouseExited(java.awt.event.MouseEvent e)
mouseExited in interface java.awt.event.MouseListenerpublic void paintTool(java.awt.Graphics g)
ToolHandler
paintTool in interface ToolHandlerg - graphics contextpublic void installTool()
ToolHandlerAbstractDocumentView.setToolMode(int)
call.
installTool in interface ToolHandlerpublic void uninstallTool()
ToolHandlerAbstractDocumentView.setToolMode(int)
call.
uninstallTool in interface ToolHandler
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||