|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectplugins.big.bigsnakeutils.icy.gui.curve.Curve
public abstract class Curve
Abstract class describing a curve. The curve is defined by a set of control points.
| Constructor Summary | |
|---|---|
Curve()
|
|
| Method Summary | |
|---|---|
abstract void |
clear()
Remove all the control points except the first and the last ones. |
abstract Curve |
clone()
|
int |
count()
Returns the number of control points. |
boolean |
equals(java.lang.Object object)
|
java.awt.geom.Point2D |
getControlPoint(int index)
Returns the control point for the given index. |
java.util.Vector<java.awt.geom.Point2D> |
getControlPoints()
Returns the list of the control points. |
void |
insertControlPoint(int index,
double x,
double y)
Inserts a control point at the given index. |
abstract void |
insertControlPoint(int index,
java.awt.geom.Point2D point)
Inserts a control point at the given index. |
abstract void |
removeControlPoint(int index)
Removes a control point. |
void |
setControlPoint(int index,
double x,
double y)
Set the control point for the given index. |
abstract void |
setControlPoint(int index,
java.awt.geom.Point2D point)
Set the control point for the given index. |
abstract void |
setControlPoints(java.util.Vector<java.awt.geom.Point2D> points)
Set the list of the control points. |
abstract double |
valueAt(double x)
Returns the value of the curve for the abscissa x. |
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Curve()
| Method Detail |
|---|
public java.util.Vector<java.awt.geom.Point2D> getControlPoints()
public abstract void setControlPoints(java.util.Vector<java.awt.geom.Point2D> points)
public abstract void insertControlPoint(int index,
java.awt.geom.Point2D point)
java.lang.IllegalArgumentException - if the abscissa of the first point isn't zero or if the
abscissa of the last point isn't one.
java.lang.ArrayIndexOutOfBoundsException - if ( index < 0 ) or ( index > count() )
public void insertControlPoint(int index,
double x,
double y)
java.lang.IllegalArgumentException - if the abscissa of the first point isn't zero or if the
abscissa of the last point isn't one.
java.lang.ArrayIndexOutOfBoundsException - if ( index < 0 ) or ( index > count() )public abstract void removeControlPoint(int index)
java.lang.ArrayIndexOutOfBoundsException - if ( index < 0 ) or ( index > count() )public java.awt.geom.Point2D getControlPoint(int index)
java.lang.ArrayIndexOutOfBoundsException - if ( index < 0 ) or ( index > count() )
public abstract void setControlPoint(int index,
java.awt.geom.Point2D point)
java.lang.ArrayIndexOutOfBoundsException - if ( index < 0 ) or ( index > count() )
public void setControlPoint(int index,
double x,
double y)
java.lang.ArrayIndexOutOfBoundsException - if ( index < 0 ) or ( index > count() )public abstract void clear()
public int count()
public abstract double valueAt(double x)
public boolean equals(java.lang.Object object)
equals in class java.lang.Objectpublic abstract Curve clone()
clone in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||