|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.AbstractAction
org.jgraph.pad.actions.AbstractActionDefault
An abstract JGraphpad action. The base class for all JGraphpad actions.
Field Summary | |
protected GPGraphpad |
graphpad
A reference back to the graphpad. |
Fields inherited from class javax.swing.AbstractAction |
changeSupport, enabled |
Fields inherited from interface org.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(GPGraphpad graphpad)
Constructor for AbstractActionDefault. |
|
AbstractActionDefault(GPGraphpad graphpad,
java.lang.String name)
Constructor for AbstractActionDefault. |
|
AbstractActionDefault(GPGraphpad 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 | |
GPDocument |
getCurrentDocument()
|
GPGraph |
getCurrentGraph()
|
GraphLayoutCache |
getCurrentGraphLayoutCache()
|
GPGraphpad |
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 |
setFontNameForSelection(java.lang.String fontName)
|
void |
setFontSizeForSelection(float size)
|
void |
setFontStyleForSelection(int style)
|
void |
setGraphpad(GPGraphpad 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 GPGraphpad graphpad
Constructor Detail |
public AbstractActionDefault()
Action.NAME
public AbstractActionDefault(GPGraphpad 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(GPGraphpad graphpad, java.lang.String name)
graphpad
- The reference to the graphpad for this actionname
- Key for the name of this actionpublic AbstractActionDefault(GPGraphpad 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 GPGraph getCurrentGraph()
public GraphLayoutCache getCurrentGraphLayoutCache()
public void setSelectionAttributes(java.util.Map map)
public void setFontSizeForSelection(float size)
public void setFontStyleForSelection(int style)
public void setFontNameForSelection(java.lang.String fontName)
public GPDocument 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(GPGraphpad graphpad)
graphpad
- The graphpad to setpublic GPGraphpad getGraphpad()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |