2013-12-20 27 views

回答

2

ActionFactory工厂类提供了一些内置动作。

对于放大它提供,

  • createCenteredZoomAction(双zoomMultiplier)
  • createMouseCenteredZoomAction(双zoomMultiplier)
  • createZoomAction()
  • createZoomAction(双zoomMultiplier,布尔动画)

用法: 添加到您的场景:

getActions().addAction(ActionFactory.createMouseCenteredZoomAction(1.1)); 

ActionFactory class docs.

+0

谢谢你的提示,我从来没有在乎'createCenteredZoomAction'。 – Benj