Zest "Zoom" [message #243985] |
Tue, 01 July 2008 17:41 |
kent gibson Messages: 114 Registered: July 2009 |
Senior Member |
|
|
I am trying to implement a style of zoom for my zest viewer.
In actual fact, I am merely expanding the graph so that the nodes are not
so close to each other.
I cannot manage to ever retain the view location after my zoom (the zoom
is actually a layout).
I tried getting the preffered size of the graph control:
org.eclipse.swt.graphics.Point preferredSize =
graphViewer.getGraphControl().computeSize(SWT.DEFAULT,
SWT.DEFAULT);
and then either setting the view location:
getZoomManager().setViewLocation()
or
playing with the bars directly:
getGraphControl().getVerticalBar().setSelection((preferredSi ze.y));
but nothing works.
Does anyone know what I might be doing wrong?
thanks
|
|
|
Powered by
FUDForum. Page generated in 0.03172 seconds