|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.AbstractAction net.clackrouter.actions.AbstractActionDefault
public abstract class AbstractActionDefault
An abstract JGraphpad action. The base class for all JGraphpad actions.
Field Summary | |
---|---|
protected ClackFramework |
graphpad
A reference back to the graphpad. |
Fields inherited from class javax.swing.AbstractAction |
---|
changeSupport, enabled |
Fields inherited from interface net.clackrouter.jgraph.pad.resources.TranslatorConstants |
---|
PREFIX_COMPONENT, PREFIX_MESSAGE_ERROR, PREFIX_MESSAGE_INFORMATION, PREFIX_MESSAGE_WARING, SUFFIX_ACCELERATOR, SUFFIX_ACTION, SUFFIX_ICON, SUFFIX_IMAGE, SUFFIX_LABEL, SUFFIX_MENU, SUFFIX_MNEMONIC, SUFFIX_TEXT, SUFFIX_TITLE, SUFFIX_TOOL_TIP_TEXT |
Fields inherited from interface javax.swing.Action |
---|
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON |
Constructor Summary | |
---|---|
AbstractActionDefault()
Constructor for AbstractActionDefault. |
|
AbstractActionDefault(ClackFramework graphpad)
Constructor for AbstractActionDefault. |
|
AbstractActionDefault(ClackFramework graphpad,
java.lang.String name)
Constructor for AbstractActionDefault. |
|
AbstractActionDefault(ClackFramework graphpad,
java.lang.String name,
javax.swing.Icon icon)
Constructor for AbstractActionDefault. |
|
AbstractActionDefault(java.lang.String name)
Constructor for AbstractActionDefault. |
|
AbstractActionDefault(java.lang.String name,
javax.swing.Icon icon)
Constructor for AbstractActionDefault. |
Method Summary | |
---|---|
ClackDocument |
getCurrentDocument()
|
RouterGraph |
getCurrentGraph()
|
GraphLayoutCache |
getCurrentGraphLayoutCache()
|
ClackFramework |
getGraphpad()
Returns the graphpad. |
protected java.awt.Component |
getMenuComponent(java.lang.String actionCommand)
Returns a JMenuItem with a link to this action. |
java.awt.Component[] |
getMenuComponents()
Creates by default an arry with one entry. |
java.lang.String |
getName()
Returns the name of the action |
java.lang.String |
getPresentationText(java.lang.String actionCommand)
Should return presentation Text for the action command or null for the default |
protected java.awt.Component |
getToolComponent(java.lang.String actionCommand)
Returns a clean JButton which has a link to this action. |
java.awt.Component[] |
getToolComponents()
Returns by default a list with one JButton. |
void |
setGraphpad(ClackFramework graphpad)
Sets the graphpad. |
void |
setSelectionAttributes(java.util.Map map)
|
void |
update()
empty implementation for this typ of action |
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 |
Methods inherited from interface java.awt.event.ActionListener |
---|
actionPerformed |
Field Detail |
---|
protected ClackFramework graphpad
Constructor Detail |
---|
public AbstractActionDefault()
Action.NAME
public AbstractActionDefault(ClackFramework graphpad)
graphpad
- The reference to the graphpad for this actionAction.NAME
public AbstractActionDefault(java.lang.String name)
name
- Key for the name of this actionpublic AbstractActionDefault(ClackFramework graphpad, java.lang.String name)
graphpad
- The reference to the graphpad for this actionname
- Key for the name of this actionpublic AbstractActionDefault(ClackFramework graphpad, java.lang.String name, javax.swing.Icon icon)
graphpad
- The reference to the graphpad for this actionname
- Key for the name of the actionicon
- The icon for this actionpublic AbstractActionDefault(java.lang.String name, javax.swing.Icon icon)
name
- Key for the name of this actionicon
- The icon for this actionMethod Detail |
---|
public java.lang.String getName()
public RouterGraph getCurrentGraph()
public GraphLayoutCache getCurrentGraphLayoutCache()
public void setSelectionAttributes(java.util.Map map)
public ClackDocument getCurrentDocument()
public java.awt.Component[] getMenuComponents()
public java.awt.Component[] getToolComponents()
protected java.awt.Component getMenuComponent(java.lang.String actionCommand)
protected java.awt.Component getToolComponent(java.lang.String actionCommand)
public void update()
public java.lang.String getPresentationText(java.lang.String actionCommand)
public void setGraphpad(ClackFramework graphpad)
graphpad
- The graphpad to setpublic ClackFramework getGraphpad()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |