com.frinika.sequencer.gui.menu.midi
Class AbstractMidiAction
java.lang.Object
javax.swing.AbstractAction
com.frinika.gui.AbstractDialogAction
com.frinika.sequencer.gui.menu.midi.AbstractMidiAction
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action
- Direct Known Subclasses:
- MidiDurationAction, MidiInsertControllersAction, MidiQuantizeAction, MidiReverseAction, MidiShiftAction, MidiTimeStretchAction, MidiTransposeAction, MidiVelocityAction
public abstract class AbstractMidiAction
- extends AbstractDialogAction
Abstract superclass for menu-actions that modify currently selected MIDI
data.
- Author:
- Jens Gulden
- See Also:
- Serialized Form
Fields inherited from class javax.swing.AbstractAction |
changeSupport, enabled |
Fields inherited from interface javax.swing.Action |
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON |
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 |
events
protected java.util.Collection<MultiEvent> events
startTick
protected long startTick
lastTick
protected long lastTick
endTick
protected long endTick
AbstractMidiAction
public AbstractMidiAction(ProjectFrame frame,
java.lang.String actionId)
performPrepare
public void performPrepare()
- Overrides:
performPrepare
in class AbstractDialogAction
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Specified by:
actionPerformed
in interface java.awt.event.ActionListener
- Overrides:
actionPerformed
in class AbstractDialogAction
performAction
protected void performAction()
- Specified by:
performAction
in class AbstractDialogAction
modifyEvents
public void modifyEvents(java.util.Collection<MultiEvent> events)
- May be overwritten by subclasses for more complex modifying operations,
otherwise by default this calls midifyNoteEvents with all selected NoteEvents.
modifyNoteEvents
public void modifyNoteEvents(java.util.Collection<NoteEvent> events)
modifyNoteEvent
public abstract void modifyNoteEvent(NoteEvent note)
getMidiPart
public MidiPart getMidiPart()
getMidiLane
public MidiLane getMidiLane()