|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.icepdf.ri.common.tools.DynamicZoomHandler
public class DynamicZoomHandler
Handles dynamic zoom which picks up on the mouse wheel rotation to zoom in or out depending on the direction.
| Field Summary | |
|---|---|
protected javax.swing.JScrollPane |
documentScrollPane
|
| Constructor Summary | |
|---|---|
DynamicZoomHandler(DocumentViewController documentViewController,
javax.swing.JScrollPane documentScrollPane)
|
|
| 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)
|
void |
mouseDragged(java.awt.event.MouseEvent e)
|
void |
mouseEntered(java.awt.event.MouseEvent e)
|
void |
mouseExited(java.awt.event.MouseEvent e)
|
void |
mouseMoved(java.awt.event.MouseEvent e)
|
void |
mousePressed(java.awt.event.MouseEvent e)
|
void |
mouseReleased(java.awt.event.MouseEvent e)
|
void |
mouseWheelMoved(java.awt.event.MouseWheelEvent e)
Handles ctl-wheel mouse for document zooming. |
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 |
| Field Detail |
|---|
protected javax.swing.JScrollPane documentScrollPane
| Constructor Detail |
|---|
public DynamicZoomHandler(DocumentViewController documentViewController,
javax.swing.JScrollPane documentScrollPane)
| Method Detail |
|---|
public void mouseWheelMoved(java.awt.event.MouseWheelEvent e)
mouseWheelMoved in interface java.awt.event.MouseWheelListenere - mouse wheel event.public void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked in interface java.awt.event.MouseListenerpublic void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged in interface java.awt.event.MouseMotionListenerpublic void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved in interface java.awt.event.MouseMotionListenerpublic 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 | ||||||||