Class CirclePanel

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----CirclePanel

public class CirclePanel
extends Panel
Implenents a container that displays various parameters for the Antialiased Circle Algorithm.


Constructor Index

 o CirclePanel()
Constructs a CirclePanel.

Method Index

 o getCircleValues(Point, Point)
Modifies the given Point parameters with the current value of the circle textfields.
 o handleEvent(Event)
Process any events associated with the editable fields of this object.
 o setCircleValues(Point, Point)
Update the center and radius text fields of this object.
 o update(int, int, int)
Updates the non-editable parameter fields of this object.

Constructors

 o CirclePanel
 public CirclePanel()
Constructs a CirclePanel.

Methods

 o handleEvent
 public boolean handleEvent(Event e)
Process any events associated with the editable fields of this object.

Overrides:
handleEvent in class Component
 o setCircleValues
 public void setCircleValues(Point c,
                             Point r)
Update the center and radius text fields of this object.

 o getCircleValues
 public boolean getCircleValues(Point c,
                                Point r)
Modifies the given Point parameters with the current value of the circle textfields.

Returns:
Returns false unless all three of the textfields are valid integers. On failure the resulting values in p1 and p2 are unpredictable.
 o update
 public void update(int d,
                    int x,
                    int y)
Updates the non-editable parameter fields of this object.