public final class FanRenderer extends java.lang.Object implements AnimationRenderer
FanAnimation,
FanComponent| Constructor and Description |
|---|
FanRenderer(com.jgoodies.animation.renderer.FanRenderer.Triangle[] triangles) |
FanRenderer(int triangleCount,
java.awt.Color baseColor) |
| Modifier and Type | Method and Description |
|---|---|
static com.jgoodies.animation.renderer.FanRenderer.Triangle[] |
createSectors(int count,
java.awt.Color baseColor) |
java.awt.geom.Point2D |
getOrigin() |
double |
getRotation() |
void |
render(java.awt.Graphics2D g2,
int width,
int height)
Renders the animation on the specified graphics object
using the given width and height.
|
void |
setOrigin(java.awt.geom.Point2D origin) |
void |
setRotation(double rotation) |
public FanRenderer(com.jgoodies.animation.renderer.FanRenderer.Triangle[] triangles)
public FanRenderer(int triangleCount,
java.awt.Color baseColor)
public static com.jgoodies.animation.renderer.FanRenderer.Triangle[] createSectors(int count,
java.awt.Color baseColor)
public java.awt.geom.Point2D getOrigin()
public void setOrigin(java.awt.geom.Point2D origin)
public double getRotation()
public void setRotation(double rotation)
public void render(java.awt.Graphics2D g2,
int width,
int height)
AnimationRendererrender in interface AnimationRendererg2 - the graphics to render onwidth - the used width of the render surfaceheight - the used height of the render surfaceCopyright © 2001-2011 JGoodies Karsten Lentzsch. All Rights Reserved.