Make FigureCanvas Larger [message #848851] |
Wed, 18 April 2012 12:30  |
Eclipse User |
|
|
|
Hi. In my editor I'm looking to make the editing area (the FigureCanvas within the GraphitiScrollingGraphicalViewer) larger by x units or maybe by x% instead of the default minimum area to contain all pictogram elements so there is a buffer around the diagram where users can scroll. This would give users more room to work. I think a lot of users of my editor (myself included) will drag out a random pictogram element and place it some far distance from where they are editing just to make the diagram larger so there isn't the feeling the diagram is closing in on the work area and it also makes it easier to drag and organize elements within the space.
The only way I can see of doing this would be to do something similar to what was done in GFFigureCanvas and GFScrollingGraphicalViewer where I would have to make my own class of both and override createGraphicalViewer (at least) in my editor and then do some magic in my extended Canvas which would provide a buffer around the editing area. Anybody have any better ideas, or maybe this warrants a feature request? I would go ahead and use GFScrollingGraphicalViewer (by setting scroll bars to always visible through my ToolBehaviorProvider) since it has an infinite space, but the comments and depricated functions along that path seem to indicate this would not be a future-proof plan.
Thanks,
Craig
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05461 seconds