com.frinika.sequencer.model
Class PitchBendEvent

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

public class PitchBendEvent
extends ChannelEvent

Controller events represents a Pitch Bend

Author:
Peter Johan Salomonsen
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.frinika.sequencer.model.MultiEvent
startTick
 
Constructor Summary
PitchBendEvent(FrinikaTrackWrapper track, long startTick, int value)
           
PitchBendEvent(MidiPart multiEventGroup, long startTick, int value)
           
 
Method Summary
 void commitAddImpl()
          Add the MidiEvents generated by this MultiEvent to the track
 long getEndTick()
          sub classes should override this.
 int getValue()
           
 int getValueUI()
           
 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 setValue(int value)
           
 void setValueUI(int value)
           
 
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, isSelected, isZombie, leftTickForMove, removeFromModel, rightTickForMove, setSelected, setStartTick, setTrackerColumn
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PitchBendEvent

public PitchBendEvent(FrinikaTrackWrapper track,
                      long startTick,
                      int value)

PitchBendEvent

public PitchBendEvent(MidiPart multiEventGroup,
                      long startTick,
                      int value)
Method Detail

getValue

public int getValue()
Overrides:
getValue in class MultiEvent
Returns:
Returns the value.

setValue

public void setValue(int value)
Overrides:
setValue in class MultiEvent
Parameters:
value - The value to set.

getValueUI

public int getValueUI()
Overrides:
getValueUI in class MultiEvent
Returns:
Returns the value for UI.

setValueUI

public void setValueUI(int value)
Overrides:
setValueUI in class MultiEvent
Parameters:
value - The value to set UI version

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.