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.

Constructor Index

 o ArcApplet()

Method Index

 o action(Event, Object)
Responds when the user presses Enter from one of the applet's text boxes.
 o init()
Creates the applet's textfield controls and adds the controls to the applet's display.
 o paint(Graphics)
Retrieves the user-defined parameters from the text boxes, converts them to integers, and uses them to display an arc.

Constructors

 o ArcApplet
  public ArcApplet()

Methods

 o 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
 o 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
 o 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