com.jgoodies.animation.components
Class FanComponent
JComponent
com.jgoodies.animation.components.FanComponent
public final class FanComponent
extends JComponent
A Swing component that paints a set of triangles as a fan.
FanComponent(int triangleCount, Color baseColor) - Constructs a
FanComponent for the specified
number of triangles and base color.
|
FanComponent
public FanComponent(int triangleCount,
Color baseColor)
Constructs a FanComponent
for the specified
number of triangles and base color.
triangleCount
- the number of triangles to be displayedbaseColor
- the base color used to build the translucent
triangle colors from
getOrigin
public Point2D getOrigin()
getRotation
public double getRotation()
paintComponent
public void paintComponent(Graphics g)
Delegates painting to the fan renderer. Switches on anti-aliasing
and the high quality mode before invoking the renderer.
g
- the Graphics object to render on
setOrigin
public void setOrigin(Point2D origin)
Sets a new origin of the fan.
origin
- the origin to be set
setRotation
public void setRotation(double rotation)
Sets a new rotation.
rotation
- the rotation to be set
Copyright © 2001-2006 JGoodies Karsten Lentzsch. All Rights Reserved.