|
||||||||||
| 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.Comparablepublic void setSelected(boolean yes)
Selectable
setSelected in interface ItemsetSelected in interface Selectablepublic boolean isSelected()
isSelected in interface Itempublic MultiEvent detachedCopy()
public Selectable deepCopy(Selectable parent)
Selectable
deepCopy in interface Selectableparent - 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 Selectablepublic void removeFromModel()
Selectable
removeFromModel in interface Selectablepublic void addToModel()
Selectable
addToModel in interface Selectablepublic long leftTickForMove()
Selectable
leftTickForMove in interface Selectablepublic long rightTickForMove()
rightTickForMove in interface Selectablepublic 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 EditHistoryRecordableclone in class java.lang.Objectjava.lang.CloneNotSupportedExceptionpublic boolean isZombie()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||