use of org.talend.commons.ui.gmf.draw2d.AnimatableZoomManager in project tdi-studio-se by Talend.
the class TalendScalableFreeformRootEditPart method getZoomManager.
/*
* (non-Javadoc)
*
* @see org.eclipse.gef.editparts.ScalableFreeformRootEditPart#getZoomManager()
*/
@Override
public ZoomManager getZoomManager() {
if (zoomManager == null) {
zoomManager = new AnimatableZoomManager((ScalableFigure) getScaledLayers(), ((Viewport) getFigure()));
zoomManager.setZoomLevels(zoomLevels);
zoomManager.setZoomAnimationStyle(ZoomManager.ANIMATE_ZOOM_IN_OUT);
}
return zoomManager;
}
Aggregations