public class CreationTool extends Tool
| Modifier and Type | Class and Description |
|---|---|
static interface |
CreationTool.CreationToolAction |
| Constructor and Description |
|---|
CreationTool(JEditableVirtualBookComponent c,
UndoStack us,
ISnappingEnvironment se)
default creation tool
|
CreationTool(JEditableVirtualBookComponent c,
UndoStack us,
ISnappingEnvironment se,
CreationTool.CreationToolAction customCreationToolAction)
create a tool with custom creation action, this permit to do several things
with the created or modified hole
|
| Modifier and Type | Method and Description |
|---|---|
void |
activated()
Signal the tool is activated, if we have something to do before
|
void |
keyPressed(java.awt.event.KeyEvent e) |
void |
keyReleased(java.awt.event.KeyEvent e) |
void |
mouseDragged(java.awt.event.MouseEvent e)
mouse dragged event
|
void |
mouseMoved(java.awt.event.MouseEvent e)
Mouse moved event
|
void |
mousePressed(java.awt.event.MouseEvent e)
Mouse pressed event
|
void |
mouseReleased(java.awt.event.MouseEvent e)
Mouse Released event
|
void |
paintElements(java.awt.Graphics g)
Paint a feed back from tool
|
void |
unactivated()
signal the tool is beeing unactivated
|
keyTyped, mouseClicked, mouseEnter, mouseExited, mouseWheelpublic CreationTool(JEditableVirtualBookComponent c, UndoStack us, ISnappingEnvironment se) throws java.lang.Exception
c - us - se - java.lang.Exceptionpublic CreationTool(JEditableVirtualBookComponent c, UndoStack us, ISnappingEnvironment se, CreationTool.CreationToolAction customCreationToolAction) throws java.lang.Exception
c - us - se - customCreationToolAction - java.lang.Exceptionpublic void activated()
Toolpublic void unactivated()
Toolunactivated in class Toolpublic void mousePressed(java.awt.event.MouseEvent e)
ToolmousePressed in class Toolpublic void mouseMoved(java.awt.event.MouseEvent e)
ToolmouseMoved in class Toolpublic void mouseDragged(java.awt.event.MouseEvent e)
ToolmouseDragged in class Toolpublic void mouseReleased(java.awt.event.MouseEvent e)
ToolmouseReleased in class Toolpublic void keyPressed(java.awt.event.KeyEvent e)
keyPressed in interface java.awt.event.KeyListenerkeyPressed in class Toolpublic void keyReleased(java.awt.event.KeyEvent e)
keyReleased in interface java.awt.event.KeyListenerkeyReleased in class Toolpublic void paintElements(java.awt.Graphics g)
ToolpaintElements in class Toolg - the graphic context