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

java.lang.Object
  extended by edu.ucla.stat.SOCR.chart.gui.CircleDrawer

public class CircleDrawer
extends java.lang.Object

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.

Parameters:
g2 - the graphics device.
area - the area in which to draw.