|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--torero.gui.SwapTool
The swap tool class is used to swap to symbols in a grammar. It is only implemented for testing. It has no visual component, only the cursor is changed, when activating this tool. All public accessable functionality is contained in the processUI method.
Grammar| Constructor Summary | |
SwapTool()
|
|
| Method Summary | |
void |
activate()
Activates (resets) this tool, and changes the cursor. |
void |
deactivate()
Deactivates (resets) this tool, and restores the cursor. |
String |
getDescription()
Get a textual description of the tool (e.g. one sentence). |
String |
getShortDescription()
Get a short textual description of the tool (a few words). |
Icon |
getToolIcon()
Get the icon for this tool. |
void |
pluggedIn(ToreroToolBox ttb)
Called when the tool is plugged into the ToreroToolBox. |
void |
pluggedOut()
Called when the tool is removed from the ToreroToolBox. |
void |
processUI(GrammarNode gn,
MouseEvent me,
Attribute att)
Process the mouseevent me at node gn at attribute att. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SwapTool()
| Method Detail |
public void processUI(GrammarNode gn,
MouseEvent me,
Attribute att)
processUI in interface ToreroToolgn - affected grammarnode.me - the mouseevent that occured.att - the affected attribute.GrammarNodepublic void activate()
activate in interface ToreroToolpublic void deactivate()
deactivate in interface ToreroToolpublic void pluggedIn(ToreroToolBox ttb)
pluggedIn in interface ToreroToolpublic void pluggedOut()
pluggedOut in interface ToreroToolpublic Icon getToolIcon()
getToolIcon in interface ToreroToolpublic String getShortDescription()
getShortDescription in interface ToreroToolpublic String getDescription()
getDescription in interface ToreroTool
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||