Search found 28 matches

by plusik
Tue Nov 01, 2016 2:46 pm
Forum: JFreeChart
Topic: How to use with JavaFX?
Replies: 5
Views: 8418

Re: How to use with JavaFX?

+1 for releasing new version
by plusik
Tue May 24, 2016 5:05 pm
Forum: JFreeChart
Topic: ChartViewer crashes JavaFX in case of multiple threads
Replies: 7
Views: 14397

Re: ChartViewer crashes JavaFX in case of multiple threads

+1 for adding the checks to JFreeChart if calls are made on JavaFX thread
by plusik
Fri Mar 04, 2016 4:04 am
Forum: JFreeChart
Topic: Mouse click handler for axes
Replies: 2
Views: 4107

Re: Mouse click handler for axes

I tried to implement the function myself.
See https://github.com/jfree/jfreechart/pull/6
by plusik
Fri Feb 26, 2016 5:59 am
Forum: JFreeChart
Topic: Printing JavaFX charts
Replies: 7
Views: 14469

Re: Printing JavaFX charts

OK, I found how to do it. The trick is that one JFreeChart can be added to both ChartViewer (JavaFX) and ChartPanel (Swing) at the same time. Printing via AWT using the following code creates a nice, sharp output: SwingUtilities.invokeLater(() -> { PrinterJob job = PrinterJob.getPrinterJob(); PageFo...
by plusik
Thu Feb 25, 2016 11:12 pm
Forum: JFreeChart
Topic: Printing JavaFX charts
Replies: 7
Views: 14469

Re: Printing JavaFX charts

Using AWT might be the best approach, until the printing support in JavaFX gets some improvements.

I am not sure, though, how to obtain the AWT Printable from the JavaFX ChartViewer.
by plusik
Thu Feb 25, 2016 10:49 pm
Forum: JFreeChart
Topic: Printing JavaFX charts
Replies: 7
Views: 14469

Re: Printing JavaFX charts

I tried that approach. The Scale transformation increases the size of the image, but not the resolution. The final image is very pixelated.
by plusik
Wed Feb 24, 2016 9:29 pm
Forum: JFreeChart
Topic: Printing JavaFX charts
Replies: 7
Views: 14469

Printing JavaFX charts

When ChartVIewer is printed using standard JavaFX printing tool PrinterJob.printPage(node), the resulting image is very poor (low resolution). In contrast, printing from the Swing JFreeChart is very sharp. The issue is probably related to printing the contents of a Canvas (see e.g., http://stackover...
by plusik
Wed Feb 24, 2016 5:45 pm
Forum: JFreeChart
Topic: Mouse click handler for axes
Replies: 2
Views: 4107

Mouse click handler for axes

Hi, I am using JFreeChart with XYPlot with a NumberAxis on both X and Y axes. Using the JavaFX ChartViewer, when I click on the Y axis it seems to do full zoom out (set auto range to both axes). Clicking on the X axis has no effect. AFAIK clicking on any axis had no effect in the Swing version. I th...
by plusik
Sun Feb 21, 2016 11:58 pm
Forum: JFreeChart
Topic: Zoom out
Replies: 1
Views: 3126

Zoom out

Hi David, Since you are now preparing the new version of JFreeChart, I have a suggestion for a minor improvement. Zooming with mouse is very intuitive with JFreeChart - just select the area and it zooms in immediately. However, I noticed many users struggle to find the way to zoom out - they do not ...
by plusik
Sun Feb 21, 2016 7:02 pm
Forum: JFreeChart
Topic: Getting a reference to ChartCanvas (JavaFX)
Replies: 11
Views: 10001

Re: Getting a reference to ChartCanvas (JavaFX)

If it becomes a Canvas extension, please keep the contextMenu property (as a JavaFX property), so the context menu can be defined it FXML.
by plusik
Thu Feb 18, 2016 5:35 pm
Forum: JFreeChart
Topic: Use of drawLine() vs drawPolyLine()
Replies: 2
Views: 4034

Re: Use of drawLine() vs drawPolyLine()

Amazing!
JFreeChart never stops surprising me :)
by plusik
Wed Feb 17, 2016 11:50 pm
Forum: JFreeChart
Topic: Use of drawLine() vs drawPolyLine()
Replies: 2
Views: 4034

Use of drawLine() vs drawPolyLine()

Hi, We noticed that if JFreeChart line chart is drawn into a vector device such as PDF, the plots are composed of many disconnected lines. This is ok for screen viewing, but when a vector graphics file (e.g., PDF or SVG) is produced, it makes subsequent downstream editing more difficult, because it ...
by plusik
Tue Feb 16, 2016 9:51 pm
Forum: JFreeChart
Topic: Getting a reference to ChartCanvas (JavaFX)
Replies: 11
Views: 10001

Re: Getting a reference to ChartCanvas (JavaFX)

I guess ChartViewer extending Control makes some sense, because Control is for components that the user interacts with, while Canvas is for plain drawing.
JFreeChart seems more like Control to me, because it has zooming, context menus, tooltips, etc.
by plusik
Tue Feb 16, 2016 1:37 pm
Forum: JFreeChart
Topic: Getting a reference to ChartCanvas (JavaFX)
Replies: 11
Views: 10001

Re: Getting a reference to ChartCanvas (JavaFX)

Why not remove ChartCanvas and put everything into ChartViewer, for the sake of backwards compatibility?
by plusik
Sun Feb 14, 2016 4:26 am
Forum: JFreeChart
Topic: Getting a reference to ChartCanvas (JavaFX)
Replies: 11
Views: 10001

Re: Getting a reference to ChartCanvas (JavaFX)

In a related comment, it seems there used to be an option to enable/disable domain/range axis mouse-wheel zooming, but that option is not present in the JavaFX ChartViewer. See this line: https://github.com/jfree/jfreechart/blob/master/src/main/java/org/jfree/chart/fx/interaction/ScrollHandlerFX.jav...