|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
com.croftsoft.core.animation.AnimatedComponent
com.croftsoft.core.animation.component.BufferedAnimatedComponent
public class BufferedAnimatedComponent
Triple-buffered animated Swing component.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
---|
Fields inherited from class com.croftsoft.core.animation.AnimatedComponent |
---|
ANIMATION_THREAD_NAME, animationRunner, animationThread, componentAnimator, loopGovernor, repaintCollector, stopRequested |
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
BufferedAnimatedComponent(ComponentAnimator componentAnimator)
Deprecated. Convenience constructor. |
|
BufferedAnimatedComponent(ComponentAnimator componentAnimator,
AnimationFactory animationFactory)
Deprecated. Convenience constructor. |
|
BufferedAnimatedComponent(ComponentAnimator componentAnimator,
AnimationFactory animationFactory,
double frequency)
Deprecated. Convenience constructor. |
|
BufferedAnimatedComponent(ComponentAnimator componentAnimator,
double frequency)
Deprecated. Convenience constructor. |
|
BufferedAnimatedComponent(ComponentAnimator componentAnimator,
RepaintCollector repaintCollector,
LoopGovernor loopGovernor)
Deprecated. Main constructor. |
Method Summary | |
---|---|
protected void |
animate()
Deprecated. |
protected void |
animateOffscreen()
Deprecated. |
void |
init()
Deprecated. |
protected void |
loop()
Deprecated. |
void |
paintComponent(Graphics graphics)
Deprecated. |
Methods inherited from class com.croftsoft.core.animation.AnimatedComponent |
---|
destroy, repaint, repaint, repaint, repaint, repaint, setComponentAnimator, setLoopGovernor, setRepaintCollector, start, stop |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BufferedAnimatedComponent(ComponentAnimator componentAnimator, RepaintCollector repaintCollector, LoopGovernor loopGovernor)
public BufferedAnimatedComponent(ComponentAnimator componentAnimator, AnimationFactory animationFactory, double frequency)
frequency
- The targeted update frequency in loops per second.public BufferedAnimatedComponent(ComponentAnimator componentAnimator, AnimationFactory animationFactory)
public BufferedAnimatedComponent(ComponentAnimator componentAnimator, double frequency)
frequency
- The targeted update frequency in loops per second.public BufferedAnimatedComponent(ComponentAnimator componentAnimator)
Method Detail |
---|
public void init()
init
in interface Initializable
init
in class AnimatedComponent
public void paintComponent(Graphics graphics)
paintComponent
in class AnimatedComponent
protected void loop()
loop
in class AnimatedComponent
protected void animateOffscreen()
protected void animate()
animate
in class AnimatedComponent
|
CroftSoft Javadoc | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |