Logo Search packages:      
Sourcecode: libjgoodies-animation-java version File versions  Download package

com::jgoodies::animation::renderer::FanRenderer Class Reference

Inheritance diagram for com::jgoodies::animation::renderer::FanRenderer:

com::jgoodies::animation::AnimationRenderer

List of all members.


Detailed Description

Paints two colored and often translucent fans that can be rotated.

Author:
Karsten Lentzsch
Version:
Revision
1.1

See also:
com.jgoodies.animation.animations.FanAnimation

com.jgoodies.animation.components.FanComponent

Definition at line 52 of file FanRenderer.java.


Public Member Functions

 FanRenderer (int triangleCount, Color baseColor)
 FanRenderer (Triangle[] triangles)
Point2D getOrigin ()
double getRotation ()
void render (Graphics2D g2, int width, int height)
void setOrigin (Point2D origin)
void setRotation (double rotation)

Static Public Member Functions

static Triangle[] createSectors (int count, Color baseColor)

Private Member Functions

Point2D getDefaultOrigin (int width, int height)

Static Private Member Functions

static Color nextColor (Color baseColor)

Private Attributes

Point2D origin
double rotation
final Triangle[] triangles

Static Private Attributes

static final Random random = new Random(System.currentTimeMillis())

Classes

class  Triangle

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index