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

Quick Search    Search Deep

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

java.lang.Object
  extended bych.laoe.clip.AObject
      extended bych.laoe.clip.APlotter
          extended bych.laoe.clip.AChannelPlotter
              extended bych.laoe.clip.AChannelPlotterSampleCurve

public class AChannelPlotterSampleCurve
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: AChannelPlotterSampleCurve Autor: olivier gäumann, neuchâtel (switzerland) JDK: 1.3 Desctription: channel view. History: Date: Description: Autor: 28.12.00 first draft oli4 24.01.01 array-based oli4 28.03.01 bugfix in selection-painting oli4 24.06.01 new x/y-skala painting oli4 04.07.01 add white range on skalas oli4 08.07.01 don't paint skala if range=0, because of hard VM crash !!! oli4 18.07.01 add different sample drawings, with and without points oli4 26.07.01 3rd order interpolation on big zoom oli4 30.07.01 draw selection-dimension oli4 11.01.02 introduce intensity-points oli4 27.04.2003 "plots nothing on certain ranges" bug fixed oli4


Field Summary
static int DRAWED
           
static int FILLED
           
private  ch.laoe.operation.AOSpline spline
           
private  int style
           
(package private)  float[] x
           
(package private)  float[] y
           
 
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
AChannelPlotterSampleCurve(AModel m, AChannelPlotter p)
          constructor
 
Method Summary
 float getAutoscaleXLength()
           
 float getAutoscaleXOffset()
           
 float getAutoscaleYLength(int xOffset, int xLength)
           
 float getAutoscaleYOffset(int xOffset, int xLength)
           
protected  float getValidYLength()
           
protected  float getValidYOffset()
           
 void paintSamples(java.awt.Graphics2D g2d, java.awt.Color color)
          paint the sample-curve
 void setStyle(int style)
          set the style of the sample curve
 
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

style

private int style

FILLED

public static final int FILLED
See Also:
Constant Field Values

DRAWED

public static final int DRAWED
See Also:
Constant Field Values

spline

private ch.laoe.operation.AOSpline spline

x

float[] x

y

float[] y
Constructor Detail

AChannelPlotterSampleCurve

public AChannelPlotterSampleCurve(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

setStyle

public void setStyle(int style)
set the style of the sample curve


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