|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--torero.gui.AttributeTool
The attribute tool class is used to assign attributes to symbols. The visual component is included in the class. On an appropriate call to the processUI() method it opens the tool's window. All public accessable functionality is contained in the processUI method.
GrammarNode
Constructor Summary | |
AttributeTool(SymbolModel symbols,
AttributeModel attribs)
Creates a new AttributeTool. |
Method Summary | |
void |
activate()
Activates (resets) this tool. |
void |
deactivate()
Deactivates (resets) this tool. |
String |
getDescription()
Get a textual description of the tool (e.g. one sentence). |
String |
getShortDescription()
Get a short textual description of the tool. |
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 AttributeTool(SymbolModel symbols, AttributeModel attribs)
symbols
- the underlying symbolmodelattribs
- the underlying attributemodelMethod 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.GrammarNode
public void activate()
activate
in interface ToreroTool
public void deactivate()
deactivate
in interface ToreroTool
public void pluggedIn(ToreroToolBox ttb)
pluggedIn
in interface ToreroTool
ttb
- a reference to the unique torerotoolbox, for callback fuctions.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 |