public class FrameRateChangeAction
extends org.eclipse.jface.action.Action
This class is an Action that appears in a play button drop-down menu with either a set frame rate or access to a custom frame rate dialog.
Constructor and Description |
---|
FrameRateChangeAction(int rate,
PlayAction parent,
java.lang.String text)
The constructor for input set frame rates.
|
FrameRateChangeAction(PlayAction parent,
java.lang.String text)
The constructor for custom frame rate menu items.
|
Modifier and Type | Method and Description |
---|---|
void |
run()
The function called whenever the item is selected from the drop-down.
|
convertAccelerator, convertAccelerator, findKeyCode, findKeyString, findModifier, findModifierString, getAccelerator, getActionDefinitionId, getDescription, getDisabledImageDescriptor, getHelpListener, getHoverImageDescriptor, getId, getImageDescriptor, getMenuCreator, getStyle, getText, getToolTipText, isChecked, isEnabled, isHandled, notifyResult, removeAcceleratorText, removeMnemonics, runWithEvent, setAccelerator, setActionDefinitionId, setChecked, setDescription, setDisabledImageDescriptor, setEnabled, setHelpListener, setHoverImageDescriptor, setId, setImageDescriptor, setMenuCreator, setText, setToolTipText
addPropertyChangeListener, removePropertyChangeListener
public FrameRateChangeAction(PlayAction parent, java.lang.String text)
The constructor for custom frame rate menu items.
parent
- The play button to whom this object belongs.
text
- The text to appear in thd drop-down.
public FrameRateChangeAction(int rate, PlayAction parent, java.lang.String text)
The constructor for input set frame rates.
rate
- The integer frame rate value to set for this action.
parent
- The play button to whom this object belongs.
text
- The text to appear in the drop-down.