Class ryw.XTicker
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ryw.XTicker

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Canvas
                   |
                   +----ryw.XTicker

public class XTicker
extends Canvas
implements Runnable
the way this thing works: it has a print buffer and a queue of strings to be printed. during each iteration, we shift the print buffer to the left by one character. the right end of the print buffer is padded with spaces or stuff from the print queue.

Constructor Index

 o XTicker(int, int)

Method Index

 o addString(String)
 o initialize(String)
 o paint(Graphics)
 o run()
 o start()
 o stop()

Constructors

 o XTicker
  public XTicker(int w,
                 int h)

Methods

 o initialize
  public void initialize(String initMsg)
 o paint
  public void paint(Graphics g)
Overrides:
paint in class Canvas
 o start
  public void start()
 o stop
  public void stop()
 o run
  public void run()
 o addString
  public void addString(String str)

All Packages  Class Hierarchy  This Package  Previous  Next  Index