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
-
CutoutText(String)
- Constructs the component
-
isAlive()
- The thread is alive.
-
isSuspended()
- The thread is suspended.
-
minimumSize()
-
-
paint(Graphics)
- Paints on a Graphics object.
-
preferredSize()
-
-
resume()
- Resume the thread.
-
run()
- Runs the thread.
-
start()
- Starts the thread.
-
stop()
- Stops the thread.
-
suspend()
- Suspends the thread.
-
update(Graphics)
- Paints on a Graphics object.
CutoutText
public CutoutText(String aTemplate)
- Constructs the component
- Parameters:
- aTemplate - the text to be displayed.
isAlive
public boolean isAlive()
- The thread is alive.
start
public void start()
- Starts the thread.
stop
public void stop()
- Stops the thread.
suspend
public void suspend()
- Suspends the thread.
isSuspended
public boolean isSuspended()
- The thread is suspended.
resume
public void resume()
- Resume the thread.
run
public void run()
- Runs the thread.
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
update
public synchronized void update(Graphics aGraphics)
- Paints on a Graphics object.
- Overrides:
- update in class Component
preferredSize
public Dimension preferredSize()
- Overrides:
- preferredSize in class Component
minimumSize
public Dimension minimumSize()
- Overrides:
- minimumSize in class Component
All Packages Class Hierarchy This Package Previous Next Index