How to zoom with zest?

I use RCP and ZEST to create a graph visualization application. My question is: is it possible to scale the graph drawn on ZEST (any ZEST or RCP api or plugin)?

Thanks in advance -rajit

+3
source share
2 answers

I looked at the ZestZoomContributionViewItem and it seems to have posted a drop-down list with an indication of "page width" and 200% of the zoom options. I wanted to be able to use the mouse wheel to increase and decrease my graph.

The following code will close the zoom level to 500% on your Zest graph and give you fine grain control (it is a bit outdated, since these are internal eclipse classes.)

Graph myGraph = new Graph(parent, SWT.NONE);
ZoomManager zoomManager = new ZoomManager(
    graph.getRootLayer(), 
    graph.getViewport() );
zoomManager.setZoomAsText("500%");
+2

- ZoomContributionViewItem. Menumanagers ( toolbarmanagers , , Zest 1.1).

IZoomableWorkbenchPart, , .

- , Zest ZoomContributionViewItem, .

+1

Source: https://habr.com/ru/post/1749911/


All Articles