Class LineAlgorithm

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

public class LineAlgorithm
extends Algorithm
Implements the Midpoint Line Algorithm.


Constructor Index

 o LineAlgorithm(AwtFrame, ThreadGroup)
Constructs a Minpoint Line 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, int)
Private interface to the algorithm which includes specific paramters.
 o update()
Update the peer parameter panel with new algorithm values.

Constructors

 o LineAlgorithm
 public LineAlgorithm(AwtFrame f,
                      ThreadGroup t)
Constructs a Minpoint Line 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 p1x,
                          int p1y,
                          int p2x,
                          int p2y)
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