简体   繁体   English

缩放视图以适合窗口

[英]Scale view to fit window

I use Roassal graphs in Glamour panes, and I wonder if there is a way to zoom and center the Roassal graph so that it fits entirely into its Glamour pane. 我在Glamour窗格中使用了Roassal图形,我想知道是否有一种方法可以缩放和居中使用Roassal图形,使其完全适合其Glamour窗格。 Can this be done? 可以这样做吗?

As far as I can tell if you set: 据我所知,如果你设置:

  • realExtent to the size of the window realExtent到窗口的大小
  • extent as the size of view (all it's elements aka view encompassingRectangle ) 范围作为视图的大小(它的所有元素, view encompassingRectangle

an then open a view, it should work 然后打开一个视图,它应该工作

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM