Class CircleAlgorithm

java.lang.Object
   |
   +----java.lang.Thread
           |
           +----Algorithm
                   |
                   +----CircleAlgorithm

public class CircleAlgorithm
extends Algorithm
Implements the Midpoint Circle Algorithm.


Constructor Index

 o CircleAlgorithm(AwtFrame, ThreadGroup)
Constructs a Midpoint Circle Algorithm object, including the thread that runs it.

Method Index

 o algorithmName()
Returns the name of the algorithm in plane text.
 o getText()
Returns the text of the algorithm.
 o resetParameters()
Resets the algorithm parameters and notifies the parent of the change.
 o theAlgorithm()
Generic interface to start the algorithm.
 o theAlgorithm(int, int, int)
Private interface to the algorithm which includes specific paramters.
 o update()
Update the peer parameter panel with new algorithm values.

Constructors

 o CircleAlgorithm
 public CircleAlgorithm(AwtFrame f,
                        ThreadGroup t)
Constructs a Midpoint Circle Algorithm object, including the thread that runs it.

Methods

 o algorithmName
 public String algorithmName()
Returns the name of the algorithm in plane text.

Overrides:
algorithmName in class Algorithm
 o theAlgorithm
 public void theAlgorithm()
Generic interface to start the algorithm.

Overrides:
theAlgorithm in class Algorithm
 o theAlgorithm
 public void theAlgorithm(int centerX,
                          int centerY,
                          int radius)
Private interface to the algorithm which includes specific paramters.

 o getText
 public String getText()
Returns the text of the algorithm.

Overrides:
getText in class Algorithm
 o update
 public void update()
Update the peer parameter panel with new algorithm values.

Overrides:
update in class Algorithm
 o resetParameters
 public void resetParameters()
Resets the algorithm parameters and notifies the parent of the change.

Overrides:
resetParameters in class Algorithm