|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.lang.Thread
|
+--DE.purple_sunshine.bigbro.SuspendableThread
|
+--DE.purple_sunshine.bigbro.Smily
Gets the locations of the Persons and moves their pixels so that they form a Smily.
| Field Summary | |
static java.awt.Dimension |
absoluteSize
|
static int[][][] |
absoluteSmily
The positions of the points of the smily. |
static long |
COLORREPEATTIME
|
static long |
MAXKEEPTIME
|
static long |
MINKEEPTIME
|
static long |
PIXELMOVETIME
|
static int |
X
|
static int |
Y
|
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
Smily(SpyCanvas canvas,
java.util.Vector persons,
java.awt.Rectangle bounds)
Constructs a new Smily. |
|
| Method Summary | |
void |
paintInto(java.awt.Graphics g)
|
void |
run()
Moves points from each person towards their correct positions within the Smily, keeps it for a while and does some color animation, and then moves everything to its initial state. |
void |
setBounds(java.awt.Rectangle bounds)
|
| Methods inherited from class DE.purple_sunshine.bigbro.SuspendableThread |
finish, isFinished, resume_, suspend_ |
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final long PIXELMOVETIME
public static final long MINKEEPTIME
public static final long MAXKEEPTIME
public static final long COLORREPEATTIME
public static final int X
public static final int Y
public static final java.awt.Dimension absoluteSize
public static final int[][][] absoluteSmily
| Constructor Detail |
public Smily(SpyCanvas canvas,
java.util.Vector persons,
java.awt.Rectangle bounds)
canvas - the SpyCanvas the smily should be painted intopersons - the Persons of which the smily points get the colorsbounds - the location of the smily within canvas| Method Detail |
public void setBounds(java.awt.Rectangle bounds)
public void paintInto(java.awt.Graphics g)
public void run()
run in class java.lang.Thread
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||