|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object standup.clouds.AnimatorCloudButton
public abstract class AnimatorCloudButton
An instance of AnimatorCloudButton
defines a type of animation that
can be applied to a CloudButton
. When instantiated, the number of
frames (and optionally, the frame number at which point animation should
start) is registered. It is then given a chance to update the size and
location of a CloudButton
using the update(int, CloudButton)
method.
Field Summary | |
---|---|
(package private) CloudButton.LineMode |
lineMode
Determines whether the line is trailing, leading, or invisible. |
(package private) int |
steps
The number of steps the animation should take place over. |
(package private) int |
stepsOffset
The n-th frame when the animation should actually start. |
Constructor Summary | |
---|---|
AnimatorCloudButton(int _s,
int _o,
CloudButton.LineMode _lm)
Default constructor for an AnimatorCloudButton |
Method Summary | |
---|---|
protected int |
getFrame(int realFrame)
A helper method that computes the 'animation frame', i.e. |
(package private) abstract STANDUPShapeCloudButton |
getInitialShape(CloudButton thing,
PanelCloudButtonMenu bb,
ShapeDetails shd)
This returns the initial 'shape' of the CloudButton to be used by this animation. |
(package private) abstract void |
update(int realFrame,
CloudButton cloudButton)
A subclass of AnimatorCloudButton must implement this method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
final int steps
final int stepsOffset
final CloudButton.LineMode lineMode
Constructor Detail |
---|
AnimatorCloudButton(int _s, int _o, CloudButton.LineMode _lm)
AnimatorCloudButton
_s
- the number of steps/frames the animation should last_o
- the step/frame number at which point the animation should properly commence_lm
- the LineMode used in this animationMethod Detail |
---|
protected int getFrame(int realFrame)
CloudButton
's size and location, given a 'real frame'. The difference between the two is the offset, i.e. the number of frames at the beginning when animation hasn't started yet.
realFrame
- the 'real' frame number
abstract void update(int realFrame, CloudButton cloudButton)
AnimatorCloudButton
must implement this method. It is used to update the given CloudButton
's location and size given the 'real' frame.
realFrame
- cloudButton
- the CloudButton
being animatedabstract STANDUPShapeCloudButton getInitialShape(CloudButton thing, PanelCloudButtonMenu bb, ShapeDetails shd)
CloudButton
to be used by this animation.
thing
- bb
- shd
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |