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

Quick Search    Search Deep

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

java.lang.Object
  extended bych.laoe.clip.AObject
      extended bych.laoe.clip.APlotter
          extended bych.laoe.clip.AClipPlotter

public class AClipPlotter
extends APlotter

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: AClipPlotter Autor: olivier gäumann, neuchâtel (switzerland) JDK: 1.3 Desctription: clip view. History: Date: Description: Autor: 28.12.00 first draft oli4 24.01.01 array-based oli4 26.12.01 play/loop pointers always painted oli4 29.12.01 global setting of autoscale individual-y oli4 11.02.02 unit added oli4


Field Summary
private static boolean autoScaleIndividualYEnable
           
protected  int maxNumberOfChannels
           
protected  int maxSampleLength
           
private static int plotterXUnit
           
private static int plotterYUnit
           
private static boolean skalaValuesVisible
           
static int UNIT_1
           
static int UNIT_FDHZ
           
static int UNIT_HZ
           
static int UNIT_MS
           
static int UNIT_PERCENT
           
static int UNIT_S
           
 
Fields inherited from class ch.laoe.clip.APlotter
model
 
Fields inherited from class ch.laoe.clip.AObject
name
 
Constructor Summary
AClipPlotter(AModel m)
          constructor
 
Method Summary
 void autoScale()
           
 void autoScaleX()
           
 void autoScaleY()
           
 void autoScaleY(int xOffset, int xLength)
           
(package private)  float fromPlotterXUnit(float d)
           
(package private)  float fromPlotterYUnit(float d)
           
 float getAutoscaleXLength()
           
 float getAutoscaleXOffset()
           
 float getAutoscaleYLength(int xOffset, int xLength)
           
 float getAutoscaleYOffset(int xOffset, int xLength)
           
 AClip getClipModel()
           
(package private) static java.lang.String getPlotterXUnitName()
           
(package private) static java.lang.String getPlotterYUnitName()
           
static boolean isSkalaValuesVisible()
           
 void paintChannelThumbnail(java.awt.Graphics2D g2d, java.awt.Rectangle rect, int layerIndex, int channelIndex)
          paints only one channel, without volume-transparency, without selection, adapted for thumbnail-representation of a channel
 void paintDetailsOfSelectedLayer(java.awt.Graphics2D g2d, java.awt.Rectangle rect)
          paints all the selections of the top layer only
 void paintFullClip(java.awt.Graphics2D g2d, java.awt.Rectangle rect)
          paint all layers in layered mode, mixed considering volume-transparency, adapted for clip-editor window.
 void paintLayerThumbnail(java.awt.Graphics2D g2d, java.awt.Rectangle rect, int layerIndex)
          paints only one layer, without volume-transparency, without selection, adapted for thumbnail-representation of a layer
static void setAutoScaleIndividualYEnabled(boolean b)
           
 void setDefaultName()
          set the default name of the model
static void setPlotterXUnit(int unit)
           
static void setPlotterYUnit(int unit)
           
static void setSkalaValuesVisible(boolean b)
          set the numeric values of the skala visibility
 void setXRange(float offset, float length)
          set the sample range
 void setYRange(float offset, float length)
          set the amplitude range
(package private)  float toPlotterXUnit(float d)
           
(package private)  float toPlotterYUnit(float d)
           
 void translateXOffset(float offset)
          translate the sample offset
 void translateYOffset(float offset)
          translate the amplitude offset
 void zoomX(float factor)
          zoom x
 void zoomY(float factor)
          zoom y
 
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

autoScaleIndividualYEnable

private static boolean autoScaleIndividualYEnable

UNIT_1

public static final int UNIT_1
See Also:
Constant Field Values

UNIT_S

public static final int UNIT_S
See Also:
Constant Field Values

UNIT_MS

public static final int UNIT_MS
See Also:
Constant Field Values

UNIT_PERCENT

public static final int UNIT_PERCENT
See Also:
Constant Field Values

UNIT_HZ

public static final int UNIT_HZ
See Also:
Constant Field Values

UNIT_FDHZ

public static final int UNIT_FDHZ
See Also:
Constant Field Values

plotterXUnit

private static int plotterXUnit

plotterYUnit

private static int plotterYUnit

skalaValuesVisible

private static boolean skalaValuesVisible

maxNumberOfChannels

protected int maxNumberOfChannels

maxSampleLength

protected int maxSampleLength
Constructor Detail

AClipPlotter

public AClipPlotter(AModel m)
constructor

Method Detail

setDefaultName

public void setDefaultName()
Description copied from class: AObject
set the default name of the model

Specified by:
setDefaultName in class AObject

getClipModel

public AClip getClipModel()

setXRange

public void setXRange(float offset,
                      float length)
set the sample range


setYRange

public void setYRange(float offset,
                      float length)
set the amplitude range


translateXOffset

public void translateXOffset(float offset)
translate the sample offset


translateYOffset

public void translateYOffset(float offset)
translate the amplitude offset


zoomX

public void zoomX(float factor)
zoom x


zoomY

public void zoomY(float factor)
zoom y


setAutoScaleIndividualYEnabled

public static void setAutoScaleIndividualYEnabled(boolean b)

autoScale

public void autoScale()

autoScaleX

public void autoScaleX()

autoScaleY

public void autoScaleY()

autoScaleY

public void autoScaleY(int xOffset,
                       int xLength)

getAutoscaleXOffset

public float getAutoscaleXOffset()

getAutoscaleXLength

public float getAutoscaleXLength()

getAutoscaleYOffset

public float getAutoscaleYOffset(int xOffset,
                                 int xLength)

getAutoscaleYLength

public float getAutoscaleYLength(int xOffset,
                                 int xLength)

setPlotterXUnit

public static void setPlotterXUnit(int unit)

setPlotterYUnit

public static void setPlotterYUnit(int unit)

getPlotterXUnitName

static java.lang.String getPlotterXUnitName()

getPlotterYUnitName

static java.lang.String getPlotterYUnitName()

setSkalaValuesVisible

public static void setSkalaValuesVisible(boolean b)
set the numeric values of the skala visibility


isSkalaValuesVisible

public static boolean isSkalaValuesVisible()

toPlotterXUnit

float toPlotterXUnit(float d)

toPlotterYUnit

float toPlotterYUnit(float d)

fromPlotterXUnit

float fromPlotterXUnit(float d)

fromPlotterYUnit

float fromPlotterYUnit(float d)

paintFullClip

public void paintFullClip(java.awt.Graphics2D g2d,
                          java.awt.Rectangle rect)
paint all layers in layered mode, mixed considering volume-transparency, adapted for clip-editor window.


paintDetailsOfSelectedLayer

public void paintDetailsOfSelectedLayer(java.awt.Graphics2D g2d,
                                        java.awt.Rectangle rect)
paints all the selections of the top layer only


paintLayerThumbnail

public void paintLayerThumbnail(java.awt.Graphics2D g2d,
                                java.awt.Rectangle rect,
                                int layerIndex)
paints only one layer, without volume-transparency, without selection, adapted for thumbnail-representation of a layer


paintChannelThumbnail

public void paintChannelThumbnail(java.awt.Graphics2D g2d,
                                  java.awt.Rectangle rect,
                                  int layerIndex,
                                  int channelIndex)
paints only one channel, without volume-transparency, without selection, adapted for thumbnail-representation of a channel