All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class figPac.fDisk

java.lang.Object
   |
   +----figPac.fDisk

public class fDisk
extends Object
implements fElement, fInteractive, MouseListener, MouseMotionListener, ItemListener
This class draws an elliptical disk. WARNING: fDisk works only for horizontal x axes and vertical y axes. Otherwise you should use fCurve with the curve pEllipse.


Variable Index

 o a
 o b
 o BOUNDARY
 o defaultFillColor
The default color used to fill the disk on the screen.
 o defaultPsFillColor
The default PostScript command used to color in the disk in PostScript when the fEnv variable useColorPs is "true".
 o defaultPsFillGray
Controls the default density used to fill the disk in postscript.
 o fillColor
The color used to fill the curve on the screen.
 o FILLED
 o psFillColor
The PostScript command used to color in the disk in PostScript when the fEnv variable useColorPs is "true".
 o psFillGray
Controls the density used to fill the disk in postscript.
 o type
The type determines whether the boundary of the disk is plotted whether or not the disk is filled.
 o x
 o y

Constructor Index

 o fDisk()
 o fDisk(double, double, double)
Creates an circular disk whose center is given by the first two arguments, whose radius is given by the final argument.
 o fDisk(double, double, double, double)
Creates an elliptical disk whose center is given by the first two arguments, whose semiaxes are given by the final two arguments.
 o fDisk(double, double, double, double, long)
Creates an elliptical disk whose center is given by the first two arguments, whose semiaxes are given by the next two arguments and whose type is given by last argument.
 o fDisk(double, double, double, long)
Creates an circular disk whose center is given by the first two arguments, whose radius are given by the third argument and whose type is given by last argument.

Method Index

 o configure(String, double)
 o configure(String, double[])
 o configure(String, String)
 o drawgfx(Figure, Hashtable, V2V)
 o drawps(Figure, Hashtable, V2V)
 o endEdit()
 o endEditAndDelete()
 o itemStateChanged(ItemEvent)
 o mouseClicked(MouseEvent)
 o mouseDragged(MouseEvent)
 o mouseEntered(MouseEvent)
 o mouseExited(MouseEvent)
 o mouseMoved(MouseEvent)
 o mousePressed(MouseEvent)
 o mouseReleased(MouseEvent)
 o startEdit(figEdit)
 o toString()

Variables

 o x
 public double x
 o y
 public double y
 o a
 public double a
 o b
 public double b
 o BOUNDARY
 public static long BOUNDARY
 o FILLED
 public static long FILLED
 o type
 public long type
The type determines whether the boundary of the disk is plotted whether or not the disk is filled. To determine the value of type, start with type=0. If you wish to plot the boundary add fDisk.BOUNDARY. If you wish to fill the disk add fDISK.FILLED.

 o defaultFillColor
 public Color defaultFillColor
The default color used to fill the disk 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 disk in postscript. Black=0, white=1.

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

 o defaultPsFillColor
 public String defaultPsFillColor
The default PostScript command used to color in the disk in PostScript when the fEnv variable useColorPs is "true".

 o psFillColor
 public String psFillColor
The PostScript command used to color in the disk in PostScript when the fEnv variable useColorPs is "true".

Constructors

 o fDisk
 public fDisk()
 o fDisk
 public fDisk(double x,
              double y,
              double radius)
Creates an circular disk whose center is given by the first two arguments, whose radius is given by the final argument.

Parameters:
x - The x coordinate of the center.
y - The y coordinate of the center.
r - The radius.
 o fDisk
 public fDisk(double x,
              double y,
              double a,
              double b)
Creates an elliptical disk whose center is given by the first two arguments, whose semiaxes are given by the final two arguments.

Parameters:
x - The x coordinate of the center.
y - The y coordinate of the center.
a - The x semiaxis.
b - The y semiaxis.
 o fDisk
 public fDisk(double x,
              double y,
              double radius,
              long type)
Creates an circular disk whose center is given by the first two arguments, whose radius are given by the third argument and whose type is given by last argument.

Parameters:
x - The x coordinate of the center.
y - The y coordinate of the center.
r - The radius.
type - The type determines whether the boundary of the disk is plotted whether or not the disk is filled. To determine the value of type, start with type=0. If you wish to plot the boundary add fDisk.BOUNDARY. If you wish to fill the disk add fDISK.FILLED.
 o fDisk
 public fDisk(double x,
              double y,
              double a,
              double b,
              long type)
Creates an elliptical disk whose center is given by the first two arguments, whose semiaxes are given by the next two arguments and whose type is given by last argument.

Parameters:
x - The x coordinate of the center.
y - The y coordinate of the center.
a - The x semiaxis.
b - The y semiaxis.
type - The type determines whether the boundary of the disk is plotted whether or not the disk is filled. To determine the value of type, start with type=0. If you wish to plot the boundary add fDisk.BOUNDARY. If you wish to fill the disk add fDISK.FILLED.

Methods

 o drawgfx
 public void drawgfx(Figure fig,
                     Hashtable env,
                     V2V usr2pxl)
 o drawps
 public String drawps(Figure fig,
                      Hashtable env,
                      V2V usr2ps)
 o startEdit
 public void startEdit(figEdit applet)
 o endEdit
 public void endEdit()
 o endEditAndDelete
 public void endEditAndDelete()
 o mouseClicked
 public void mouseClicked(MouseEvent evt)
 o mousePressed
 public void mousePressed(MouseEvent evt)
 o mouseDragged
 public void mouseDragged(MouseEvent evt)
 o mouseReleased
 public void mouseReleased(MouseEvent evt)
 o mouseEntered
 public void mouseEntered(MouseEvent evt)
 o mouseExited
 public void mouseExited(MouseEvent evt)
 o mouseMoved
 public void mouseMoved(MouseEvent evt)
 o itemStateChanged
 public void itemStateChanged(ItemEvent evt)
 o configure
 public void configure(String name,
                       String Value)
 o configure
 public void configure(String name,
                       double Value)
 o configure
 public void configure(String name,
                       double Value[])
 o toString
 public String toString()
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index