jpicedt.graphic.toolkit
Class ZoomTool
java.lang.Object
java.awt.event.KeyAdapter
jpicedt.graphic.toolkit.MouseTool
jpicedt.graphic.toolkit.ZoomTool
- All Implemented Interfaces:
- KeyListener, EventListener, PEMouseInputListener
public class ZoomTool
- extends MouseTool
A mouse tool for EditorKit, which allows to zoom in and out while retaining the current scene at the center
of the drawing sheet.
- Since:
- jPicEdt 1.3.2
- Author:
- Sylvain Reynal
Constructor Summary |
ZoomTool(EditorKit kit)
construct a new ZoomTool for the given EditorKit |
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.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ZoomTool
public ZoomTool(EditorKit kit)
- construct a new ZoomTool for the given EditorKit
- Since:
- jPicEdt 1.3.2
mousePressed
public void mousePressed(PEMouseEvent e)
- Depending on the button and the modifiers, we increase or decrease zoom, or do nothing.
- Specified by:
mousePressed
in interface PEMouseInputListener
- Overrides:
mousePressed
in class MouseTool
mouseMoved
public void mouseMoved(PEMouseEvent e)
- set cursor
- Specified by:
mouseMoved
in interface PEMouseInputListener
- Overrides:
mouseMoved
in class MouseTool
Submit a bug : syd@jpicedt.org