pl.psnc.graph.action.factory
Class AbstractGraphAction
java.lang.Object
javax.swing.AbstractAction
pl.psnc.vlab.util.gui.action.AbstractActionDefault
pl.psnc.vlab.util.gui.action.LocalizedAbstractAction
pl.psnc.graph.action.factory.AbstractGraphAction
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action, pl.psnc.vlab.util.gui.action.ActionDecorator
- Direct Known Subclasses:
- CopyAction, DeleteAction, PasteAction, RedoAction, SaveAction, UndoAction, ZoomActualAction, ZoomInAction, ZoomOutAction
public abstract class AbstractGraphAction
- extends pl.psnc.vlab.util.gui.action.LocalizedAbstractAction
AbstractGraphAction
class - abstract, top level class for all graph
actions
- Author:
- Dominik Stoklosa (~osa~)
- See Also:
- Serialized Form
- Email address
- osa@man.poznan.pl
Fields inherited from class javax.swing.AbstractAction |
changeSupport, enabled |
Fields inherited from interface pl.psnc.vlab.util.gui.action.ActionDecorator |
DISABLED_ICON, PARENT_OBJECT |
Fields inherited from interface javax.swing.Action |
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON |
Constructor Summary |
AbstractGraphAction(java.lang.String nameKey,
java.lang.String iconPath,
java.lang.String description)
Define an Action Object with a specified action name, icon and short
description. |
Methods inherited from class pl.psnc.vlab.util.gui.action.LocalizedAbstractAction |
setAcceleratorKey, setDisabledActionIcon, setMnemonic, setShortDescription |
Methods inherited from class pl.psnc.vlab.util.gui.action.AbstractActionDefault |
actionPerformed, addSource, getDisabledActionIcon, getName, getShortDescription, getSources, setDisabledActionIcon, setIcon, setMnemonic, setName |
Methods inherited from class javax.swing.AbstractAction |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractGraphAction
public AbstractGraphAction(java.lang.String nameKey,
java.lang.String iconPath,
java.lang.String description)
- Define an Action Object with a specified action name, icon and short
description.
- Parameters:
nameKey
- name of the action. Key from the resource bundleiconPath
- the icon for the current actiondescription
- action short description
getCurrentGraph
public CustomGraph getCurrentGraph()
throws GraphException
- Return an instance of the current Scenario Graph for the current Graph
Editor.
- Returns:
- instance of the current Scenario Graph for the current Graph
- Throws:
GraphException
getBundle
public java.lang.String getBundle()
- Specified by:
getBundle
in class pl.psnc.vlab.util.gui.action.LocalizedAbstractAction
Copyright 2008 by VLAB Dominik Stoklosa