-
Type:
Enhancement
-
Resolution: Unresolved
-
Priority:
P4
-
Affects Version/s: 9
-
Component/s: javafx
-
Environment:
All
This refers to the OTN discussion at https://forums.oracle.com/forums/thread.jspa?threadID=2539811&tstart=0
Can we add
scaleContentHorizontally(double scaleFactor)
and
scaleContentVertically(double scaleFactor)
methods to ScrollPane.
These would multiply the scaleX and scaleY properties of the content node, respectively, by the supplied factor, and update the hValue or vValue of the ScrollPane to preserve the visual center of the content node in the viewport.
This is a desirable feature for a ScrollPane which seems (see OTN discussion) to be difficult to code by hand.
If there are obvious performance savings, a scaleContent(double scaleFactor) which has the effect of invoking both scaleContentHorizontally and scaleContentVertically atomically might be useful.
Can we add
scaleContentHorizontally(double scaleFactor)
and
scaleContentVertically(double scaleFactor)
methods to ScrollPane.
These would multiply the scaleX and scaleY properties of the content node, respectively, by the supplied factor, and update the hValue or vValue of the ScrollPane to preserve the visual center of the content node in the viewport.
This is a desirable feature for a ScrollPane which seems (see OTN discussion) to be difficult to code by hand.
If there are obvious performance savings, a scaleContent(double scaleFactor) which has the effect of invoking both scaleContentHorizontally and scaleContentVertically atomically might be useful.