protected class DrawToolFactory.TextDrawTool extends MouseTool
lastMouseEvent, mouseOutside
Constructor and Description |
---|
TextDrawTool(PicText prototype) |
Modifier and Type | Method and Description |
---|---|
void |
flush()
called when this tool is being replaced by another mouse-tool in the hosting
editor kit ; this is mainly for mousetools using more than one sequence, for it
gives them a chance to clean themselves up for the next time
|
void |
init()
called when this tool is being activated in the hosting editor kit
|
void |
mouseDragged(PEMouseEvent e)
do nothing
|
void |
mouseMoved(PEMouseEvent e)
set cursor for canvas, then call mouseDragged
|
void |
mousePressed(PEMouseEvent e)
A popup-trigger mouse event (e.g.
|
getLastMouseEvent, keyPressed, keyReleased, mouseClicked, mouseEntered, mouseExited, mouseReleased, paint, processKeyEvent
public TextDrawTool(PicText prototype)
prototype
- the Element that will serve as the prototype (getting cloned, then added to the drawing).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 mouseMoved(PEMouseEvent e)
mouseMoved
in interface PEMouseInputListener
mouseMoved
in class MouseTool
public void init()
Submit a bug : syd@jpicedt.org