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 SwearingenFriend
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. said to try:

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

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

Previous Topic:(Zest] Save/persist positions
Next Topic:Open & Close Files
Goto Forum:

Current Time: Fri Apr 20 01:37:03 GMT 2018

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

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