public class RemoveComponentAction extends FigureAction
FigureAction.SourceType
CANVAS_TYPE, CONTEXTMENU_TYPE, HOTKEY_TYPE, MENUBAR_TYPE, PASTE_OFFSET, TOOLBAR_TYPE
Constructor and Description |
---|
RemoveComponentAction(javax.swing.tree.TreePath path,
java.awt.Component parent)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
Invoked when an action occurs.
|
void |
setConfiguration(Configuration config)
set the config
|
void |
setPtolemyFrame(PtolemyFrame pFrame)
allows you to set the ptolemyFrame that should be used as the parent of
this action.
|
getFigure, getFrame, getSourceType, getTarget, getX, getY, offsetFigure
public RemoveComponentAction(javax.swing.tree.TreePath path, java.awt.Component parent)
path
- the TreePath where the actor is being removed.public void setConfiguration(Configuration config)
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
actionPerformed
in class FigureAction
e
- ActionEventpublic void setPtolemyFrame(PtolemyFrame pFrame)