ch.laoe.clip
Class AChannelPlotterSpectrogram

java.lang.Object
ch.laoe.clip.AObject
ch.laoe.clip.APlotter
ch.laoe.clip.AChannelPlotter
ch.laoe.clip.AChannelPlotterSpectrogram
- public class AChannelPlotterSpectrogram
- extends AChannelPlotter
This file is part of LAoE.
LAoE is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published
by the Free Software Foundation; either version 2 of the License,
or (at your option) any later version.
LAoE is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with LAoE; if not, write to the Free Software Foundation,
Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Class: AChannelPlotterSpectrogram
Autor: olivier gäumann, neuchâtel (switzerland)
JDK: 1.3
Desctription: channel view, x-axis = time, y-axis = frequency
color-darkness = magnitude, spectrogramm-view.
History:
Date: Description: Autor:
07.03.02 first draft oli4
| Methods inherited from class ch.laoe.clip.AChannelPlotter |
getChannelModel, getRectangle, getXLength, getXOffset, getYLength, getYOffset, graphToPercentY, graphToSampleX, graphToSampleY, isInsideChannel, paintFrame, paintMarker, paintMask, paintSelection, paintXSkala, paintYSkala, percentToGraphY, sampleToGraphX, sampleToGraphY, setDefaultName, setRectangle, setXRange, setYRange, translateXOffset, translateYOffset, zoomX, zoomY |
fftLength
private static int fftLength
HAMMING_WINDOW
public static final int HAMMING_WINDOW
- See Also:
- Constant Field Values
RECTANGULAR_WINDOW
public static final int RECTANGULAR_WINDOW
- See Also:
- Constant Field Values
BLACKMAN_WINDOW
public static final int BLACKMAN_WINDOW
- See Also:
- Constant Field Values
FLATTOP_WINDOW
public static final int FLATTOP_WINDOW
- See Also:
- Constant Field Values
windowType
private static int windowType
colorGradeLength
private static int colorGradeLength
colorGrade
private static java.awt.Color[] colorGrade
AChannelPlotterSpectrogram
public AChannelPlotterSpectrogram(AModel m,
AChannelPlotter p)
- constructor
getAutoscaleXOffset
public float getAutoscaleXOffset()
- Specified by:
getAutoscaleXOffset in class AChannelPlotter
getAutoscaleXLength
public float getAutoscaleXLength()
- Specified by:
getAutoscaleXLength in class AChannelPlotter
getAutoscaleYOffset
public float getAutoscaleYOffset(int xOffset,
int xLength)
- Specified by:
getAutoscaleYOffset in class AChannelPlotter
getAutoscaleYLength
public float getAutoscaleYLength(int xOffset,
int xLength)
- Specified by:
getAutoscaleYLength in class AChannelPlotter
getValidYOffset
protected float getValidYOffset()
- Specified by:
getValidYOffset in class AChannelPlotter
getValidYLength
protected float getValidYLength()
- Specified by:
getValidYLength in class AChannelPlotter
setFftLength
public static void setFftLength(int l)
getFftLength
public static int getFftLength()
setWindowType
public static void setWindowType(int w)
getWindowType
public static int getWindowType()
setColorGamma
public static void setColorGamma(float g)
- set the gamma (range 0..1, neutral at 0.5)
setColorTransferFunction
public static void setColorTransferFunction(float[] x,
float[] y)
- set the transferfunction-segments of value to darkness curve
getColorGrade
private java.awt.Color getColorGrade(float factor)
- factor range 0..1
paintSamples
public void paintSamples(java.awt.Graphics2D g2d,
java.awt.Color color)
- Description copied from class:
AChannelPlotter
- paint the sample-curve
- Specified by:
paintSamples in class AChannelPlotter