Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

ch.laoe.clip
Class AChannelPlotterSpectrogram  view AChannelPlotterSpectrogram download AChannelPlotterSpectrogram.java

java.lang.Object
  extended bych.laoe.clip.AObject
      extended bych.laoe.clip.APlotter
          extended bych.laoe.clip.AChannelPlotter
              extended bych.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


Field Summary
static int BLACKMAN_WINDOW
           
private static java.awt.Color[] colorGrade
           
private static int colorGradeLength
           
private static int fftLength
           
static int FLATTOP_WINDOW
           
static int HAMMING_WINDOW
           
static int RECTANGULAR_WINDOW
           
private static int windowType
           
 
Fields inherited from class ch.laoe.clip.AChannelPlotter
rectangle
 
Fields inherited from class ch.laoe.clip.APlotter
model
 
Fields inherited from class ch.laoe.clip.AObject
name
 
Constructor Summary
AChannelPlotterSpectrogram(AModel m, AChannelPlotter p)
          constructor
 
Method Summary
 float getAutoscaleXLength()
           
 float getAutoscaleXOffset()
           
 float getAutoscaleYLength(int xOffset, int xLength)
           
 float getAutoscaleYOffset(int xOffset, int xLength)
           
private  java.awt.Color getColorGrade(float factor)
          factor range 0..1
static int getFftLength()
           
protected  float getValidYLength()
           
protected  float getValidYOffset()
           
static int getWindowType()
           
 void paintSamples(java.awt.Graphics2D g2d, java.awt.Color color)
          paint the sample-curve
static void setColorGamma(float g)
          set the gamma (range 0..1, neutral at 0.5)
static void setColorTransferFunction(float[] x, float[] y)
          set the transferfunction-segments of value to darkness curve
static void setFftLength(int l)
           
static void setWindowType(int w)
           
 
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
 
Methods inherited from class ch.laoe.clip.AObject
getName, setDefaultName, setName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

AChannelPlotterSpectrogram

public AChannelPlotterSpectrogram(AModel m,
                                  AChannelPlotter p)
constructor

Method Detail

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