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

Constructor Index

 o PlumblineAlgorithm()

Method Index

 o action(Event, Object)
Handles button clicks and drop-list events
 o init()
Initializes the applet and displays the user interface.
 o setEnableButtons(boolean, boolean, boolean)
Modifies the enable state of button according to the new specifications.
 o setMbMessage(String)
Sets the message to be displayed in the MessageBoard.
 o setxyCoords(int, int)
Displays the mouse coordinates inside the Drawingboard.
 o start()

Constructors

 o PlumblineAlgorithm
  public PlumblineAlgorithm()

Methods

 o init
  public void init()
Initializes the applet and displays the user interface.

Overrides:
init in class Applet
 o start
  public void start()
Overrides:
start in class Applet
 o 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
 o setxyCoords
  public void setxyCoords(int x,
                          int y)
Displays the mouse coordinates inside the Drawingboard.

Parameters:
x - the x-coordinate
y - the y-coordinate
 o setMbMessage
  public void setMbMessage(String msg)
Sets the message to be displayed in the MessageBoard.

Parameters:
msg - the message to be displayed
 o 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