public class RotateTool extends MouseTool
Sequence of mouse operations :
lastMouseEvent, mouseOutside| Constructor and Description |
|---|
RotateTool(EditorKit kit,
Element target) |
| Modifier and Type | Method and Description |
|---|---|
void |
flush()
Called when this tool is being replaced by another tool in the hosting kit
|
void |
mouseDragged(PEMouseEvent e)
this default implementation simply stores the given mouse-event in lastMouseEvent field
|
void |
mouseMoved(PEMouseEvent e)
this default implementation simply stores the given mouse-event in lastMouseEvent field
|
void |
mousePressed(PEMouseEvent e)
set the source rect, then the destination rect
|
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.
|
getLastMouseEvent, init, keyPressed, keyReleased, mouseClicked, mouseEntered, mouseExited, processKeyEventpublic void mousePressed(PEMouseEvent e)
mousePressed in interface PEMouseInputListenermousePressed in class MouseToolpublic void mouseDragged(PEMouseEvent e)
MouseToolmouseDragged in interface PEMouseInputListenermouseDragged in class MouseToolpublic void mouseReleased(PEMouseEvent e)
MouseToolmouseReleased in interface PEMouseInputListenermouseReleased in class MouseToolpublic void mouseMoved(PEMouseEvent e)
MouseToolmouseMoved in interface PEMouseInputListenermouseMoved in class MouseToolpublic void flush()
Submit a bug : syd@jpicedt.org