Search found 15 matches
- Fri May 19, 2017 4:14 pm
- Forum: JFreeChart
- Topic: ChartEntity on Right Mouse Release (Button 3)
- Replies: 5
- Views: 5204
Re: ChartEntity on Right Mouse Release (Button 3) - My Solut
Here's my solution. I created a new MouseAdaptor that will process a mouseClicked event prior to doing a popup. addMouseListener(new MouseAdapter() { @Override public void mousePressed(MouseEvent me) { if (me.isPopupTrigger()) chartPanel.mouseClicked(me); } });
- Fri May 19, 2017 3:07 pm
- Forum: JFreeChart
- Topic: ChartEntity on Right Mouse Release (Button 3)
- Replies: 5
- Views: 5204
Re: ChartEntity on Right Mouse Release (Button 3)
I'm kinda of doing that already, but I don't know how to get a ChartEntity in the doPop(MouseEvent e)
method. As far as I know, I'd need access to ChartPanel's info object to get the EntityCollection.
Thus, the need to override ChartPanel.
method. As far as I know, I'd need access to ChartPanel's info object to get the EntityCollection.
Thus, the need to override ChartPanel.
- Fri May 19, 2017 2:39 pm
- Forum: JFreeChart
- Topic: ChartEntity on Right Mouse Release (Button 3)
- Replies: 5
- Views: 5204
Re: ChartEntity on Right Mouse Release (Button 3)
Yes, I know. I'm trying get a ChartEntity for a popup menu service routine. The strategy was to create a ChartMouseListener to setup the ChartEntity and then run the other ChartMouseListeners, which I thought would do the popup. You have pointed me to the root of the problem. When there is popup con...
- Thu May 18, 2017 11:02 pm
- Forum: JFreeChart
- Topic: ChartEntity on Right Mouse Release (Button 3)
- Replies: 5
- Views: 5204
ChartEntity on Right Mouse Release (Button 3)
I can get a ChartEntity from the ChartMouseListener.chartMouseClicked but it only works on the left mouse click. In testing, I can catch both mouse buttons (left and right) with a MouseListener, but not sure how the the a ChartEntity with the information available here. Any pointers would appreciate...
- Fri Mar 06, 2015 7:21 pm
- Forum: JFreeChart
- Topic: ChartViewer layout management
- Replies: 1
- Views: 2476
Re: ChartViewer layout management
I solved this issue. The problem is because teh width/heightProperty of the ChartViewer are of type "ReadOnlyDoubleProperty". In the ChartCanvas, they are of type "DoubleProperty". the following solves the problem: viewer.prefWidthProperty().bind(this.widthProperty()); viewer.prefHeightProperty().bi...
- Fri Mar 06, 2015 7:21 pm
- Forum: JFreeChart
- Topic: ChartViewer layout management
- Replies: 1
- Views: 2476
ChartViewer layout management
I have a BarChart that is based on the fx control ChartCanvas. I have been supplied a pane object to put it in. This worked well and I used the following code to "layout" the chart in the pane: canvas.widthProperty().bind(this.widthProperty()); canvas.heightProperty().bind(this.heightProperty()); I'...
- Tue Mar 03, 2015 8:31 pm
- Forum: JFreeChart
- Topic: JFreeChart 1.0.19
- Replies: 14
- Views: 43800
Re: JFreeChart 1.0.19
I noticed the download jfreechart1.0.19.jar does not have the org.jfree.chart.fx namespace in it. Is this a mistake? Where can I get a copy that has the fx support?
- Tue Dec 22, 2009 11:38 pm
- Forum: JFreeChart
- Topic: Orson jPieChart popup menu vs API
- Replies: 0
- Views: 1541
Orson jPieChart popup menu vs API
Hi,
I'm trying to use the Orson jPieChart. I have noticed that the default popup seems to override
the API popup menu. How do I restore the api version? I need to have the zoom and print capability?
Thanks in Advance,
David
I'm trying to use the Orson jPieChart. I have noticed that the default popup seems to override
the API popup menu. How do I restore the api version? I need to have the zoom and print capability?
Thanks in Advance,
David
- Wed Oct 10, 2007 2:38 pm
- Forum: JFreeChart
- Topic: getSeriesName
- Replies: 2
- Views: 2460
getSeriesName
Actually, the replacement seems to be getSeriesKey.
- Fri Oct 05, 2007 4:52 pm
- Forum: JFreeChart
- Topic: positioning an added component (JCheckBox) on a ChartPanel
- Replies: 2
- Views: 3400
positioning an added component (JCheckBox) on a ChartPanel
I am adding a checkbox to a ChartPanel. It gets added but it is positioned over the title of the chart. I see tha the ChartPanel is using a flowlayout. I've tried adding the component to the layout to no avail. Any hints to positiion the checkbox (upper right) would be appreciated.
- Thu Sep 04, 2003 3:22 pm
- Forum: JFreeChart
- Topic: 0.9.11 context menu zoom does not properly set zoom origin
- Replies: 0
- Views: 1522
0.9.11 context menu zoom does not properly set zoom origin
Hi, I just updated from 0.9.8 to 0.9.11. I noticed that the context sensitive zoom functionality in the linechart and xyplot charts did not accept the current cursor position as the center of the zoom as in 0.9.8. I have back tracked to 0.9.8 until this is addressed. Just wanted to report the issue....
- Thu Sep 04, 2003 3:16 pm
- Forum: JFreeChart
- Topic: convenience method for TimeSeriesCollection
- Replies: 1
- Views: 1909
convenience method for TimeSeriesCollection
I would suggest a convenience method for the TimeSeriesCollection similiar to: TimeSeries getSeriesByName(TimeSeriesCollection tsCollection, String name){ int items = tsCollection.getSeriesCount(); while( items > 0 ){ int indx = items - 1; // zero offset if (tsCollection.getSeriesName(indx).equals(n...
- Fri Jun 06, 2003 9:44 pm
- Forum: JFreeChart
- Topic: 0.9.4 --> 0.9.6
- Replies: 5
- Views: 3432
preference agreed
I just joined and started to use the product. Looks nice.
I had the same problem with the missing constructor, trying to follow some examples. I got around it by using the base constructor and the
cooresponding "addValue" methods.
I agree the constructor listed above would be a great conveniance.
I had the same problem with the missing constructor, trying to follow some examples. I got around it by using the base constructor and the
cooresponding "addValue" methods.
I agree the constructor listed above would be a great conveniance.
- Fri Jun 06, 2003 9:14 pm
- Forum: JFreeChart
- Topic: Newbie question for Jfreechart.
- Replies: 2
- Views: 2857
Newbie Q - should have been "How do I print a chart&quo
Put the chart in a ChartPanel. The ChartPanel object has a popup menu that will allow printing.
Good Luck
David
Good Luck
David
- Fri Jun 06, 2003 12:50 am
- Forum: JFreeChart
- Topic: Newbie question for Jfreechart.
- Replies: 2
- Views: 2857
Newbie question for Jfreechart.
I need to implement barchart reports in a java applicaion. I'm considering using JFreeChart. The demo graphics look good. I will also require the printout of any charts created. I saw a blurb about printing. How will is it supported? There is no print support in the demos that I can see. dbritton@we...