|
||||||||||
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 microsMethod Detail |
---|
public void refreshEnvelope()
public java.io.File getAudioFile()
protected void moveItemsBy(long deltaTick)
moveItemsBy
in class Part
public void addToModel()
Selectable
addToModel
in interface Selectable
addToModel
in class Part
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
EditHistoryRecordable
clone
in interface EditHistoryRecordable
clone
in class Part
java.lang.CloneNotSupportedException
public void restoreFromClone(EditHistoryRecordable object)
EditHistoryRecordable
restoreFromClone
in interface EditHistoryRecordable
public void copyBy(double tick, Lane dst)
copyBy
in class Part
public Selectable deepCopy(Selectable parent)
Selectable
deepCopy
in interface Selectable
parent
- owner of the new object;
public void deepMove(long dTick)
Selectable
deepMove
in interface Selectable
public long getStartTick()
getStartTick
in class Part
public long getEndTick()
getEndTick
in class Part
public double getDurationInSecs()
getDurationInSecs
in class Part
public double getStartInSecs()
getStartInSecs
in class Part
public double getEndInSecs()
getEndInSecs
in class Part
public void commitEventsRemove()
Part
commitEventsRemove
in class Part
public void commitEventsAdd()
commitEventsAdd
in class Part
public void onLoad() throws java.io.FileNotFoundException
onLoad
in class Part
java.io.FileNotFoundException
public AudioReader createAudioReader() throws java.io.IOException
createAudioReader
in interface AudioReaderFactory
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 Part
public java.lang.String toString()
toString
in class java.lang.Object
public uk.org.toot.audio.core.AudioProcess getAudioProcess()
public void setStartTick(long tick)
public void setEndTick(long tick)
tick
- new end tick for display purpose onlypublic 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 Part
popup
- public void setStartInSecs(double start)
setStartInSecs
in class Part
public void setEndInSecs(double end)
setEndInSecs
in class Part
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |