Class ArcApplet
Class ArcApplet
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----java.applet.Applet
|
+----ArcApplet
- public class ArcApplet
- extends Applet
ArcApplet demonstrates drawing arcs by enabling the user
to input the arc's parameters.
-
ArcApplet()
-
-
action(Event, Object)
- Responds when the user presses Enter from one of the
applet's text boxes.
-
init()
- Creates the applet's textfield controls and adds
the controls to the applet's display.
-
paint(Graphics)
- Retrieves the user-defined parameters from the text
boxes, converts them to integers, and uses them
to display an arc.
ArcApplet
public ArcApplet()
init
public void init()
- Creates the applet's textfield controls and adds
the controls to the applet's display.
- Returns:
- None
- Overrides:
- init in class Applet
paint
public void paint(Graphics g)
- Retrieves the user-defined parameters from the text
boxes, converts them to integers, and uses them
to display an arc.
- Parameters:
- g - The applet's Graphics object
- Returns:
- None
- Overrides:
- paint in class Component
- See Also:
- action
action
public boolean action(Event event,
Object arg)
- Responds when the user presses Enter from one of the
applet's text boxes. Calls repaint() to force the applet
to redraw its display with the new parameters.
- Parameters:
- event - The action's event object
- arg - Event-dependent information
- Returns:
- A boolean value indicating whether the
event was handled.
- Overrides:
- action in class Component