|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--torero.gui.ConnectTool
The connect tool class is used to construct attibute assignments between attributes. This tool has no visual component, but it changes the cursor according to the tool's state. All public accessable functionality is contained in the processUI method.
GrammarNode
,
AttributeAssingnment
Constructor Summary | |
ConnectTool()
|
Method Summary | |
void |
activate()
Activates and resets this tool. |
void |
deactivate()
Deactivates (resets) this tool, resets the cursor to the state before activating the tool. |
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. |
boolean |
mkAttrib2Traversal(GrammarNode srcnode,
Attribute srcattrib,
GrammarNode destnode,
Attribute destattrib)
Connects an attribute and a traversal. |
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. |
void |
reset()
Resets the tool, setting the state to source-select and changing the cursor. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ConnectTool()
Method Detail |
public void processUI(GrammarNode gn, MouseEvent me, Attribute att)
processUI
in interface ToreroTool
gn
- affected grammarnode.me
- the mouseevent that occured.att
- the affected attribute.public boolean mkAttrib2Traversal(GrammarNode srcnode, Attribute srcattrib, GrammarNode destnode, Attribute destattrib)
public void activate()
activate
in interface ToreroTool
public void reset()
public void deactivate()
deactivate
in interface ToreroTool
public void pluggedIn(ToreroToolBox ttb)
pluggedIn
in interface ToreroTool
public void pluggedOut()
pluggedOut
in interface ToreroTool
public Icon getToolIcon()
getToolIcon
in interface ToreroTool
public String getShortDescription()
getShortDescription
in interface ToreroTool
public String getDescription()
getDescription
in interface ToreroTool
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |