Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Zest "Zoom"
Zest "Zoom" [message #243985] Tue, 01 July 2008 17:41
kent gibson is currently offline kent gibsonFriend
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
Previous Topic:Problem with rotating a Draw2D Label
Next Topic:Serveral questions
Goto Forum:
  


Current Time: Tue Mar 19 04:42:44 GMT 2024

Powered by FUDForum. Page generated in 0.03172 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top