|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.frinika.sequencer.model.MultiEvent
public abstract class MultiEvent
MultiEvent is a representation of one or more MidiEvents that form a note pair, a control change/pitch bend envelope or a single MidiEvent. Note that the clone() method must be implemented for all non-abstract extensions of the MultiEvent class. This is for the edithistory to work properly.
Field Summary | |
---|---|
protected long |
startTick
|
Constructor Summary | |
---|---|
|
MultiEvent(FrinikaTrackWrapper track,
long startTick)
Deprecated. |
protected |
MultiEvent(long startTick)
|
|
MultiEvent(MidiPart part,
long startTick)
|
Method Summary | |
---|---|
void |
addToModel()
Add to the model making sure the history is informed |
java.lang.Object |
clone()
If restoration from a clone is needed - this method should return a clone otherwise throw the CloneNotSupportedException |
void |
commitAdd()
Add the MidiEvents generated by this MultiEvent to the track and fire CommitEvent to CommitListener |
void |
commitChanges()
Deprecated. Do not use this - it was previously used by processors - but they're broken - the correct procedure is: remove from part - change - add to part again |
int |
compareTo(java.lang.Object obj)
|
Selectable |
deepCopy(Selectable parent)
Complete copy of object. |
void |
deepMove(long tick)
Move object and all children by tick |
MultiEvent |
detachedCopy()
Create a parentless copy to allow serialiation without explosions |
abstract long |
getEndTick()
sub classes should override this. |
MidiPart |
getMidiPart()
|
MultiEventEndTickComparable |
getMultiEventEndTickComparable()
Get a comparable wrapper for sorting on end tick |
MidiPart |
getPart()
|
long |
getStartTick()
|
FrinikaTrackWrapper |
getTrack()
Deprecated. |
java.lang.Integer |
getTrackerColumn()
The prefered column to use in a tracker view. |
int |
getValue()
|
int |
getValueUI()
|
boolean |
isSelected()
|
boolean |
isZombie()
|
long |
leftTickForMove()
return the left tick mark for move operations without quantize a move to destTick should move item by destTick - leftTickForMove(); |
void |
removeFromModel()
Remove from model making sure the history is informed |
long |
rightTickForMove()
PLease override if need be |
void |
setSelected(boolean yes)
set selected flag (for GUI use only) |
void |
setStartTick(long startTick)
|
void |
setTrackerColumn(int column)
|
void |
setValue(int val)
|
void |
setValueUI(int val)
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.frinika.sequencer.model.EditHistoryRecordable |
---|
restoreFromClone |
Field Detail |
---|
protected long startTick
Constructor Detail |
---|
protected MultiEvent(long startTick)
public MultiEvent(FrinikaTrackWrapper track, long startTick)
track
- startTick
- public MultiEvent(MidiPart part, long startTick)
Method Detail |
---|
public long getStartTick()
public abstract long getEndTick()
public void setStartTick(long startTick)
startTick
- The startTick to set.public final FrinikaTrackWrapper getTrack()
public MidiPart getMidiPart()
public void commitAdd()
public void commitChanges()
public int compareTo(java.lang.Object obj)
compareTo
in interface java.lang.Comparable
public void setSelected(boolean yes)
Selectable
setSelected
in interface Item
setSelected
in interface Selectable
public boolean isSelected()
isSelected
in interface Item
public MultiEvent detachedCopy()
public Selectable deepCopy(Selectable parent)
Selectable
deepCopy
in interface Selectable
parent
- owner of the new object;
public MidiPart getPart()
public int getValue()
public void setValue(int val)
public int getValueUI()
public void setValueUI(int val)
public void deepMove(long tick)
Selectable
deepMove
in interface Selectable
public void removeFromModel()
Selectable
removeFromModel
in interface Selectable
public void addToModel()
Selectable
addToModel
in interface Selectable
public long leftTickForMove()
Selectable
leftTickForMove
in interface Selectable
public long rightTickForMove()
rightTickForMove
in interface Selectable
public java.lang.Integer getTrackerColumn()
public void setTrackerColumn(int column)
public MultiEventEndTickComparable getMultiEventEndTickComparable()
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
EditHistoryRecordable
clone
in interface EditHistoryRecordable
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public boolean isZombie()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |