|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ks.client.gamefactory.skin.Psychadelic
Manages the responsibility of filling rectangles that need refreshing into a specific graphics context object using a particular color.
Default Skin for a container; simply copies a known color everywhere.
Field Summary | |
protected Container |
container
Target container. |
protected int |
delay
Delay between color changing. |
protected java.awt.Color |
myColor
My color to show. |
protected java.awt.Graphics |
myGraphics
Target graphics object. |
protected java.lang.Thread |
thread
The thread to oversee the scrolling. |
protected boolean |
visible
Are we visible (assume we are initially visible). |
Constructor Summary | |
Psychadelic(Container cont,
java.awt.Color c)
Psychadelic constructor comment. |
Method Summary | |
boolean |
isVisible()
Detect if we are visible. |
protected int |
randomOffset(int width)
Returns a number from (-width/2) .. |
void |
run()
Thread will operate by pausing n milliseconds and then checking if container is in a drag. |
void |
setDelay(int newDelay)
Set the time delay between image scrolling. |
void |
setVisible(boolean visible)
Visitor's chance to release resources once done. |
void |
visit(RectangleHierarchy node)
Copy the appropriate image as based by this node's value. |
void |
visit(RectangleHierarchy node,
java.awt.Rectangle clip)
Copy the appropriate image as based by this node's value. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.awt.Color myColor
protected java.lang.Thread thread
protected int delay
protected boolean visible
protected java.awt.Graphics myGraphics
protected Container container
Constructor Detail |
public Psychadelic(Container cont, java.awt.Color c)
c
- java.awt.ColorMethod Detail |
public boolean isVisible()
protected int randomOffset(int width)
public void run()
run
in interface java.lang.Runnable
public void setDelay(int newDelay)
newDelay
- intpublic void setVisible(boolean visible)
visible
- booleanpublic void visit(RectangleHierarchy node)
public void visit(RectangleHierarchy node, java.awt.Rectangle clip)
clip is unaffected by this method.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |