Solid grid lines

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
BH

Solid grid lines

Post by BH » Tue Sep 03, 2002 3:27 pm

Hi

Is it possible to have solid grid lines, instead of the dotted grid lines that we currently have. One of our clients wants solid grid lines.

I have looked at the methods for VerticalNumberAxis and HorizontalDateAxis but the only one that looks like it could be the one to use is setGridStroke. Is this the one to use? How do you use it? What is a "stroke"?

Many thanks
Belinda

David Gilbert

Re: Solid grid lines

Post by David Gilbert » Tue Sep 03, 2002 3:53 pm

Yes, setGridStroke(...) is the correct method. 'Stroke' is the term used in Java2D for the way lines are drawn...you can use any implementation of the java.awt.Stroke interface. java.awt.BasicStroke is the only one I've used, it allows you to specify the line thickness and also the dot pattern (if any).

Regards,

DG.

Locked