Outline paint color for a circle in ScatterPlotDemo

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
snkm007
Posts: 24
Joined: Tue Oct 16, 2007 1:52 pm

Outline paint color for a circle in ScatterPlotDemo

Post by snkm007 » Tue Nov 06, 2007 10:53 am

Hi All,

You have any idea on getting an outline (paint sequence - color) for the circle in the ScatterPlotDemo chart?
I need to get a circle with black outline and with white color painted inside...

Does that have something to do with createStrokedShape() in Stroke interface? Should I implement createStrokedShape() in a custom class?

Thanks,
SNK

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Re: Outline paint color for a circle in ScatterPlotDemo

Post by david.gilbert » Tue Nov 06, 2007 12:26 pm

snkm007 wrote:Does that have something to do with createStrokedShape() in Stroke interface? Should I implement createStrokedShape() in a custom class?
No. Just set the fill paint and outline paint values for the series (in the XYLineAndShapeRenderer), and check the setUseFillPaint() and setOutlinePaint() flags.
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

Locked