Class PedestrianLight

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Canvas
                   |
                   +----PedestrianLight

public class PedestrianLight
extends Canvas
implements Runnable

Constructor Index

 o PedestrianLight(String)
Constructors
 o PedestrianLight(String, Color, boolean)

Method Index

 o getColor()
 o getMessage()
 o getMinimumSize()
 o getPreferredSize()
 o isFlashing()
 o paint(Graphics)
 o run()
 o setFlashing(boolean)
 o setMessage(String)
Instance methods
 o setMessage(String, boolean)
 o setMessage(String, Color, boolean)

Constructors

 o PedestrianLight
 public PedestrianLight(String s)
Constructors

 o PedestrianLight
 public PedestrianLight(String s,
                        Color c,
                        boolean flasherOn)

Methods

 o setMessage
 public synchronized void setMessage(String msg)
Instance methods

 o setMessage
 public synchronized void setMessage(String msg,
                                     boolean flasherOn)
 o setMessage
 public synchronized void setMessage(String msg,
                                     Color c,
                                     boolean flasherOn)
 o getMessage
 public synchronized String getMessage()
 o getColor
 public synchronized Color getColor()
 o setFlashing
 public synchronized void setFlashing(boolean flashing)
 o isFlashing
 public synchronized boolean isFlashing()
 o paint
 public void paint(Graphics g)
Overrides:
paint in class Canvas
 o run
 public void run()
 o getMinimumSize
 public Dimension getMinimumSize()
Overrides:
getMinimumSize in class Component
 o getPreferredSize
 public Dimension getPreferredSize()
Overrides:
getPreferredSize in class Component