All Packages Class Hierarchy This Package Previous Next Index
Class figPac.fPolygon
java.lang.Object

+figPac.fPolygon
 public class fPolygon
 extends Object
 implements fElement, fInteractive, MouseListener, MouseMotionListener, ItemListener, ActionListener

CLOSED


defaultFillColor
 The default color used to fill the polygon on the screen.

defaultPsFillColor
 The default PostScript command used to color in the polygon in PostScript when the fEnv variable useColorPs is "true".

defaultPsFillGray
 Controls the default density used to fill the polygon in postscript.

DOT


fillColor
 The color used to fill the polygon on the screen.

FILLED


lin_reg_from


lin_reg_to


OPEN


psDotFont
 In the postcsript image, when fPolygon.DOT is included in the type of
the fPolygon, character number psDotSymbol of the font psDotFont is printed at each vertex.

psDotSymbol
 In the postcsript image, when fPolygon.DOT is included in the type of
the fPolygon, character number psDotSymbol of the font psDotFont is printed at each vertex.

psFillColor
 The PostScript command used to color in the polygon in PostScript when the fEnv variable useColorPs is "true".

psFillGray
 Controls the density used to fill the polygon in postscript.

REGRESSION


type
 The type determines whether the polygon is plotted as an open or closed path, whether or not it is filled and so on.

x


y


fPolygon()


fPolygon(double[], double[], int)


fPolygon(double[], double[], int, long)


fPolygon(double[], double[], int, long, Color)


fPolygon(double[][])
 Creates the fPolygon whose vertices are taken from the array list.

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

fPolygon(double[][], int, long)


fPolygon(double[][], int, long, Color)


fPolygon(double[][], long)
 Creates the fPolygon whose vertices are taken from the array list and also
sets its type.

fPolygon(PointList)
 Creates the fPolygon whose vertices are listed in the PointList.

fPolygon(PointList, int)
 Creates the fPolygon whose vertices are the first nopoints of the PointList.

fPolygon(PointList, int, long)


fPolygon(PointList, int, long, Color)


fPolygon(PointList, long)
 Creates the fPolygon whose vertices are listed in the PointList and also
sets its type.

fPolygon(PointList, long, Color)
 Creates the fPolygon whose vertices are listed in the PointList and also
sets its type and fillColor.

actionPerformed(ActionEvent)


append(double, double)


configure(String, double)
 Sets the value of the property specified by the first argument to
the second argument.

configure(String, double[])
 Sets the value of the property specified by the first argument to
the second argument.

configure(String, String)


delete(int)


drawgfx(Figure, Hashtable, V2V)


drawps(Figure, Hashtable, V2V)


endEdit()


endEditAndDelete()


insert(double, double, int)


itemStateChanged(ItemEvent)


linear_regression(double, double)


mouseClicked(MouseEvent)


mouseDragged(MouseEvent)


mouseEntered(MouseEvent)


mouseExited(MouseEvent)


mouseMoved(MouseEvent)


mousePressed(MouseEvent)


mouseReleased(MouseEvent)


startEdit(figEdit)


toString()

x
public double x[]
y
public double y[]
OPEN
public static long OPEN
CLOSED
public static long CLOSED
DOT
public static long DOT
FILLED
public static long FILLED
REGRESSION
public static long REGRESSION
type
public long type
 The type determines whether the polygon 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 polygon itself plotted add either fPolygon.OPEN or
fPolygon.CLOSED. In the latter case, a line segment from the last vertex to the first vertex
is plotted in addition to the polygon itself. If you wish to fill the
polygon add fPolygon.FILLED. If you wish to plot the vertices of the polygon add
fPolygon.DOT. (On the screen, a small square will be centered on each vertex.
In postscript, the character number psDotSymbol of font psDotFont will be placed
as a label at each vertex.) If you wish to draw the straight line which best
fits the vertices of the polygon add fPolygon.REGRESSION.
defaultFillColor
public Color defaultFillColor
 The default color used to fill the polygon on the screen.
fillColor
public Color fillColor
 The color used to fill the polygon on the screen.
defaultPsFillGray
public double defaultPsFillGray
 Controls the default density used to fill the polygon in postscript. Black=0, white=1.
psFillGray
public double psFillGray
 Controls the density used to fill the polygon in postscript. Black=0, white=1.
defaultPsFillColor
public String defaultPsFillColor
 The default PostScript command used to color in the polygon in PostScript when the fEnv variable useColorPs is "true".
psFillColor
public String psFillColor
 The PostScript command used to color in the polygon in PostScript when the fEnv variable useColorPs is "true".
psDotFont
public String psDotFont
 In the postcsript image, when fPolygon.DOT is included in the type of
the fPolygon, character number psDotSymbol of the font psDotFont is printed at each vertex.
psDotSymbol
public int psDotSymbol
 In the postcsript image, when fPolygon.DOT is included in the type of
