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.
-
CirclePanel()
- Constructs a CirclePanel.
-
getCircleValues(Point, Point)
- Modifies the given Point parameters with the current value of
the circle textfields.
-
handleEvent(Event)
- Process any events associated with the editable fields of this object.
-
setCircleValues(Point, Point)
- Update the center and radius text fields of this object.
-
update(int, int, int)
- Updates the non-editable parameter fields of this object.
CirclePanel
public CirclePanel()
- Constructs a CirclePanel.
handleEvent
public boolean handleEvent(Event e)
- Process any events associated with the editable fields of this object.
- Overrides:
- handleEvent in class Component
setCircleValues
public void setCircleValues(Point c,
Point r)
- Update the center and radius text fields of this object.
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.
update
public void update(int d,
int x,
int y)
- Updates the non-editable parameter fields of this object.