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

Quick Search    Search Deep

ch.laoe.operation
Class AOSegmentGenerator  view AOSegmentGenerator download AOSegmentGenerator.java

java.lang.Object
  extended bych.laoe.clip.AObject
      extended bych.laoe.operation.AOperation
          extended bych.laoe.operation.AOSegmentGenerator

public class AOSegmentGenerator
extends AOperation

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: AOSegmentGenerator Autor: olivier gäumann, neuchâtel (switzerland) JDK: 1.3 Desctription: generate linear segments, works without selections!!! History: Date: Description: Autor: 26.07.00 erster Entwurf oli4 03.08.00 neuer Stil oli4 17.03.01 first use in a plugin oli4 27.04.01 based on Toolkit oli4 12.08.01 single-point mode oli4 01.12.01 add envelope operation oli4 21.01.02 selection-dependent and -independent mode oli4


Field Summary
static int ENVELOPE_OPERATION
           
private  int operation
           
private  int order
           
static int ORDER_0
           
static int ORDER_1
           
static int ORDER_2
           
static int ORDER_3
           
static int REPLACE_OPERATION
          operation on samples
private  boolean selectionIndependent
           
static int SINGLE_POINTS
          interpolation order
static int SPLINE
           
private  float[] x
           
private  float[] y
           
 
Fields inherited from class ch.laoe.clip.AObject
name
 
Constructor Summary
AOSegmentGenerator(float[] x, float[] y, int order, int operation, boolean selectionIndependent)
          x,y: point definitions of the segments order: interpolation order
 
Method Summary
 void operate(ch.laoe.clip.AChannelSelection ch1)
          performs the segments generation
 
Methods inherited from class ch.laoe.operation.AOperation
endOperation, operate, operate, setDefaultName, startOperation
 
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

SINGLE_POINTS

public static final int SINGLE_POINTS
interpolation order

See Also:
Constant Field Values

ORDER_0

public static final int ORDER_0
See Also:
Constant Field Values

ORDER_1

public static final int ORDER_1
See Also:
Constant Field Values

ORDER_2

public static final int ORDER_2
See Also:
Constant Field Values

ORDER_3

public static final int ORDER_3
See Also:
Constant Field Values

SPLINE

public static final int SPLINE
See Also:
Constant Field Values

order

private int order

REPLACE_OPERATION

public static final int REPLACE_OPERATION
operation on samples

See Also:
Constant Field Values

ENVELOPE_OPERATION

public static final int ENVELOPE_OPERATION
See Also:
Constant Field Values

operation

private int operation

x

private float[] x

y

private float[] y

selectionIndependent

private boolean selectionIndependent
Constructor Detail

AOSegmentGenerator

public AOSegmentGenerator(float[] x,
                          float[] y,
                          int order,
                          int operation,
                          boolean selectionIndependent)
x,y: point definitions of the segments order: interpolation order

Method Detail

operate

public void operate(ch.laoe.clip.AChannelSelection ch1)
performs the segments generation

Overrides:
operate in class AOperation