Search found 7 matches

by robdocmagic
Thu Mar 29, 2007 3:48 pm
Forum: JFreeChart
Topic: draw LegendTitle in JPanel
Replies: 3
Views: 4731

I think I got it.. it works, not sure if its right.. class LegendPanel extends JPanel { private LegendTitle t = null; public LegendPanel(LegendTitle inLegendTitle) { t = inLegendTitle; } public void paintComponent(Graphics gr) { super.paintComponent(gr); Graphics2D g2 = (Graphics2D) gr; Rectangle2D ...
by robdocmagic
Thu Mar 29, 2007 3:24 pm
Forum: JFreeChart
Topic: draw LegendTitle in JPanel
Replies: 3
Views: 4731

Did you ever get a chance to solve your issue with the drift? Is so, would you be so kind to post the JPanel code?
by robdocmagic
Thu Mar 29, 2007 1:47 pm
Forum: JFreeChart
Topic: Exctracting and showing only Legend
Replies: 5
Views: 9287

Hi David,

Would you be so kind to write a short code snippet how to draw the legend on in a separate JPanel. I need to do this exact thing as well.

Thanks!

Edited to add: or if anyone else has accomplished this please post a snippet.

-Rob
by robdocmagic
Mon Sep 18, 2006 2:34 am
Forum: JFreeChart
Topic: Can legend labels be written in two lines
Replies: 2
Views: 4189

I just logged on to these forums to look for the same answer. If you do find an answer (that is not posted) could you please post.

Thanks!

-Rob
by robdocmagic
Thu May 18, 2006 12:47 pm
Forum: JFreeChart
Topic: Auto Locking only to first series in dataset
Replies: 1
Views: 2638

Auto Locking only to first series in dataset

Hi, I have one dataset with 3 series in it. The first series is data, the second is a moving average, and the 3rd is another set I need. When the user clicks on the chart, it will auto lock to the closest data point for any of the series. I would like it to auto lock only to a data point in the firs...
by robdocmagic
Wed May 17, 2006 4:39 pm
Forum: JFreeChart
Topic: Manually Selecting Data Point/Cross Hairs
Replies: 1
Views: 2811

Hi, I think I am onto something but it does not seem to work (based on samples and looking at the source): Rectangle2D dataArea = chartPanel.getChartRenderingInfo().getPlotInfo().getDataArea(); double x = dateAxis.dateToJava2D(new Date(/* a date value on the domain axis*/), dataArea, plot.getDomainA...
by robdocmagic
Wed May 17, 2006 12:51 pm
Forum: JFreeChart
Topic: Manually Selecting Data Point/Cross Hairs
Replies: 1
Views: 2811

Manually Selecting Data Point/Cross Hairs

Hi, I have a chart that has a bunch of monthly data in it. I have added a ChartMouseListener so that when a user selects a point on a chart (and the crosshairs appear) I can determine the value, for example: 1/1/2001 with a value of 2.0. Then when the user saves I store this selection. However, when...