What is a CircleDrawer? Where can I find it?

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
pl477150
Posts: 12
Joined: Tue Oct 04, 2016 6:20 pm
antibot: No, of course not.

What is a CircleDrawer? Where can I find it?

Post by pl477150 » Fri Apr 07, 2017 3:52 pm

Hello,

I am trying to use this tutorial: http://www.java2s.com/Code/Java/Chart/J ... rDemo1.htm

The code references a class called CircleDrawer. I cannot get this to work. Is it part of JFreeChart, JCommon, or Java? Or maybe this is something people are writing themselves? I see this class mentioned in a ton of the annotation code out there. I have included all of the same import statements in my code that are used in this tutorial.

I did also find this code: http://kickjava.com/src/org/jfree/chart ... r.java.htm that looks like it was written by David Gilbert for this class. How can I use it? Maybe my eclipse is on the fritz? Eclipse has no idea what this is.

Or do I just copy paste this into my own code? That doesn't seem right.

paradoxoff
Posts: 1634
Joined: Sat Feb 17, 2007 1:51 pm

Re: What is a CircleDrawer? Where can I find it?

Post by paradoxoff » Sun Apr 09, 2017 8:18 pm

Just copy-paste the code into your project. As mentioned in the thread that you have linked, the CircelDrawer is nothing more than a simple implementation of the Drawable interface and was written to have a simple example for the XYDrawableAnnotation.

Locked