Class Banner
Class Banner
java.lang.Object
|
+----java.lang.Thread
|
+----Banner
- public class Banner
- extends Thread
This class implements an animation thread which animates all the banners
that have been added to it.
- Version:
- 1.0
- Author:
- Torbjörn Nil55on
-
Banner(Container, String)
- Default constructor
-
add(int, int, int)
- Alternative add().
-
add(int, int, int, boolean)
- Use this method to add another banner in a given colour and at a given position.
-
clear()
- Prepare for a new collection of add-operations, by removing all previous banners.
-
paint()
- Draw all the animated banners added to this Banner object.
-
run()
- Mainloop of this thread.
Banner
public Banner(Container c,
String host)
- Default constructor
clear
public synchronized void clear()
- Prepare for a new collection of add-operations, by removing all previous banners.
add
public synchronized void add(int col,
int x,
int y,
boolean capital)
- Use this method to add another banner in a given colour and at a given position.
Last argument indicates whether this particular banner should be twice the normal size.
add
public synchronized void add(int col,
int x,
int y)
- Alternative add(). Calls the other add with last argument set to FALSE.
run
public void run()
- Mainloop of this thread.
- Overrides:
- run in class Thread
paint
public void paint()
- Draw all the animated banners added to this Banner object.