|
|||||||||
| 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.ZoomedWaveForm
A ZoomedWaveForm is a WaeForm that displays the data of another WaveForm in a smaller width.
| Field Summary | |
|---|---|
protected double |
factor
The zoom factor. |
protected WaveForm |
source
The source WaveForm |
| Fields inherited from class com.groovemanager.sampled.waveform.AbstractWaveForm |
|---|
channels, displayWidth, intervallSize, nullWave, position, realLength |
| Constructor Summary | |
|---|---|
ZoomedWaveForm(WaveForm source,
int newWidth)
Create a new ZoomedWaveForm in the given width |
|
| 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 double factor
protected WaveForm source
| Constructor Detail |
|---|
public ZoomedWaveForm(WaveForm source,
int newWidth)
source - The source WaveFormnewWidth - The width of the new 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 | ||||||||