Package org.jfree.chart.demo
Class CircleDrawer
java.lang.Object
org.jfree.chart.demo.CircleDrawer
- All Implemented Interfaces:
org.jfree.ui.Drawable
public class CircleDrawer extends Object implements org.jfree.ui.Drawable
An implementation of the
Drawable interface, to illustrate the use of
the XYDrawableAnnotation class.-
Constructor Summary
Constructors Constructor Description CircleDrawer(Paint outlinePaint, Stroke outlineStroke, Paint fillPaint)Creates a new instance. -
Method Summary
Modifier and Type Method Description voiddraw(Graphics2D g2, Rectangle2D area)Draws the circle.
-
Constructor Details
-
CircleDrawer
Creates a new instance.- Parameters:
outlinePaint- the outline paint.outlineStroke- the outline stroke.fillPaint- the fill paint.
-
-
Method Details
-
draw
Draws the circle.- Specified by:
drawin interfaceorg.jfree.ui.Drawable- Parameters:
g2- the graphics device.area- the area in which to draw.
-