net.clackrouter.jgraph.pad
Class GPConfiguration
java.lang.Object
net.clackrouter.jgraph.pad.GPConfiguration
public class GPConfiguration
- extends java.lang.Object
Specifies a configuration for the GPGraphpad.
You can add values for the GPGraphpad so that
the graph pad uses your own configuration.
Currently you can only add a user defined
Action Map. For the GPGraphpad the specified
Action Map is the current Action Map and
the default Action Map is a parent from the specified
current Action Map. You can overlap the
default actions by using the same Action Name.
Example:
This example shows how to add a new user defined Action for
the file exit action key.
MyFileExitAction a = new MyFileExitAction();
ActionMap actionMap = new ActionMap();
actionMap.put( a.getValue(Action.NAME),a);
GPConfiguration config = new GPConfiguration();
config.setActionMap( actionMap);
GPGraphpad pad = new GPGraphpad(config);
Method Summary |
javax.swing.ActionMap |
getActionMap()
Returns the actionMap. |
void |
setActionMap(javax.swing.ActionMap actionMap)
Sets the actionMap. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GPConfiguration
public GPConfiguration()
getActionMap
public javax.swing.ActionMap getActionMap()
- Returns the actionMap.
- Returns:
- ActionMap
setActionMap
public void setActionMap(javax.swing.ActionMap actionMap)
- Sets the actionMap.
- Parameters:
actionMap
- The actionMap to set