Class AACirclePanel
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----AACirclePanel
- public class AACirclePanel
- extends Panel
Implenents a container that displays various parameters for the
Antialiased Circle Algorithm.
-
AACirclePanel()
- Constructs an AACirclePanel.
-
getAACircleValues(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.
AACirclePanel
public AACirclePanel()
- Constructs an AACirclePanel.
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.
getAACircleValues
public boolean getAACircleValues(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.