Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Canvas Size
Canvas Size [message #244471] Tue, 22 July 2008 12:56
Michael Swearingen is currently offline Michael Swearingen
Messages: 26
Registered: July 2009
Junior Member
Hello All,

I would like to be able to set the size of the canvas in my project, and
possibly disable scrolling. For example I'd like to prevent the user from
dragging a shape off the screen.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=168578 said to try:

viewer.getStaticGraph().setPreferredSize(width, height);

but I had no luck. The getStaticGraph() method wan't there. Anyone have
any suggestions?

Thanks,
MS
Previous Topic:Move GEF area with the mouse Middle Click
Next Topic:Open & Close Files
Goto Forum:
  


Current Time: Sun Oct 26 07:53:35 GMT 2014

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

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