standup.clouds
Class AnimatorCloudButtonRotateRight

java.lang.Object
  extended by standup.clouds.AnimatorCloudButton
      extended by standup.clouds.AnimatorCloudButtonRotateRight

public class AnimatorCloudButtonRotateRight
extends AnimatorCloudButton

Animates a CloudButton to rotate 360 degrees to the right, eventually returning to its starting position.

Author:
Ruli Manurung

Field Summary
(package private)  Point centre
           
(package private)  double height
           
(package private)  Point ring
           
(package private)  Dimension ringSize
           
(package private)  float rotateAngle
           
(package private)  float startAngle
           
(package private)  double width
           
 
Fields inherited from class standup.clouds.AnimatorCloudButton
lineMode, steps, stepsOffset
 
Constructor Summary
AnimatorCloudButtonRotateRight(int _s, int _o, Point _centre, Dimension ellipsedimension, float _startAngle, float _rotateAngle, Dimension _ringSize, CloudButton.LineMode lm)
           
 
Method Summary
(package private)  STANDUPShapeCloudButton getInitialShape(CloudButton thing, PanelCloudButtonMenu bb, ShapeDetails shd)
          This returns the initial 'shape' of the CloudButton to be used by this animation.
(package private)  void update(int realFrame, CloudButton bubble)
          A subclass of AnimatorCloudButton must implement this method.
 
Methods inherited from class standup.clouds.AnimatorCloudButton
getFrame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

startAngle

final float startAngle

rotateAngle

final float rotateAngle

width

final double width

height

final double height

centre

final Point centre

ring

final Point ring

ringSize

final Dimension ringSize
Constructor Detail

AnimatorCloudButtonRotateRight

AnimatorCloudButtonRotateRight(int _s,
                               int _o,
                               Point _centre,
                               Dimension ellipsedimension,
                               float _startAngle,
                               float _rotateAngle,
                               Dimension _ringSize,
                               CloudButton.LineMode lm)
Parameters:
_s - number of steps in animation
_o - animation offset
_centre - ellipse centre location
ellipsedimension - ellipse dimension
_startAngle - start angle
_rotateAngle - how many degrees the rotation should be for
_ringSize -
lm -
Method Detail

update

void update(int realFrame,
            CloudButton bubble)
Description copied from class: AnimatorCloudButton
A subclass of AnimatorCloudButton must implement this method. It is used to update the given CloudButton's location and size given the 'real' frame.

Specified by:
update in class AnimatorCloudButton
bubble - the CloudButton being animated

getInitialShape

STANDUPShapeCloudButton getInitialShape(CloudButton thing,
                                        PanelCloudButtonMenu bb,
                                        ShapeDetails shd)
Description copied from class: AnimatorCloudButton
This returns the initial 'shape' of the CloudButton to be used by this animation.

Specified by:
getInitialShape in class AnimatorCloudButton
Returns: