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.
-
a
-
-
ARC
-
-
b
-
-
CHORD
-
-
defaultFillColor
- The default color used to fill the curve on the screen.
-
defaultPsFillColor
- The default PostScript command used to color in the curve in PostScript when the fEnv variable useColorPs is "true".
-
defaultPsFillGray
- Controls the default density used to fill the curve in postscript.
-
endAngle
-
-
fillColor
- The color used to fill the curve on the screen.
-
FILLED
-
-
psFillColor
- The PostScript command used to color in the curve in PostScript when the fEnv variable useColorPs is "true".
-
psFillGray
- Controls the density used to fill the curve in postscript.
-
startAngle
-
-
type
- The type determines whether the arc itself is plotted, whether and how it is
closed and whether or not it is filled.
-
WEDGE
-
-
x
-
-
y
-
-
fEllipticalArc()
-
-
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.
-
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.
-
configure(String, double)
-
-
configure(String, double[])
-
-
configure(String, String)
-
-
drawgfx(Figure, Hashtable, V2V)
-
-
drawps(Figure, Hashtable, V2V)
-
-
endEdit()
-
-
endEditAndDelete()
-
-
itemStateChanged(ItemEvent)
-
-
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
a
public double a
b
public double b
startAngle
public double startAngle
endAngle
public double endAngle
ARC
public static long ARC
FILLED
public static long FILLED
CHORD
public static long CHORD
WEDGE
public static long WEDGE
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.
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.
defaultPsFillColor
public String defaultPsFillColor
- The default PostScript command used to color in the curve in PostScript when the fEnv variable useColorPs is "true".
psFillColor
public String psFillColor
- The PostScript command used to color in the curve in PostScript when the fEnv variable useColorPs is "true".
fEllipticalArc
public fEllipticalArc()
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.
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.
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)
configure
public void configure(String name,
String Value)
configure
public void configure(String name,
double Value)
configure
public void configure(String name,
double Value[])
toString
public String toString()
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index