| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.paulhertz.aifile.DisplayComponent
net.paulhertz.aifile.BezShape
net.paulhertz.aifile.BezCurve
public class BezCurve
Provides factory methods to construct a single Bezier curve.
| Nested Class Summary | 
|---|
| Nested classes/interfaces inherited from class net.paulhertz.aifile.BezShape | 
|---|
BezShape.BezType | 
| Field Summary | 
|---|
| Fields inherited from class net.paulhertz.aifile.BezShape | 
|---|
bezType, CURVE_SEGMENT, KAPPA, LINE_SEGMENT | 
| Method Summary | |
|---|---|
static BezCurve | 
makeCurve(float ax1,
          float ay1,
          float cx1,
          float cy1,
          float cx2,
          float cy2,
          float ax2,
          float ay2)
Constructs a single Bˇzier curve.  | 
static BezCurve | 
makeCurve(PApplet parent,
          float ax1,
          float ay1,
          float cx1,
          float cy1,
          float cx2,
          float cy2,
          float ax2,
          float ay2)
Constructs a single Bˇzier curve.  | 
| Methods inherited from class net.paulhertz.aifile.DisplayComponent | 
|---|
hide, id, isLocked, isVisible, parentComponent, setLocked, setParentComponent, setVisible, show | 
| Methods inherited from class java.lang.Object | 
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Method Detail | 
|---|
public static BezCurve makeCurve(PApplet parent,
                                 float ax1,
                                 float ay1,
                                 float cx1,
                                 float cy1,
                                 float cx2,
                                 float cy2,
                                 float ax2,
                                 float ay2)
isClosed == false).
parent - reference to the host PApplet, used for calls to Processing environmentax1 - x-coordinate of initial anchor pointay1 - y-coordinate of initial anchor pointcx1 - x-coordinate of first control pointcy1 - y-coordinate of first control pointcx2 - x-coordinate of second control pointcy2 - y-coordinate of second control pointax2 - x-coordinate of terminal anchor pointay2 - y-coordinate of terminal anchor point
public static BezCurve makeCurve(float ax1,
                                 float ay1,
                                 float cx1,
                                 float cy1,
                                 float cx2,
                                 float cy2,
                                 float ax2,
                                 float ay2)
isClosed == false).
 PApplet used for calls to the Processing environment is obtained from 
 IgnoCodeLib, which must be correctly initialized in setup. 
 If IgnoCodeLib does not have a reference to a PApplet, it throws a NullPointerException.
ax1 - x-coordinate of initial anchor pointay1 - y-coordinate of initial anchor pointcx1 - x-coordinate of first control pointcy1 - y-coordinate of first control pointcx2 - x-coordinate of second control pointcy2 - y-coordinate of second control pointax2 - x-coordinate of terminal anchor pointay2 - y-coordinate of terminal anchor point
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||