Class LineAlgorithm
java.lang.Object
|
+----java.lang.Thread
|
+----Algorithm
|
+----LineAlgorithm
- public class LineAlgorithm
- extends Algorithm
Implements the Midpoint Line Algorithm.
-
LineAlgorithm(AwtFrame, ThreadGroup)
- Constructs a Minpoint Line Algorithm object, including the
thread that runs it.
-
algorithmName()
- Returns the name of the algorithm in plane text.
-
getText()
- Returns the text of the algorithm.
-
resetParameters()
- Resets the algorithm parameters and notifies the parent of the change.
-
theAlgorithm()
- Generic interface to start the algorithm.
-
theAlgorithm(int, int, int, int)
- Private interface to the algorithm which includes specific paramters.
-
update()
- Update the peer parameter panel with new algorithm values.
LineAlgorithm
public LineAlgorithm(AwtFrame f,
ThreadGroup t)
- Constructs a Minpoint Line Algorithm object, including the
thread that runs it.
algorithmName
public String algorithmName()
- Returns the name of the algorithm in plane text.
- Overrides:
- algorithmName in class Algorithm
theAlgorithm
public void theAlgorithm()
- Generic interface to start the algorithm.
- Overrides:
- theAlgorithm in class Algorithm
theAlgorithm
public void theAlgorithm(int p1x,
int p1y,
int p2x,
int p2y)
- Private interface to the algorithm which includes specific paramters.
getText
public String getText()
- Returns the text of the algorithm.
- Overrides:
- getText in class Algorithm
update
public void update()
- Update the peer parameter panel with new algorithm values.
- Overrides:
- update in class Algorithm
resetParameters
public void resetParameters()
- Resets the algorithm parameters and notifies the parent of the change.
- Overrides:
- resetParameters in class Algorithm