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

Variable Index

 o CLOSED
 o curve
The parametrized curve whose graph is the Bezier curve.
 o defaultFillColor
The default color used to fill the curve on the screen.
 o defaultPsFillGray
Controls the default density used to fill the curve in postscript.
 o fillColor
The color used to fill the curve on the screen.
 o FILLED
 o OPEN
 o psFillGray
Controls the density used to fill the curve in postscript.
 o tmax
The parameter limits for curve.
 o tmin
The parameter limits for curve.
 o type
The type determines whether the curve is plotted as an open or closed path, whether or not it is filled and so on.
 o vertices

Constructor Index

 o fFastBezier(double[], double[], int)
 o fFastBezier(double[], double[], int, long)
 o fFastBezier(double[], double[], int, long, Color)
 o fFastBezier(double[][])
Creates the fFastBezier whose vertices are taken from the array list.
 o fFastBezier(double[][], int)
Creates the fFastBezier whose vertices are the first nopoints of the array list.
 o fFastBezier(double[][], int, long)
 o fFastBezier(double[][], int, long, Color)
 o fFastBezier(PointList)
Creates the fFastBezier whose vertices are listed in the PointList.
 o fFastBezier(PointList, int)
Creates the fFastBezier whose vertices are the first nopoints of the PointList.
 o fFastBezier(PointList, int, long)
 o fFastBezier(PointList, int, long, Color)
 o fFastBezier(PointList, long)
Creates the fFastBezier whose vertices are listed in the PointList and also sets its type.
 o fFastBezier(PointList, long, Color)
Creates the fFastBezier whose vertices are listed in the PointList and also sets its type and fillColor.

Method Index

 o drawgfx(Figure, Hashtable, V2V)
 o drawps(Figure, Hashtable, V2V)
 o 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 )

Variables

 o vertices
 public PointList vertices
 o curve
 public fCurve curve
The parametrized curve whose graph is the Bezier curve.

 o tmin
 public double tmin
The parameter limits for curve. Normally tmin=0, tmax = number of Bezier intervals.

 o tmax
 public double tmax
The parameter limits for curve. Normally tmin=0, tmax = number of Bezier intervals.

 o OPEN
 public static long OPEN
 o CLOSED
 public static long CLOSED
 o FILLED
 public static long FILLED
 o 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.

 o defaultFillColor
 public Color defaultFillColor
The default color used to fill the curve on the screen.

 o fillColor
 public Color fillColor
The color used to fill the curve on the screen.

 o defaultPsFillGray
 public double defaultPsFillGray
Controls the default density used to fill the curve in postscript. Black=0, white=1.

 o psFillGray
 public double psFillGray
Controls the density used to fill the curve in postscript. Black=0, white=1.

Constructors

 o fFastBezier
 public fFastBezier(PointList p)
Creates the fFastBezier whose vertices are listed in the PointList.

 o 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.
 o 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.

 o fFastBezier
 public fFastBezier(PointList p,
                    int nopoints)
Creates the fFastBezier whose vertices are the first nopoints of the PointList.

 o fFastBezier
 public fFastBezier(PointList p,
                    int nopoints,
                    long type)
 o fFastBezier
 public fFastBezier(PointList p,
                    int nopoints,
                    long type,
                    Color color)
 o fFastBezier
 public fFastBezier(double list[][])
Creates the fFastBezier whose vertices are taken from the array list.

 o fFastBezier
 public fFastBezier(double list[][],
                    int nopoints)
Creates the fFastBezier whose vertices are the first nopoints of the array list.

 o fFastBezier
 public fFastBezier(double list[][],
                    int nopoints,
                    long type)
 o fFastBezier
 public fFastBezier(double list[][],
                    int nopoints,
                    long type,
                    Color color)
 o fFastBezier
 public fFastBezier(double xlist[],
                    double ylist[],
                    int nopoints)
 o fFastBezier
 public fFastBezier(double xlist[],
                    double ylist[],
                    int nopoints,
                    long type)
 o fFastBezier
 public fFastBezier(double xlist[],
                    double ylist[],
                    int nopoints,
                    long type,
                    Color color)

Methods

 o 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 )

 o drawgfx
 public void drawgfx(Figure fig,
                     Hashtable env,
                     V2V usr2pxl)
 o drawps
 public String drawps(Figure fig,
                      Hashtable env,
                      V2V usr2ps)

All Packages  Class Hierarchy  This Package  Previous  Next  Index