public final class FanRenderer extends Object implements AnimationRenderer
FanAnimation,
FanComponent| Constructor and Description |
|---|
FanRenderer(com.jgoodies.animation.renderer.FanRenderer.Triangle[] triangles) |
FanRenderer(int triangleCount,
Color baseColor) |
| Modifier and Type | Method and Description |
|---|---|
static com.jgoodies.animation.renderer.FanRenderer.Triangle[] |
createSectors(int count,
Color baseColor) |
Point2D |
getOrigin() |
double |
getRotation() |
void |
render(Graphics2D g2,
int width,
int height)
Renders the animation on the specified graphics object
using the given width and height.
|
void |
setOrigin(Point2D origin) |
void |
setRotation(double rotation) |
public FanRenderer(com.jgoodies.animation.renderer.FanRenderer.Triangle[] triangles)
public FanRenderer(int triangleCount,
Color baseColor)
public static com.jgoodies.animation.renderer.FanRenderer.Triangle[] createSectors(int count,
Color baseColor)
public Point2D getOrigin()
public void setOrigin(Point2D origin)
public double getRotation()
public void setRotation(double rotation)
public void render(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 © 2015 JGoodies Software GmbH. All rights reserved.