|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.event.KeyAdapter
jpicedt.graphic.toolkit.MouseTool
jpicedt.graphic.toolkit.ZoomTool
public class ZoomTool
A mouse tool for EditorKit, which allows to zoom in and out while retaining the current scene at the center of the drawing sheet.
Field Summary |
---|
Fields inherited from class jpicedt.graphic.toolkit.MouseTool |
---|
lastMouseEvent, mouseOutside |
Constructor Summary | |
---|---|
ZoomTool(EditorKit kit)
construct a new ZoomTool for the given EditorKit |
Method Summary | |
---|---|
void |
mouseMoved(PEMouseEvent e)
set cursor |
void |
mousePressed(PEMouseEvent e)
Depending on the button and the modifiers, we increase or decrease zoom, or do nothing. |
Methods inherited from class jpicedt.graphic.toolkit.MouseTool |
---|
flush, getLastMouseEvent, init, keyPressed, keyReleased, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseReleased, paint, processKeyEvent |
Methods inherited from class java.awt.event.KeyAdapter |
---|
keyTyped |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ZoomTool(EditorKit kit)
Method Detail |
---|
public void mousePressed(PEMouseEvent e)
mousePressed
in interface PEMouseInputListener
mousePressed
in class MouseTool
public void mouseMoved(PEMouseEvent e)
mouseMoved
in interface PEMouseInputListener
mouseMoved
in class MouseTool
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |