Class TextScroll
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----java.applet.Applet
|
+----TextScroll
- public class TextScroll
- extends Applet
- implements Runnable
-
TextScroll()
-
-
destroy()
- Cleans up whatever resources are being held.
-
init()
- Initializes the applet.
-
paint(Graphics)
- paint copies the offScreenImage onto the screen
-
run()
-
-
start()
- Called to start the applet.
-
stop()
- Called to stop the applet.
-
update(Graphics)
- update draws the background image and text into the offScreenImage
(update is called by repaint and calls paint)
TextScroll
public TextScroll()
init
public void init()
- Initializes the applet.
- Overrides:
- init in class Applet
start
public void start()
- Called to start the applet. You never need to call this directly; it
is called when the applet's document is visited.
- Overrides:
- start in class Applet
stop
public void stop()
- Called to stop the applet. This is called when the applet's document is
no longer on the screen. It is guaranteed to be called before destroy()
is called. You never need to call this method directly
- Overrides:
- stop in class Applet
destroy
public void destroy()
- Cleans up whatever resources are being held. If the applet is active
it is stopped.
- Overrides:
- destroy in class Applet
run
public void run()
paint
public void paint(Graphics g)
- paint copies the offScreenImage onto the screen
- Parameters:
- g — the applet's Graphics object
- Overrides:
- paint in class Container
update
public void update(Graphics g)
- update draws the background image and text into the offScreenImage
(update is called by repaint and calls paint)
- Overrides:
- update in class Component