| |
|
| java.lang.Object com.jgraph.editor.JGraphEditorKit
JGraphEditorKit | public class JGraphEditorKit (Code) | | Holds references to actions and mouse tools and updates their states.
|
Field Summary | |
protected Map | actionstools Holds the (name, action) and (name, tool) pairs respectively. | protected List | bundles Holds all action bundles. |
actionstools | protected Map actionstools(Code) | | Holds the (name, action) and (name, tool) pairs respectively.
|
bundles | protected List bundles(Code) | | Holds all action bundles.
|
addBundle | public void addBundle(JGraphEditorAction.Bundle bundle)(Code) | | Adds all actions in the specified bundle and stores a reference to the
bundle for later update of the actions.
Parameters: bundle - The bundle to add the actions from. |
getAction | public JGraphEditorAction getAction(String name)(Code) | | Returns the action for the specified name or null if no
such action exists.
Parameters: name - The name that identifies the action. Returns the action with the name name ornull . |
getActions | public Map getActions()(Code) | | Returns the actions. |
getBundles | public List getBundles()(Code) | | Returns the bundles. |
getTool | public JGraphEditorTool getTool(String name)(Code) | | Returns the tool for the specified name or null if no such
tool exists.
Parameters: name - The name that identifies the tool. Returns the tool with the name name ornull . |
getTools | public Map getTools()(Code) | | Returns the tools. |
setActions | public void setActions(Map actions)(Code) | | Parameters: actions - The actions to set. |
setBundles | public void setBundles(List bundles)(Code) | | Parameters: bundles - The bundles to set. |
setTools | public void setTools(Map tools)(Code) | | Parameters: tools - The tools to set. |
update | public void update()(Code) | | This is messaged from the application when the kit should update the
state of its actions and tools. This implementation updates all
registered bundles.
See Also: JGraphEditorAction.Bundle.update |
|
|
|