|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--torero.gui.ToreroToolBox
The container used for ToreroTools. It generates a graphical representation of the tools - called the Torero Toolbar. Note that this is a singleton class.
ToreroTool
Method Summary | |
void |
addTool(ToreroTool tool)
Adds a tool to the toolbox. |
Component |
getParentComponent()
Get the parent component of the toolbox. |
JLabel |
getStatusLabel()
Get an emtpy statuslabel with black LineBorder and Black Foreground. |
JPanel |
getToolBarPanel()
Get a panel representing the toolbar. |
JMenu |
getToolMenu()
Get menu entries for all (plugged in) tools. |
static ToreroToolBox |
getUnique()
Get the singleton toolbox. |
void |
printError(String msg,
long msec)
Prints an errormessage (color red) to the status line. |
void |
printStatus(String msg,
long msec)
Prints a message to the status line. |
void |
processUI(GrammarNode gn,
MouseEvent me,
Attribute att)
Calls processUI on the active tool and forwards all the parameters unchanged. |
void |
setBackActiveTool()
Calls the activate method of the active tool. |
void |
setParentComponent(Component parent)
Sets the parent component of the toolbox. |
void |
setTreeModel(DefaultTreeModel dtm,
GrammarNode gn)
Sets the treemodel that will informed whenn changes occur. |
void |
updateTreeModel()
Causes the TreeModel to update its entries and to repaint (if necessary). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static ToreroToolBox getUnique()
public void setParentComponent(Component parent)
parent.
- public void processUI(GrammarNode gn, MouseEvent me, Attribute att)
gn
- affected grammarnode.me
- the mouseevent that occured.att
- the affected attribute.public void addTool(ToreroTool tool)
tool
- the tool to add.public Component getParentComponent()
public JPanel getToolBarPanel()
public JMenu getToolMenu()
public JLabel getStatusLabel()
public void printStatus(String msg, long msec)
msg
- the message to printmsec
- time in milliseconds for displaying this messagepublic void printError(String msg, long msec)
msg
- the message to printmsec
- time in milliseconds for displaying this messagepublic void setBackActiveTool()
public void updateTreeModel()
public void setTreeModel(DefaultTreeModel dtm, GrammarNode gn)
dtm
- the treemodelgn
- the root node
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |