Class PlumblineAlgorithm
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----java.applet.Applet
|
+----PlumblineAlgorithm
- public class PlumblineAlgorithm
- extends Applet
Applet implementing the plumbline algorithm.
- Version:
- 1.00 4 Dec 1997
- Author:
- Octavian Cismasu
-
PlumblineAlgorithm()
-
-
action(Event, Object)
- Handles button clicks and drop-list events
-
init()
- Initializes the applet and displays the
user interface.
-
setEnableButtons(boolean, boolean, boolean)
- Modifies the enable state of button according to the
new specifications.
-
setMbMessage(String)
- Sets the message to be displayed
in the MessageBoard.
-
setxyCoords(int, int)
- Displays the mouse coordinates inside
the Drawingboard.
-
start()
-
PlumblineAlgorithm
public PlumblineAlgorithm()
init
public void init()
- Initializes the applet and displays the
user interface.
- Overrides:
- init in class Applet
start
public void start()
- Overrides:
- start in class Applet
action
public boolean action(Event evt,
Object obj)
- Handles button clicks and drop-list events
- Parameters:
- evt - the event to be handled
- obj - the object causing the event
- Overrides:
- action in class Component
setxyCoords
public void setxyCoords(int x,
int y)
- Displays the mouse coordinates inside
the Drawingboard.
- Parameters:
- x - the x-coordinate
- y - the y-coordinate
setMbMessage
public void setMbMessage(String msg)
- Sets the message to be displayed
in the MessageBoard.
- Parameters:
- msg - the message to be displayed
setEnableButtons
public void setEnableButtons(boolean b1,
boolean b2,
boolean b3)
- Modifies the enable state of button according to the
new specifications.
- Parameters:
- b1 - new value for button 1 enable state
- b2 - new value for button 2 enable state
- b3 - new value for button 3 enable state