|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.levigo.jadice.document.util.ControlCurve
public abstract class ControlCurve
This class represents a curve defined by a sequence of control points. The actual implementation of the curve is up to implementing subclasses.
Field Summary | |
---|---|
protected boolean |
curveChanged
|
protected Polygon |
points
The control points |
Constructor Summary | |
---|---|
ControlCurve()
|
Method Summary | |
---|---|
int |
addControlPoint(Point p)
Add a control point to the end of the list. |
Point |
getControlPoint(int n)
Get a specified control point. |
Polygon |
getControlPoints()
Returns the points. |
abstract Polygon |
getCurve()
|
int |
getPointCount()
Get the number of control points. |
int |
insertControlPoint(int n,
Point p)
Insert a control point at a given location |
void |
removeControlPoint(int n)
Remove the specified control point |
void |
setControlPoint(int n,
Point p)
Set the specified control point |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Polygon points
protected boolean curveChanged
Constructor Detail |
---|
public ControlCurve()
Method Detail |
---|
public int addControlPoint(Point p)
public int insertControlPoint(int n, Point p)
public void setControlPoint(int n, Point p)
public void removeControlPoint(int n)
public Point getControlPoint(int n)
public int getPointCount()
public abstract Polygon getCurve()
public Polygon getControlPoints()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |