|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jcontrol.ui.vole.Component jcontrol.ui.vole.Container jcontrol.ui.vole.AnimationContainer
public class AnimationContainer
The AnimationContainer
is a Container
with special functions for Components
which implement
the Animateable
interface. AnimationContainer
holds methods to start and stop the animation of animateable components
as well as methods to influence some animation settings. The animation
is done by a Thread
running in the background. This thread
is automatically managed by the AnimationContainer
and
needs no further assistance by the application.
(c) Copyright 2003-2007 DOMOLOGIC GmbH
Field Summary | |
---|---|
protected boolean |
animate
Indicate whether animation shall be done |
protected boolean |
animationRunning
Indicate whether the animation is currently running |
Fields inherited from class jcontrol.ui.vole.Container |
---|
children, hasFocus, TRANSFER_BACKWARD, TRANSFER_FORWARD |
Fields inherited from class jcontrol.ui.vole.Component |
---|
eventQueue, focusOwner, font, g, height, listener, parent, visible, width, x, y |
Constructor Summary | |
---|---|
AnimationContainer()
Creates a new empty AnimationContainer . |
|
AnimationContainer(int x,
int y,
int width,
int height)
Create a new Container with the
specified dimensions. |
Method Summary | |
---|---|
void |
add(Component component)
Adds a child component to this container. |
void |
remove(Component component)
Removes a child component from the container. |
void |
removeAll()
Remove all child components from the container. |
void |
run()
The run method of the animation thread. |
void |
setAnimation(boolean animate)
Activate or deactivate the animation of animateable components. |
void |
setInterval(int interval)
Set the interval between two animation steps. |
Methods inherited from class jcontrol.ui.vole.Container |
---|
getFocus, isCovered, onKeyEvent, paint, remove, removeFocus, requestFocus, setFocus, setFont, setGraphics, setRadioButton, setVisible, transferFocus, transferFocus |
Methods inherited from class jcontrol.ui.vole.Component |
---|
getBounds, getParent, isVisible, onActionEvent, setBounds, setParent, transferFocus, validate |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, notifyAll, toString, wait |
Field Detail |
---|
protected boolean animate
protected boolean animationRunning
Constructor Detail |
---|
public AnimationContainer()
AnimationContainer
.
When components which implement the Animateable
interface are added, their animate()
-method
is called continuously.
public AnimationContainer(int x, int y, int width, int height)
Container
with the
specified dimensions.
x
- The x-coordinate of the container.y
- The y-coordinate of the container.width
- The width of the container.height
- The height of the container.Method Detail |
---|
public void add(Component component)
add
in class Container
public void remove(Component component)
remove
in class Container
public void removeAll()
removeAll
in class Container
public void setInterval(int interval)
interval
- The new animation interval in milliseconds.public void setAnimation(boolean animate)
onoff
- Turn the animation "on" (true) or "off" (false).public void run()
run
in interface Runnable
Thread.run()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |