jpicedt.graphic.toolkit
Class InConvexZoneTranslateTool
java.lang.Object
java.awt.event.KeyAdapter
jpicedt.graphic.toolkit.MouseTool
jpicedt.graphic.toolkit.ConvexZoneTool
jpicedt.graphic.toolkit.InConvexZoneTranslateTool
- All Implemented Interfaces:
- KeyListener, EventListener, PEMouseInputListener
public class InConvexZoneTranslateTool
- extends ConvexZoneTool
Method Summary |
void |
flush()
Appelé quand cet outil est remplacé par un autre outil dans le kit hôte. |
Cursor |
getCursor()
|
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)
this default implementation simply stores the given mouse-event in lastMouseEvent field |
void |
mouseReleased(PEMouseEvent e)
this default implementation simply stores the given mouse-event in lastMouseEvent field |
void |
paint(Graphics2D g,
Rectangle2D allocation,
double scale)
Allow the tool to paint shapes that are specific to this tool. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InConvexZoneTranslateTool
public InConvexZoneTranslateTool(EditorKit kit,
ConvexZoneGroup target)
getCursor
public Cursor getCursor()
mousePressed
public void mousePressed(PEMouseEvent e)
- Description copied from class:
MouseTool
- this default implementation simply stores the given mouse-event in
lastMouseEvent
field
- Specified by:
mousePressed
in interface PEMouseInputListener
- Overrides:
mousePressed
in class MouseTool
mouseMoved
public void mouseMoved(PEMouseEvent e)
- Description copied from class:
MouseTool
- this default implementation simply stores the given mouse-event in
lastMouseEvent
field
- Specified by:
mouseMoved
in interface PEMouseInputListener
- Overrides:
mouseMoved
in class MouseTool
mouseReleased
public void mouseReleased(PEMouseEvent e)
- Description copied from class:
MouseTool
- this default implementation simply stores the given mouse-event in
lastMouseEvent
field
- Specified by:
mouseReleased
in interface PEMouseInputListener
- Overrides:
mouseReleased
in class MouseTool
mouseDragged
public void mouseDragged(PEMouseEvent e)
- Description copied from class:
MouseTool
- this default implementation simply stores the given mouse-event in
lastMouseEvent
field
- Specified by:
mouseDragged
in interface PEMouseInputListener
- Overrides:
mouseDragged
in class MouseTool
flush
public void flush()
- Appelé quand cet outil est remplacé par un autre outil dans le kit hôte.
- Overrides:
flush
in class MouseTool
paint
public void paint(Graphics2D g,
Rectangle2D allocation,
double scale)
- Description copied from class:
MouseTool
- Allow the tool to paint shapes that are specific to this tool. This method
is called by the hosting EditorKit.
For instance, this method may paint selection areas, markers, …
Current implementation does nothing.
- Overrides:
paint
in class MouseTool
Submit a bug : syd@jpicedt.org