All Packages Class Hierarchy This Package Previous Next Index
Class figPac.fFastBezier
java.lang.Object
|
+----figPac.fFastBezier
- public class fFastBezier
- extends Object
- implements fElement, S2V
-
CLOSED
-
-
curve
- The parametrized curve whose graph is the Bezier curve.
-
defaultFillColor
- The default color used to fill the curve on the screen.
-
defaultPsFillGray
- Controls the default density used to fill the curve in postscript.
-
fillColor
- The color used to fill the curve on the screen.
-
FILLED
-
-
OPEN
-
-
psFillGray
- Controls the density used to fill the curve in postscript.
-
tmax
- The parameter limits for curve.
-
tmin
- The parameter limits for curve.
-
type
- The type determines whether the curve is plotted as an open or closed path,
whether or not it is filled and so on.
-
vertices
-
-
fFastBezier(double[], double[], int)
-
-
fFastBezier(double[], double[], int, long)
-
-
fFastBezier(double[], double[], int, long, Color)
-
-
fFastBezier(double[][])
- Creates the fFastBezier whose vertices are taken from the array list.
-
fFastBezier(double[][], int)
- Creates the fFastBezier whose vertices are the first nopoints of the array list.
-
fFastBezier(double[][], int, long)
-
-
fFastBezier(double[][], int, long, Color)
-
-
fFastBezier(PointList)
- Creates the fFastBezier whose vertices are listed in the PointList.
-
fFastBezier(PointList, int)
- Creates the fFastBezier whose vertices are the first nopoints of the PointList.
-
fFastBezier(PointList, int, long)
-
-
fFastBezier(PointList, int, long, Color)
-
-
fFastBezier(PointList, long)
- Creates the fFastBezier whose vertices are listed in the PointList and also
sets its type.
-
fFastBezier(PointList, long, Color)
- Creates the fFastBezier whose vertices are listed in the PointList and also
sets its type and fillColor.
-
drawgfx(Figure, Hashtable, V2V)
-
-
drawps(Figure, Hashtable, V2V)
-
-
map(double)
- On the interval [i, i+1) returns the cubic polynomial
( a0x[i+1] + a1x[i+1] (t-i) + a2x[i+1] (t-i)^2 + a3x[i+1] (t-i)^3,
a0y[i+1] + a1y[i+1] (t-i) + a2y[i+1] (t-i)^2 + a3y[i+1] (t-i)^3 )
vertices
public PointList vertices
curve
public fCurve curve
- The parametrized curve whose graph is the Bezier curve.
tmin
public double tmin
- The parameter limits for curve. Normally tmin=0, tmax = number of Bezier
intervals.
tmax
public double tmax
- The parameter limits for curve. Normally tmin=0, tmax = number of Bezier
intervals.
OPEN
public static long OPEN
CLOSED
public static long CLOSED
FILLED
public static long FILLED
type
public long type
- The type determines whether the curve is plotted as an open or closed path,
whether or not it is filled and so on. To determine the value of type, start with
type=0. If you wish to have the curve itself plotted add either fFastBezier.OPEN or
fFastBezier.CLOSED. In the latter case, a bezier segment from the last vertex to the
first vertex is plotted in addition to the curve itself. If you wish to fill the
curve add fFastBezier.FILLED.
defaultFillColor
public Color defaultFillColor
- The default color used to fill the curve on the screen.
fillColor
public Color fillColor
- The color used to fill the curve on the screen.
defaultPsFillGray
public double defaultPsFillGray
- Controls the default density used to fill the curve in postscript. Black=0, white=1.
psFillGray
public double psFillGray
- Controls the density used to fill the curve in postscript. Black=0, white=1.
fFastBezier
public fFastBezier(PointList p)
- Creates the fFastBezier whose vertices are listed in the PointList.
fFastBezier
public fFastBezier(PointList p,
long type)
- Creates the fFastBezier whose vertices are listed in the PointList and also
sets its type.
- Parameters:
- type - The type determines whether the curve is plotted as an open or closed path,
whether or not it is filled and so on. To determine the value of type, start with
type=0. If you wish to have the curve itself plotted add either fFastBezier.OPEN or
fFastBezier.CLOSED. In the latter case, a bezier segment from the last vertex to the first vertex
is plotted in addition to the curve itself. If you wish to fill the
curve add fFastBezier.FILLED.
- p - The list of vertices of the curve.
fFastBezier
public fFastBezier(PointList p,
long type,
Color color)
- Creates the fFastBezier whose vertices are listed in the PointList and also
sets its type and fillColor.
fFastBezier
public fFastBezier(PointList p,
int nopoints)
- Creates the fFastBezier whose vertices are the first nopoints of the PointList.
fFastBezier
public fFastBezier(PointList p,
int nopoints,
long type)
fFastBezier
public fFastBezier(PointList p,
int nopoints,
long type,
Color color)
fFastBezier
public fFastBezier(double list[][])
- Creates the fFastBezier whose vertices are taken from the array list.
fFastBezier
public fFastBezier(double list[][],
int nopoints)
- Creates the fFastBezier whose vertices are the first nopoints of the array list.
fFastBezier
public fFastBezier(double list[][],
int nopoints,
long type)
fFastBezier
public fFastBezier(double list[][],
int nopoints,
long type,
Color color)
fFastBezier
public fFastBezier(double xlist[],
double ylist[],
int nopoints)
fFastBezier
public fFastBezier(double xlist[],
double ylist[],
int nopoints,
long type)
fFastBezier
public fFastBezier(double xlist[],
double ylist[],
int nopoints,
long type,
Color color)
map
public double[] map(double t)
- On the interval [i, i+1) returns the cubic polynomial
( a0x[i+1] + a1x[i+1] (t-i) + a2x[i+1] (t-i)^2 + a3x[i+1] (t-i)^3,
a0y[i+1] + a1y[i+1] (t-i) + a2y[i+1] (t-i)^2 + a3y[i+1] (t-i)^3 )
drawgfx
public void drawgfx(Figure fig,
Hashtable env,
V2V usr2pxl)
drawps
public String drawps(Figure fig,
Hashtable env,
V2V usr2ps)
All Packages Class Hierarchy This Package Previous Next Index