public class MoveTool extends MouseTool
lastMouseEvent, mouseOutside
Constructor and Description |
---|
MoveTool(EditorKit kit,
Element target) |
Modifier and Type | Method and Description |
---|---|
void |
mouseDragged(PEMouseEvent e)
set the 2nd pt of the translation vector and translate the target
|
void |
mouseMoved(PEMouseEvent e)
set the cursor
|
void |
mousePressed(PEMouseEvent e)
set the first point of the translation vector
|
void |
mouseReleased(PEMouseEvent e)
this default implementation simply stores the given mouse-event in lastMouseEvent field
|
void |
paint(java.awt.Graphics2D g,
java.awt.geom.Rectangle2D allocation,
double scale)
Allow the tool to paint shapes that are specific to this tool.
|
flush, getLastMouseEvent, init, keyPressed, keyReleased, mouseClicked, mouseEntered, mouseExited, processKeyEvent
public void mousePressed(PEMouseEvent e)
mousePressed
in interface PEMouseInputListener
mousePressed
in class MouseTool
public void mouseDragged(PEMouseEvent e)
mouseDragged
in interface PEMouseInputListener
mouseDragged
in class MouseTool
public void mouseReleased(PEMouseEvent e)
MouseTool
mouseReleased
in interface PEMouseInputListener
mouseReleased
in class MouseTool
public void mouseMoved(PEMouseEvent e)
mouseMoved
in interface PEMouseInputListener
mouseMoved
in class MouseTool
Submit a bug : syd@jpicedt.org