com.frinika.sequencer.model
Class ProgramChangeEvent

java.lang.Object
  extended by com.frinika.sequencer.model.MultiEvent
      extended by com.frinika.sequencer.model.ChannelEvent
          extended by com.frinika.sequencer.model.ProgramChangeEvent
All Implemented Interfaces:
Item, EditHistoryRecordable, Selectable, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable

public class ProgramChangeEvent
extends ChannelEvent

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.frinika.sequencer.model.MultiEvent
startTick
 
Constructor Summary
ProgramChangeEvent(MidiPart part, long startTick, int prog, int msb, int lsb)
           
 
Method Summary
 void commitAddImpl()
          Add the MidiEvents generated by this MultiEvent to the track
 long getEndTick()
          sub classes should override this.
 MyPatch getPatch()
           
 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 setProgram(int prog2, int msb2, int lsb2)
           
 
Methods inherited from class com.frinika.sequencer.model.ChannelEvent
getChannel, setChannel
 
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

ProgramChangeEvent

public ProgramChangeEvent(MidiPart part,
                          long startTick,
                          int prog,
                          int msb,
                          int lsb)
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

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.


setProgram

public void setProgram(int prog2,
                       int msb2,
                       int lsb2)

getPatch

public MyPatch getPatch()