Class polarDust.calculator.CutoutText
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class polarDust.calculator.CutoutText

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Canvas
                   |
                   +----polarDust.calculator.CutoutText

public class CutoutText
extends Canvas
implements Runnable
CutoutText is a component that shifts a marquee text from left to right within a given Graphics object.

The source code.
Version:
0.9, 1996.06.04
Author:
Sorin Lazareanu

Constructor Index

 o CutoutText(String)
Constructs the component

Method Index

 o isAlive()
The thread is alive.
 o isSuspended()
The thread is suspended.
 o minimumSize()
 o paint(Graphics)
Paints on a Graphics object.
 o preferredSize()
 o resume()
Resume the thread.
 o run()
Runs the thread.
 o start()
Starts the thread.
 o stop()
Stops the thread.
 o suspend()
Suspends the thread.
 o update(Graphics)
Paints on a Graphics object.

Constructors

 o CutoutText
  public CutoutText(String aTemplate)
Constructs the component
Parameters:
aTemplate - the text to be displayed.

Methods

 o isAlive
  public boolean isAlive()
The thread is alive.
 o start
  public void start()
Starts the thread.
 o stop
  public void stop()
Stops the thread.
 o suspend
  public void suspend()
Suspends the thread.
 o isSuspended
  public boolean isSuspended()
The thread is suspended.
 o resume
  public void resume()
Resume the thread.
 o run
  public void run()
Runs the thread.
 o paint
  public void paint(Graphics aGraphics)
Paints on a Graphics object. Calls update for that. This is a callback method.
Overrides:
paint in class Canvas
 o update
  public synchronized void update(Graphics aGraphics)
Paints on a Graphics object.
Overrides:
update in class Component
 o preferredSize
  public Dimension preferredSize()
Overrides:
preferredSize in class Component
 o minimumSize
  public Dimension minimumSize()
Overrides:
minimumSize in class Component

All Packages  Class Hierarchy  This Package  Previous  Next  Index