Scrolled chart still too small
Werner Lehmann
lehmann at media-interactive.de
Fri Aug 10 16:31:20 PDT 2012
Hi Paru,
sure - I could even use fitToWidth or fitToHeight on the scrollpane. But that is beside the point. I'd like the chart big enough to show all data without skipping any categories on the x-axis - but not bigger. Unfortunately I don't know how big that is. Basically it should be a "computed size", depending on the data series. If it does not need all room inside the scrollpane, fine. If it needs more, well that's what the scrollpane is for. Does the chart provide a way to get that size so I could make it the preferred size?
Werner
________________________________________
From: openjfx-dev-bounces at openjdk.java.net [openjfx-dev-bounces at openjdk.java.net] On Behalf Of Paru Somashekar [parvathi.somashekar at oracle.com]
Sent: Friday, August 10, 2012 21:20
To: openjfx-dev at openjdk.java.net
Subject: Fwd: Re: Scrolled chart still too small
-------- Original Message --------
Subject: Re: Scrolled chart still too small
Date: Fri, 10 Aug 2012 11:02:06 -0700
From: Paru Somashekar <parvathi.somashekar at oracle.com>
To: Werner Lehmann <lehmann at media-interactive.de>
Hi Werner,
You can set the preferred size on the chart - something like
chart.setPrefSize(width,height) - to match the width& height of the
scrollpane.
thanks,
Paru.
More information about the openjfx-dev
mailing list