|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.event.KeyAdapter jpicedt.graphic.toolkit.MouseTool jpicedt.graphic.toolkit.DrawToolFactory.TextDrawTool
protected class DrawToolFactory.TextDrawTool
A tool used to place PicText's ; it opens a dialog box for editing text content.
author: Sylvain Reynal
Nested Class Summary |
---|
Nested classes/interfaces inherited from class jpicedt.graphic.toolkit.MouseTool |
---|
MouseTool.MouseToolType |
Field Summary |
---|
Fields inherited from class jpicedt.graphic.toolkit.MouseTool |
---|
lastMouseEvent, mouseOutside |
Constructor Summary | |
---|---|
DrawToolFactory.TextDrawTool(PicText prototype)
|
Method Summary | |
---|---|
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 |
keyPressed(KeyEvent e)
Triggers a fake "mouseMoved" event when a key is pressed. |
void |
keyReleased(KeyEvent e)
Triggers a fake "mouseMoved" event when a key is released. |
void |
keyTyped(KeyEvent e)
|
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. a right click on Unix/Windows): switches back to SELECT_MODE if the task-iterator is completed or cancels the current task if the task-iterator is underway. |
Methods inherited from class jpicedt.graphic.toolkit.MouseTool |
---|
getLastMouseEvent, mouseClicked, mouseEntered, mouseExited, mouseReleased, paint, processKeyEvent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DrawToolFactory.TextDrawTool(PicText prototype)
prototype
- the Element that will serve as the prototype
(getting cloned, then added to the drawing).Method Detail |
---|
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()
init
in class MouseTool
public void flush()
flush
in class MouseTool
public void keyPressed(KeyEvent e)
MouseTool
MouseTool.processKeyEvent(java.awt.event.KeyEvent, boolean)
.
keyPressed
in interface KeyListener
keyPressed
in class MouseTool
public void keyReleased(KeyEvent e)
MouseTool
MouseTool.processKeyEvent(java.awt.event.KeyEvent, boolean)
.
keyReleased
in interface KeyListener
keyReleased
in class MouseTool
public void keyTyped(KeyEvent e)
keyTyped
in interface KeyListener
keyTyped
in class KeyAdapter
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |