All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class figPac.fEllipticalArc

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

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


Variable Index

 o a
 o ARC
 o b
 o CHORD
 o defaultFillColor
The default color used to fill the curve on the screen.
 o defaultPsFillColor
The default PostScript command used to color in the curve in PostScript when the fEnv variable useColorPs is "true".
 o defaultPsFillGray
Controls the default density used to fill the curve in postscript.
 o endAngle
 o fillColor
The color used to fill the curve on the screen.
 o FILLED
 o psFillColor
The PostScript command used to color in the curve in PostScript when the fEnv variable useColorPs is "true".
 o psFillGray
Controls the density used to fill the curve in postscript.
 o startAngle
 o type
The type determines whether the arc itself is plotted, whether and how it is closed and whether or not it is filled.
 o WEDGE
 o x
 o y

Constructor Index

 o fEllipticalArc()
 o fEllipticalArc(double, double, double, double, double, double)
Creates an elliptical arc whose center is given by the first two arguments, whose semiaxes are given by the third and fourth arguments and whose initial and final angles are given by the final arguments.
 o fEllipticalArc(double, double, double, double, double, double, long)
Creates an elliptical arc whose center is given by the first two arguments, whose semiaxes are given by the third and fourth arguments and whose initial and final angles are given by the fifth and sixth arguments and whose type is given by the 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 startAngle
 public double startAngle
 o endAngle
 public double endAngle
 o ARC
 public static long ARC
 o FILLED
 public static long FILLED
 o CHORD
 public static long CHORD
 o WEDGE
 public static long WEDGE
 o type
 public long type
The type determines whether the arc itself is plotted, whether and how it is closed and whether or not it is filled. To determine the value of type, start with type=0. If you wish to plot the arc add fEllipticalArc.ARC. If you wish to close it to form a chord or wedge add fEllipticalArc.CHORD or fEllipticalArc.WEDGE, respectively. If you wish to fill the arc add fEllipticalArc.FILLED. NOTE: at the present time this is fully implemented only in postscript. For screen rendering, the only options that work are ARC and FILLED, with the latter producing a filled wedge.

 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.

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

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

Constructors

 o fEllipticalArc
 public fEllipticalArc()
 o fEllipticalArc
 public fEllipticalArc(double x,
                       double y,
                       double a,
                       double b,
                       double startAngle,
                       double endAngle)
Creates an elliptical arc whose center is given by the first two arguments, whose semiaxes are given by the third and fourth arguments and whose initial and final angles are given by the final arguments.

Parameters:
x - The x coordinate of the center.
y - The y coordinate of the center.
a - The x semiaxis.
b - The y semiaxis.
startAngle - The initial angle of the arc in degrees.
endAngle - The final angle of the arc in degrees.
 o fEllipticalArc
 public fEllipticalArc(double x,
                       double y,
                       double a,
                       double b,
                       double startAngle,
                       double endAngle,
                       long type)
Creates an elliptical arc whose center is given by the first two arguments, whose semiaxes are given by the third and fourth arguments and whose initial and final angles are given by the fifth and sixth arguments and whose type is given by the 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.
startAngle - The initial angle of the arc in degrees.
endAngle - The final angle of the arc in degrees.
type - The type determines whether the arc itself is plotted, whether and how it is closed and whether or not it is filled. To determine the value of type, start with type=0. If you wish to plot the arc add fEllipticalArc.ARC. If you wish to close it to form a chord or wedge add fEllipticalArc.CHORD or fEllipticalArc.CHORD, respectively. If you wish to fill the arc add fEllipticalArc.FILLED. NOTE: at the present time this is fully implemented only in postscript. For screen rendering, the only options that work are ARC and FILLED, with the latter producing a filled wedge.

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