com.jgoodies.animation.components
Class CircleComponent
JComponentcom.jgoodies.animation.components.CircleComponent
public final class CircleComponent
extends JComponent
A Swing component that paints a circle with a given center, radius and color.
CircleComponent
public CircleComponent()
Constructs a CircleComponent.
paintComponent
public void paintComponent(Graphics g)
Paints the circle with anti-aliasing enabled.
g - the Graphics object to render on
setBounds
public void setBounds(int x,
int y,
int w,
int h) Sets the bounds and center point.
x - the horizontal originy - the vertical originw - the width, the horizontal extenth - the height, the vertical extent
setCenter
public void setCenter(Point p)
setColor
public void setColor(Color color)
setRadius
public void setRadius(int radius)
Copyright © 2001-2006 JGoodies Karsten Lentzsch. All Rights Reserved.