Search found 6 matches

by smahamkl
Fri Jul 10, 2009 7:56 pm
Forum: JFreeChart
Topic: Need help rescale annotation...
Replies: 8
Views: 5843

Re: Need help rescale annotation...

Thanks for your reply paradoxoff. The problem with the XYShapeAnnotation is that if I am passing the same Arc2D.Double to the XYShapeAnnotation, I can only see a couple of lines on either side of the center point on the chart and nothing else. That was the reason why I went on to create my own annot...
by smahamkl
Wed Jul 08, 2009 7:00 pm
Forum: JFreeChart
Topic: Need help rescale annotation...
Replies: 8
Views: 5843

Re: Need help rescale annotation...

Hi,
Thanks for your reply. Can you provide some details of what you were suggesting? To rescale it properly, do I have override onzoom event or so of the chartpanel? If possible can you provide me with a sample or point me to the similar class in JFreeChart source.

thanks
SM
by smahamkl
Wed Jul 08, 2009 12:49 am
Forum: JFreeChart
Topic: Need help rescale annotation...
Replies: 8
Views: 5843

Re: Need help rescale annotation...

My mistake sorry...here's the source code for my custom annotation... import org.jfree.chart.annotations.AbstractXYAnnotation; import org.jfree.chart.annotations.XYAnnotation; import org.jfree.ui.RectangleEdge; import org.jfree.chart.plot.PlotOrientation; import java.awt.Graphics2D; import java.awt....
by smahamkl
Mon Jul 06, 2009 11:50 pm
Forum: JFreeChart
Topic: Need help rescale annotation...
Replies: 8
Views: 5843

Need help rescale annotation...

Hi, I am trying to create a small stock chart tool using JFreeChart in which I am using the annotations capabilities that can be used to draw a Line, Text or other shapes on the chart. Also the great thing about these annotations are that they are rescaled appropriately when the chart is mouse zoome...
by smahamkl
Fri Jul 03, 2009 3:24 pm
Forum: JFreeChart - Stockmarket
Topic: Custom Annotation Rescale..
Replies: 2
Views: 7583

Re: Custom Annotation Rescale..

I have tried it but the shape is not being rendered properly.
by smahamkl
Fri Jul 03, 2009 12:35 am
Forum: JFreeChart - Stockmarket
Topic: Custom Annotation Rescale..
Replies: 2
Views: 7583

Custom Annotation Rescale..

Hi, I am trying to create a small stock chart tool using JFreeChart in which I am using the annotations capabilities that can be used to draw a Line, Text or other shapes on the chart. Also the great thing about these annotations are that they are rescaled appropriately when the chart is mouse zoome...