Search in sources :

Example 1 with ScalableFigure

use of org.eclipse.draw2d.ScalableFigure 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;
}
Also used : AnimatableZoomManager(org.talend.commons.ui.gmf.draw2d.AnimatableZoomManager) ScalableFigure(org.eclipse.draw2d.ScalableFigure)

Aggregations

ScalableFigure (org.eclipse.draw2d.ScalableFigure)1 AnimatableZoomManager (org.talend.commons.ui.gmf.draw2d.AnimatableZoomManager)1