| 
 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--GpadCurve
The GpadCurve class represents a curve generation operation
 applied to the Paintlet canvas by a GraphicPad component.
 Curve types are defined as static integer constants. The GpadCurve
 object is passed as an argument to the gpApplyCurve method of
 the GpadComponent class.
GpadComponent| Field Summary | |
| static int | HEIGHTThe Paintlet canvas height. | 
| static int | MAXCURVESThe maximum number of curves. | 
| static int | MAXKNOTSThe maximum number of knots in the curve. | 
| static int | SPLINESpline curve type. | 
| static int | WIDTHThe Paintlet canvas width. | 
| Constructor Summary | |
| GpadCurve()Creates a new GpadCurveobject. | |
| Method Summary | |
|  boolean | getCascade()Gets the value of the cascade mode. | 
|  int | getCurveNum()Gets the number of curves this object generates. | 
|  int | getCurveType()Gets the curve type. | 
|  int | getKnotNum()Gets the number of knots in each spline curve. | 
|  java.lang.String | getKnotVal()Gets the knot type value. | 
|  void | setCascade(boolean b)Sets the curve generation mode to cascade when specified parameter is true. | 
|  void | setCurveNum(int i)Sets the number of generated curves to the specified value. | 
|  void | setCurveType(int type)Sets the curve type to the specified value. | 
|  void | setKnotNum(int i)Sets the number of knots to the specified value. | 
|  void | setKnotVal(java.lang.String s)Sets the knot values to the type specified in the parameter string. | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
public static final int SPLINE
public static final int WIDTH
public static final int HEIGHT
public static final int MAXKNOTS
public static final int MAXCURVES
| Constructor Detail | 
public GpadCurve()
GpadCurve object. Default curve type is
 a spline with 15 random knots. The default number of generated curves
 is 12.| Method Detail | 
public void setCurveNum(int i)
i - the number of generated curvesMAXCURVES, 
getCurveNum()public int getCurveNum()
setCurveNum(int)public void setKnotNum(int i)
i - the number of knotsMAXKNOTS, 
getKnotNum()public int getKnotNum()
setKnotNum(int)public void setKnotVal(java.lang.String s)
s - the type of knotssetKnotNum(int)public java.lang.String getKnotVal()
setKnotVal(String)public void setCascade(boolean b)
b - when true generates curves in a cascadepublic boolean getCascade()
public void setCurveType(int type)
type - the curve typeSPLINEpublic int getCurveType()
SPLINE| 
 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||