DialPlot clipping issues

A discussion forum for FXGraphics2D (adds a Java2D API to the JavaFX Canvas).
Locked
bdschubert
Posts: 7
Joined: Wed May 21, 2014 3:57 pm
antibot: No, of course not.

DialPlot clipping issues

Post by bdschubert » Wed May 21, 2014 4:38 pm

In a DialPlot (like in Dial Demo 4) with the new FXGraphics2D and ChartCanvas, the DialPointer.Pin() and DialBackground(GradientPaint) layers are not clipped to the DialFrame. The DialPointer originates from the edge of the Canvas and the DialBackground fills the entire Canvas.
-- Bruce
-- Bruce

bdschubert
Posts: 7
Joined: Wed May 21, 2014 3:57 pm
antibot: No, of course not.

Re: DialPlot clipping issues

Post by bdschubert » Wed May 21, 2014 5:03 pm

More info: if I set FXGraphics2D.setClippingDisabled(false), then the background and needle are clipped :) , but the ArcDialFrame is not drawn (clipped?).
-- Bruce

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

Re: DialPlot clipping issues

Post by david.gilbert » Wed May 21, 2014 7:02 pm

Thanks for the report. Clipping was causing some trouble with the 3D charts (Orson Charts) so that's why I added the flag to enable/disable it (and left it disabled by default). Here's the bug report:

https://javafx-jira.kenai.com/browse/RT-36891

I hope that once that is resolved then things should work better. I'll take a look at the DialPlot case though, because I know DialPlot relies on clipping quite a lot.
David Gilbert
JFreeChart Project Leader

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

Locked