public class ProvenanceConfigureAction extends FigureAction implements ProvenanceEnabledListener
FigureAction.SourceType| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
OFF_ICON_STR
Icon when top-level recorder is not present.
|
static java.lang.String |
ON_ICON_STR
Icon when top-level recorder is present.
|
static java.lang.String |
OVER_ICON_STR
Icon when cursor over button.
|
CANVAS_TYPE, CONTEXTMENU_TYPE, HOTKEY_TYPE, MENUBAR_TYPE, PASTE_OFFSET, TOOLBAR_TYPE| Constructor and Description |
|---|
ProvenanceConfigureAction(KeplerGraphFrame owner) |
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent event)
Determine the target Ptolemy II object, the originating frame,
and the X, Y position of the action, if possible.
|
void |
setButton(javax.swing.JButton button)
Set the button.
|
void |
toggle(boolean enabled)
This method is called when provenance is enabled or disabled.
|
getFigure, getFrame, getSourceType, getTarget, getX, getY, offsetFigurepublic static final java.lang.String ON_ICON_STR
public static final java.lang.String OFF_ICON_STR
public static final java.lang.String OVER_ICON_STR
public ProvenanceConfigureAction(KeplerGraphFrame owner)
public void actionPerformed(java.awt.event.ActionEvent event)
FigureActionactionPerformed in interface java.awt.event.ActionListeneractionPerformed in class FigureActionevent - The event.public void toggle(boolean enabled)
toggle in interface ProvenanceEnabledListenerenabled - True if provenance is enabled.public void setButton(javax.swing.JButton button)