Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Scale SVGPath proportionally - and automatically

921640Jun 8 2012 — edited Jun 12 2012
Hello,

I'm trying to use an SVG path to create a map/outline of a territory (country) on top of which some other nodes will be placed, to represent cities.

I've tried styling Region to take desired shape, but while resizing the Stage, it looses it's proportions. So, my country gets all distorted. :) Is there any way to force a Region to retain it's proportions upon scaling?

Also, I've tried with good old SVGPath, but Shapes are not auto-resizable (bummer), so I'd had to use scaleX and scaleY, but still don't know how to relate those two to parent StackPane's dimensions.

Any ideas on how to achieve this?

Edited by: scekics on 08.06.2012. 12.11
This post has been answered by MiPa on Jun 9 2012
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 10 2012
Added on Jun 8 2012
3 comments
1,360 views