|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.frinika.sequencer.model.Part
com.frinika.sequencer.model.AudioPart
public class AudioPart
| Nested Class Summary | |
|---|---|
class |
AudioPart.Envelope
|
| Nested classes/interfaces inherited from class com.frinika.sequencer.model.Part |
|---|
Part.PropertiesPanel |
| Field Summary |
|---|
| Fields inherited from class com.frinika.sequencer.model.Part |
|---|
lane, selected |
| Constructor Summary | |
|---|---|
AudioPart()
|
|
AudioPart(AudioLane lane)
|
|
AudioPart(Lane lane,
java.io.File clipFile,
double startTimeInMicros)
Creates a new AudioPart. |
|
| 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 |
commitEventsAdd()
|
void |
commitEventsRemove()
Called when part is removed from the model |
void |
copyBy(double tick,
Lane dst)
|
AudioReader |
createAudioReader()
A non realtime Reader for a raw view at the data. |
Selectable |
deepCopy(Selectable parent)
Complete copy of object. |
void |
deepMove(long dTick)
Move object and all children by tick |
void |
drawEnvelope(java.awt.Graphics2D g,
java.awt.Rectangle rect,
PartView view)
|
void |
drawThumbNail(java.awt.Graphics2D g,
java.awt.Rectangle rect,
PartView panel)
|
java.io.File |
getAudioFile()
|
uk.org.toot.audio.core.AudioProcess |
getAudioProcess()
|
double |
getDurationInSecs()
|
double |
getEndInSecs()
|
long |
getEndTick()
|
AudioPart.Envelope |
getEvelope()
|
int |
getHoverState(java.awt.Point p,
java.awt.Rectangle rect)
|
double |
getStartInSecs()
|
long |
getStartTick()
|
protected void |
initContextMenu(ProjectFrame frame,
javax.swing.JPopupMenu popup)
To be extended by subclasses. |
void |
moveContentsBy(double dTick,
Lane dstLane)
move the contents by tick into dstLane |
protected void |
moveItemsBy(long deltaTick)
|
void |
onLoad()
|
void |
refreshEnvelope()
|
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 |
setEndInSecs(double end)
|
void |
setEndTick(long tick)
|
void |
setStartInSecs(double start)
|
void |
setStartTick(long tick)
|
java.lang.String |
toString()
|
| Methods inherited from class com.frinika.sequencer.model.Part |
|---|
addPluginRightButtonMenu, createPropertiesDialog, createPropertiesPanel, displayStructure, getColor, getDuration, getDurationInTicks, getEditParent, getEnd, getEventBounds, getLane, getMultiPart, getPartResourceId, getRootPart, getStart, getTransparentColor, isAttached, isSelected, leftTickForMove, moveBy, removeFromModel, rightTickForMove, setChanged, setColor, setEditParent, setEndTick, setMultiPart, setPartResourceId, setRootPart, setSelected, setStartTick, showContextMenu, showPropertiesDialog, showRightButtonMenu |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AudioPart(AudioLane lane)
public AudioPart()
public AudioPart(Lane lane,
java.io.File clipFile,
double startTimeInMicros)
lane - add part to this lane. Can be null for a detached part.clipFile - .wav file of audiostartTimeInMicros - postition first sample in micros| Method Detail |
|---|
public void refreshEnvelope()
public java.io.File getAudioFile()
protected void moveItemsBy(long deltaTick)
moveItemsBy in class Partpublic void addToModel()
Selectable
addToModel in interface SelectableaddToModel in class Part
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
EditHistoryRecordable
clone in interface EditHistoryRecordableclone in class Partjava.lang.CloneNotSupportedExceptionpublic void restoreFromClone(EditHistoryRecordable object)
EditHistoryRecordable
public void copyBy(double tick,
Lane dst)
copyBy in class Partpublic Selectable deepCopy(Selectable parent)
Selectable
parent - owner of the new object;
public void deepMove(long dTick)
Selectable
public long getStartTick()
getStartTick in class Partpublic long getEndTick()
getEndTick in class Partpublic double getDurationInSecs()
getDurationInSecs in class Partpublic double getStartInSecs()
getStartInSecs in class Partpublic double getEndInSecs()
getEndInSecs in class Partpublic void commitEventsRemove()
Part
commitEventsRemove in class Partpublic void commitEventsAdd()
commitEventsAdd in class Part
public void onLoad()
throws java.io.FileNotFoundException
onLoad in class Partjava.io.FileNotFoundException
public AudioReader createAudioReader()
throws java.io.IOException
java.io.IOException
public void drawThumbNail(java.awt.Graphics2D g,
java.awt.Rectangle rect,
PartView panel)
drawThumbNail in class Part
public void moveContentsBy(double dTick,
Lane dstLane)
Part
moveContentsBy in class Partpublic java.lang.String toString()
toString in class java.lang.Objectpublic uk.org.toot.audio.core.AudioProcess getAudioProcess()
public void setStartTick(long tick)
public void setEndTick(long tick)
tick - new end tick for display purpose only
public void drawEnvelope(java.awt.Graphics2D g,
java.awt.Rectangle rect,
PartView view)
public int getHoverState(java.awt.Point p,
java.awt.Rectangle rect)
public AudioPart.Envelope getEvelope()
protected void initContextMenu(ProjectFrame frame,
javax.swing.JPopupMenu popup)
initContextMenu in class Partpopup - public void setStartInSecs(double start)
setStartInSecs in class Partpublic void setEndInSecs(double end)
setEndInSecs in class Part
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||