javazoom.jlgui.player.amp.equalizer.ui

Class ControlCurve

Known Direct Subclasses:
NaturalSpline

public abstract class ControlCurve
extends java.lang.Object

Field Summary

protected 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 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.

Field Details

pts

protected Polygon pts

selection

protected int selection

Constructor Details

ControlCurve

public ControlCurve()

Method Details

addPoint

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

boundY

public int boundY(int y)

getPolyline

public abstract Polygon getPolyline()

removePoint

public void removePoint()
Remove selected control point.

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:

setMaxHeight

public void setMaxHeight(int h)

setMinHeight

public void setMinHeight(int h)

setPoint

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

JavaZOOM 1999-2006