com.frinika.sequencer.model
Class MetaEvent
java.lang.Object
com.frinika.sequencer.model.MultiEvent
com.frinika.sequencer.model.MetaEvent
- All Implemented Interfaces:
- Item, EditHistoryRecordable, Selectable, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable
public class MetaEvent
- extends MultiEvent
- Author:
- Peter Johan Salomonsen
- See Also:
- Serialized Form
Method Summary |
void |
commitAddImpl()
Add the MidiEvents generated by this MultiEvent to the track |
long |
getEndTick()
sub classes should override this. |
javax.sound.midi.MetaMessage |
getMessage()
|
void |
restoreFromClone(EditHistoryRecordable object)
On removal the EditHistoryContainer will attempt to clone the object - and if restored later
it will use the restoreFromClone method to restore the cloned data on the original instance. |
void |
setMessage(int type,
byte[] data)
|
void |
setMessage(javax.sound.midi.MetaMessage message)
|
Methods inherited from class com.frinika.sequencer.model.MultiEvent |
addToModel, clone, commitAdd, commitChanges, compareTo, deepCopy, deepMove, detachedCopy, getMidiPart, getMultiEventEndTickComparable, getPart, getStartTick, getTrack, getTrackerColumn, getValue, getValueUI, isSelected, isZombie, leftTickForMove, removeFromModel, rightTickForMove, setSelected, setStartTick, setTrackerColumn, setValue, setValueUI |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MetaEvent
public MetaEvent(MidiPart part,
long startTick)
commitAddImpl
public void commitAddImpl()
- Description copied from class:
MultiEvent
- Add the MidiEvents generated by this MultiEvent to the track
restoreFromClone
public void restoreFromClone(EditHistoryRecordable object)
- Description copied from interface:
EditHistoryRecordable
- On removal the EditHistoryContainer will attempt to clone the object - and if restored later
it will use the restoreFromClone method to restore the cloned data on the original instance.
getEndTick
public long getEndTick()
- Description copied from class:
MultiEvent
- sub classes should override this.
- Specified by:
getEndTick
in class MultiEvent
- Returns:
- Returns the endTick
setMessage
public void setMessage(int type,
byte[] data)
setMessage
public void setMessage(javax.sound.midi.MetaMessage message)
getMessage
public javax.sound.midi.MetaMessage getMessage()
throws javax.sound.midi.InvalidMidiDataException
- Throws:
javax.sound.midi.InvalidMidiDataException