the fPolygon, character number psDotSymbol of the font psDotFont is printed at each vertex.
lin_reg_from
public double lin_reg_from[]
lin_reg_to
public double lin_reg_to[]
fPolygon
public fPolygon(PointList p)
 Creates the fPolygon whose vertices are listed in the PointList.
fPolygon
public fPolygon(PointList p,
long type)
 Creates the fPolygon whose vertices are listed in the PointList and also
sets its type.
 Parameters:
 type  The type determines whether the polygon 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 polygon itself plotted add either fPolygon.OPEN or
fPolygon.CLOSED. In the latter case, a line segment from the last vertex to the first vertex
is plotted in addition to the polygon itself. If you wish to fill the
polygon add fPolygon.FILLED. If you wish to plot the vertices of the polygon add
fPolygon.DOT. (On the screen, a small square will be centered on each vertex.
In postscript, the character number psDotSymbol of font psDotFont will be placed
as a label at each vertex.) If you wish to draw the straight line which best
fits the vertices of the polygon add fPolygon.REGRESSION.
 p  The list of vertices of the polygon.
fPolygon
public fPolygon(PointList p,
long type,
Color color)
 Creates the fPolygon whose vertices are listed in the PointList and also
sets its type and fillColor.
fPolygon
public fPolygon(PointList p,
int nopoints)
 Creates the fPolygon whose vertices are the first nopoints of the PointList.
fPolygon
public fPolygon(PointList p,
int nopoints,
long type)
fPolygon
public fPolygon(PointList p,
int nopoints,
long type,
Color color)
fPolygon
public fPolygon(double list[][])
 Creates the fPolygon whose vertices are taken from the array list.
fPolygon
public fPolygon(double list[][],
long type)
 Creates the fPolygon whose vertices are taken from the array list and also
sets its type.
 Parameters:
 type  The type determines whether the polygon 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 polygon itself plotted add either fPolygon.OPEN or
fPolygon.CLOSED. In the latter case, a line segment from the last vertex to the first vertex
is plotted in addition to the polygon itself. If you wish to fill the
polygon add fPolygon.FILLED. If you wish to plot the vertices of the polygon add
fPolygon.DOT. (On the screen, a small square will be centered on each vertex.
In postscript, the character number psDotSymbol of font psDotFont will be placed
as a label at each vertex.) If you wish to draw the straight line which best
fits the vertices of the polygon add fPolygon.REGRESSION.
 list  The list of vertices of the polygon.
fPolygon
public fPolygon(double list[][],
int nopoints)
 Creates the fPolygon whose vertices are the first nopoints of the array list.
fPolygon
public fPolygon(double list[][],
int nopoints,
long type)
fPolygon
public fPolygon(double list[][],
int nopoints,
long type,
Color color)
fPolygon
public fPolygon(double xlist[],
double ylist[],
int nopoints)
fPolygon
public fPolygon(double xlist[],
double ylist[],
int nopoints,
long type)
fPolygon
public fPolygon(double xlist[],
double ylist[],
int nopoints,
long type,
Color color)
fPolygon
public fPolygon()
append
public void append(double x,
double y)
insert
public void insert(double x,
double y,
int vertexNo)
delete
public void delete(int vertexNo)
linear_regression
public void linear_regression(double xmin,
double xmax)
drawgfx
public void drawgfx(Figure fig,
Hashtable env,
V2V usr2pxl)
drawps
public String drawps(Figure fig,
Hashtable env,
V2V usr2ps)
startEdit
public void startEdit(figEdit applet)
endEdit
public void endEdit()
endEditAndDelete
public void endEditAndDelete()
mouseClicked
public void mouseClicked(MouseEvent evt)
mousePressed
public void mousePressed(MouseEvent evt)
mouseDragged
public void mouseDragged(MouseEvent evt)
mouseReleased
public void mouseReleased(MouseEvent evt)
mouseEntered
public void mouseEntered(MouseEvent evt)
mouseExited
public void mouseExited(MouseEvent evt)
mouseMoved
public void mouseMoved(MouseEvent evt)
itemStateChanged
public void itemStateChanged(ItemEvent evt)
actionPerformed
public void actionPerformed(ActionEvent e)
configure
public void configure(String name,
String Value)
configure
public void configure(String name,
double Value)
 Sets the value of the property specified by the first argument to
the second argument. At the present time, the following properties
are supported: type.
configure
public void configure(String name,
double Value[])
 Sets the value of the property specified by the first argument to
the second argument. At the present time, the following properties
are supported: vertex.
Here is an integer (starting at zero) specifying the vertex number.
For example the property with name "vertex3" refers to x[3] and y[3].
toString
public String toString()
 Overrides:
 toString in class Object
All Packages Class Hierarchy This Package Previous Next Index