javazoom.jlgui.player.amp.equalizer.ui
Class ControlCurve

java.lang.Object
  extended by javazoom.jlgui.player.amp.equalizer.ui.ControlCurve
Direct Known Subclasses:
NaturalSpline

public abstract class ControlCurve
extends java.lang.Object


Field Summary
protected  java.awt.Polygon pts
           
protected  int selection
           
 
Constructor Summary
ControlCurve()
           
 
Method Summary
 int addPoint(int x, int y)
          Add a control point, return index of new control point.
 int boundY(int y)
           
abstract  java.awt.Polygon getPolyline()
           
 void removePoint()
          Remove selected control point.
 int selectPoint(int x, int y)
          Return index of control point near to (x,y) or -1 if nothing near.
 void setMaxHeight(int h)
           
 void setMinHeight(int h)
           
 void setPoint(int x, int y)
          Set selected control point.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pts

protected java.awt.Polygon pts

selection

protected int selection
Constructor Detail

ControlCurve

public ControlCurve()
Method Detail

boundY

public int boundY(int y)

setMaxHeight

public void setMaxHeight(int h)

setMinHeight

public void setMinHeight(int h)

selectPoint

public int selectPoint(int x,
                       int y)
Return index of control point near to (x,y) or -1 if nothing near.

Parameters:
x -
y -
Returns:

addPoint

public int addPoint(int x,
                    int y)
Add a control point, return index of new control point.

Parameters:
x -
y -
Returns:

setPoint

public void setPoint(int x,
                     int y)
Set selected control point.

Parameters:
x -
y -

removePoint

public void removePoint()
Remove selected control point.


getPolyline

public abstract java.awt.Polygon getPolyline()


JavaZOOM 1999-2006