Algorithm to draw a dotted line that joins two shapes!

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

Algorithm to draw a dotted line that joins two shapes!

Post by snkm007 » Wed Nov 14, 2007 9:19 am

Hi,

I need to draw a dotted line to join two shapes - triangle and circle that are rendered in the chart with two different (CategoryDataSet) datasets.

Do I need to draw a line chart on top of the original plot or I need to use my own algorithm? ....
Any JfreeChart API can help in this regard?

Any pointers here will be greatly appreciated.

Thanks,
SNK

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

Post by david.gilbert » Wed Nov 14, 2007 11:19 am

Perhaps you can use the CategoryLineAnnotation class?
David Gilbert
JFreeChart Project Leader

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

snkm007
Posts: 24
Joined: Tue Oct 16, 2007 1:52 pm

Post by snkm007 » Wed Nov 14, 2007 1:38 pm

Thanks. That helps. Can I use that to draw a Vertical Annotation, say, for intsance, to draw an annotation to represent the current date when the domain axis(X-axis) represents DateAxis?

Thanks,
SNK

Locked