edu.ucla.stat.SOCR.chart.gui
Class CircleDrawer

java.lang.Object
  extended by edu.ucla.stat.SOCR.chart.gui.CircleDrawer
All Implemented Interfaces:
org.jfree.ui.Drawable

public class CircleDrawer
extends java.lang.Object
implements org.jfree.ui.Drawable

An implementation of the Drawable interface, to illustrate the use of the org.jfree.chart.annotations.XYDrawableAnnotation class.


Constructor Summary
CircleDrawer(java.awt.Paint outlinePaint, java.awt.Stroke outlineStroke, java.awt.Paint fillPaint)
          Creates a new instance.
 
Method Summary
 void draw(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D area)
          Draws the circle.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CircleDrawer

public CircleDrawer(java.awt.Paint outlinePaint,
                    java.awt.Stroke outlineStroke,
                    java.awt.Paint fillPaint)
Creates a new instance.

Parameters:
outlinePaint - the outline paint.
outlineStroke - the outline stroke.
fillPaint - the fill paint.
Method Detail

draw

public void draw(java.awt.Graphics2D g2,
                 java.awt.geom.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.