0
Follow
0
View

How to implement Zoom in/out using JavaFX?

cscwan 注册会员
2023-01-25 13:54

This is actually quite simple if you use the scene graph. Make the left part a Pane. Add a Group node at its root and then add all your shapes to that Group node. You can then pan and zoom by just applying a single transform to this Group node.