public class JCPAction2D extends AbstractAction
Modifier and Type | Field and Description |
---|---|
static String |
actionSuffix
Description of the Field
|
static String |
imageSuffix
Description of the Field
|
static String |
labelSuffix
Description of the Field
|
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 and Description |
---|
JCPAction2D()
Constructor for the JCPAction object
|
JCPAction2D(JFrame jcpPanel)
Constructor for the JCPAction object
|
JCPAction2D(JFrame jcpPanel,
boolean isPopupAction)
Constructor for the JCPAction object
|
JCPAction2D(JFrame jcpPanel,
String type,
boolean isPopupAction)
Constructor for the JCPAction object
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e)
Dummy method.
|
JCPAction2D |
getAction(JFrame jcpPanel,
String actionname)
Gets the action attribute of the JCPAction class
|
JCPAction2D |
getAction(JFrame jcpPanel,
String actionname,
boolean isPopupAction)
Gets the action attribute of the JCPAction class
|
IChemObject |
getSource(ActionEvent event)
Gets the source attribute of the JCPAction object
|
boolean |
isEnabled()
Is this action runnable?
|
boolean |
isPopupAction()
Gets the popupAction attribute of the JCPAction object
|
void |
setIsPopupAction(boolean isPopupAction)
Sets the isPopupAction attribute of the JCPAction object
|
void |
setJChemPaintPanel(JFrame jcpPanel)
Sets the jChemPaintPanel attribute of the JCPAction object
|
void |
setType(String type)
Sets the type attribute of the JCPAction object
|
addPropertyChangeListener, getKeys, getPropertyChangeListeners, getValue, putValue, removePropertyChangeListener, setEnabled
public static final String actionSuffix
public static final String imageSuffix
public static final String labelSuffix
public JCPAction2D(JFrame jcpPanel, String type, boolean isPopupAction)
jcpPanel
- Description of the Parametertype
- Description of the ParameterisPopupAction
- Description of the Parameterpublic JCPAction2D(JFrame jcpPanel, boolean isPopupAction)
jcpPanel
- Description of the ParameterisPopupAction
- Description of the Parameterpublic JCPAction2D(JFrame jcpPanel)
jcpPanel
- Description of the Parameterpublic JCPAction2D()
public void setType(String type)
type
- The new type valuepublic void setJChemPaintPanel(JFrame jcpPanel)
jcpPanel
- The new jChemPaintPanel valuepublic boolean isEnabled()
isEnabled
in interface Action
isEnabled
in class AbstractAction
public boolean isPopupAction()
public void setIsPopupAction(boolean isPopupAction)
isPopupAction
- The new isPopupAction valuepublic void actionPerformed(ActionEvent e)
e
- Description of the Parameterpublic IChemObject getSource(ActionEvent event)
event
- Description of the Parameterpublic JCPAction2D getAction(JFrame jcpPanel, String actionname, boolean isPopupAction)
jcpPanel
- Description of the Parameteractionname
- Description of the ParameterisPopupAction
- Description of the Parameterpublic JCPAction2D getAction(JFrame jcpPanel, String actionname)
jcpPanel
- Description of the Parameteractionname
- Description of the Parameter