|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.groovemanager.sampled.waveform.AbstractWaveForm
com.groovemanager.sampled.waveform.FillUpWaveForm
This WaveForm implementation is used to add a given amount of silence to a given WaveForm
| Field Summary | |
|---|---|
protected int |
offset
The lenght of the silence to add before the source WaveForm |
protected WaveForm |
source
The source WaveForm |
| Fields inherited from class com.groovemanager.sampled.waveform.AbstractWaveForm |
|---|
channels, displayWidth, intervallSize, nullWave, position, realLength |
| Constructor Summary | |
|---|---|
FillUpWaveForm(WaveForm source,
int offset,
int width)
Create a new FillUpWaveForm |
|
| Method Summary | |
|---|---|
boolean |
canProvide(int begin,
int length,
int width)
Tells if this WaveForm sees itself capable of providing a SubWaveForm with the given parameters |
protected java.lang.String |
getAdditionalToString()
Get an additional String describing this WaveForm. |
byte |
getMax(int channel)
Get the maximum value at the current read position in the given channel |
byte |
getMin(int channel)
Get the minimum value at the current read position in the given channel |
int |
getRealLength()
Get the Length of the original sample which this WaveForm represents |
WaveForm |
subWaveForm(int begin,
int length,
int width)
Get a WaveForm Object that represents the part of this WaveForm specified by begin and
length and displays this part in the
specified width |
| Methods inherited from class com.groovemanager.sampled.waveform.AbstractWaveForm |
|---|
getChannels, getData, getDisplayableLength, getIntervallSize, getPosition, getRealPosition, getZoomFactor, next, rewind, setPosition, setRealPosition, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected int offset
protected WaveForm source
| Constructor Detail |
|---|
public FillUpWaveForm(WaveForm source,
int offset,
int width)
source - The WaveForm to surround with silenceoffset - The length of the silence before the source WaveFormwidth - The total length of the resulting WaveForm, that is
offset + source.getDisplayableLength() + [length of silence
after the source WaveForm]| Method Detail |
|---|
public boolean canProvide(int begin,
int length,
int width)
WaveForm
canProvide in interface WaveFormcanProvide in class AbstractWaveFormbegin - The offset to the beginning of this
WaveForm. May also be negative.length - The length in steps of this WaveForm
that should be represented by the returned WaveForm.width - The new width in which the part should
be displayed.
WaveForm.canProvide(int, int, int)protected java.lang.String getAdditionalToString()
AbstractWaveFormtoString()
getAdditionalToString in class AbstractWaveFormpublic byte getMax(int channel)
WaveForm
channel - the zero-based index of the channel
public byte getMin(int channel)
WaveForm
channel - the zero-based index of the channel
public int getRealLength()
WaveForm
getRealLength in interface WaveFormgetRealLength in class AbstractWaveFormWaveForm.getRealLength()
public WaveForm subWaveForm(int begin,
int length,
int width)
WaveFormbegin and
length and displays this part in the
specified width
subWaveForm in interface WaveFormsubWaveForm in class AbstractWaveFormbegin - The offset to the beginning of this
WaveForm. May also be negative.length - The length in steps of this WaveForm
that should be represented by the returned WaveForm.width - The new width in which the part should
be displayed.
WaveForm.subWaveForm(int, int, int)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||