|
JGraphpad Pro
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jgraph.editor.JGraphEditorKit
Holds references to actions and mouse tools and updates their states.
| Field Summary | |
protected Map |
actions
Holds the (name, action) and (name, tool) pairs respectively. |
protected List |
bundles
Holds all action bundles. |
protected Map |
tools
Holds the (name, action) and (name, tool) pairs respectively. |
| Constructor Summary | |
JGraphEditorKit()
|
|
| Method Summary | |
Object |
addAction(JGraphEditorAction action)
Adds the specified action to the kit. |
void |
addBundle(JGraphEditorAction.Bundle bundle)
Adds all actions in the specified bundle and stores a reference to the bundle for later update of the actions. |
Object |
addTool(JGraphEditorTool tool)
Adds the specified tool to the kit. |
JGraphEditorAction |
getAction(String name)
Returns the action for the specified name or null if no
such action exists. |
Map |
getActions()
|
List |
getBundles()
|
JGraphEditorTool |
getTool(String name)
Returns the tool for the specified name or null if no such
tool exists. |
Map |
getTools()
|
void |
setActions(Map actions)
|
void |
setBundles(List bundles)
|
void |
setTools(Map tools)
|
void |
update()
This is messaged from the application when the kit should update the state of its actions and tools. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected Map actions
protected Map tools
protected List bundles
| Constructor Detail |
public JGraphEditorKit()
| Method Detail |
public Object addAction(JGraphEditorAction action)
action - The action to add.
JGraphEditorAction.getName()public void addBundle(JGraphEditorAction.Bundle bundle)
bundle - The bundle to add the actions from.public JGraphEditorAction getAction(String name)
null if no
such action exists.
name - The name that identifies the action.
name or
null.public Object addTool(JGraphEditorTool tool)
tool - The tool to add.
JGraphEditorTool.getName()public JGraphEditorTool getTool(String name)
null if no such
tool exists.
name - The name that identifies the tool.
name or
null.public void update()
JGraphEditorAction.Bundle.update()public Map getActions()
public void setActions(Map actions)
actions - The actions to set.public List getBundles()
public void setBundles(List bundles)
bundles - The bundles to set.public Map getTools()
public void setTools(Map tools)
tools - The tools to set.
|
JGraphpad Pro
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||