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 Details

    • CircleDrawer

      public CircleDrawer​(Paint outlinePaint, Stroke outlineStroke, Paint fillPaint)
      Creates a new instance.
      Parameters:
      outlinePaint - the outline paint.
      outlineStroke - the outline stroke.
      fillPaint - the fill paint.
  • Method Details

    • draw

      public void draw​(Graphics2D g2, Rectangle2D area)
      Draws the circle.
      Specified by:
      draw in interface org.jfree.ui.Drawable
      Parameters:
      g2 - the graphics device.
      area - the area in which to draw.