com.frinika.sequencer.model
Class NotationEvent

java.lang.Object
  extended by com.frinika.sequencer.model.MultiEvent
      extended by com.frinika.sequencer.model.NotationEvent
All Implemented Interfaces:
Item, EditHistoryRecordable, Selectable, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable
Direct Known Subclasses:
ClefChange

public class NotationEvent
extends MultiEvent

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.frinika.sequencer.model.MultiEvent
startTick
 
Constructor Summary
NotationEvent(MidiPart part, long startTick)
           
 
Method Summary
 void commitAddImpl()
          Add the MidiEvents generated by this MultiEvent to the track
 void commitRemoveImpl()
          Remove the MidiEvents generated by this MultiEvent from the track
 long getEndTick()
          sub classes should override this.
 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.
 
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
 

Constructor Detail

NotationEvent

public NotationEvent(MidiPart part,
                     long startTick)
Method Detail

getEndTick

public long getEndTick()
Description copied from class: MultiEvent
sub classes should override this.

Specified by:
getEndTick in class MultiEvent
Returns:
Returns the endTick

commitRemoveImpl

public void commitRemoveImpl()
Description copied from class: MultiEvent
Remove the MidiEvents generated by this MultiEvent from the track


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.