|
|
Re: GraphicalEditorWithFlyoutPalette without scroll bars [message #513232 is a reply to message #511254] |
Tue, 09 February 2010 13:02 |
Vijay Raj Messages: 608 Registered: July 2009 |
Senior Member |
|
|
But if your figure is big then removing the scrollbar will make you figure visible partially or not visible at all...
The best way would be...
((ScalableRootEditPart*) getGraphicalViewer().getRootEditPart()).getZoomManager().setZoomAsText(ZoomManager.FIT_ALL)
*What ever is your rooteditpart.
still if your figure is too large the result will not be viewable...
---------------------
why, mr. Anderson, why, why do you persist?
Because I Choose To.
Regards,
Vijay
|
|
|
|
|
Re: GraphicalEditorWithFlyoutPalette without scroll bars [message #513403 is a reply to message #513311] |
Wed, 10 February 2010 04:03 |
Vijay Raj Messages: 608 Registered: July 2009 |
Senior Member |
|
|
Quote: | When I said to over-ride createGraphicalViewer(Composite parent) in your
editor I meant like this:
protected void createGraphicalViewer(Composite parent) {
GraphicalViewer viewer = new GraphicalViewerImpl();
viewer.createControl(parent);
setGraphicalViewer(viewer);
configureGraphicalViewer();
hookGraphicalViewer();
initializeGraphicalViewer();
}
When I add that to my Editor I get no scroll bars.
|
Does it also enshure that the figure will be scaled down to fit the visible area...??
@Ben Wecker
Did you try the zoom manager part...
((ScalableFreeformRootEditPart
) getGraphicalViewer().getRootEditPart()).getZoomManager().setZoomAsText(ZoomManager.FIT_ALL)
ScalableFreeformRootEditPart also has a getZoomManager method...
---------------------
why, mr. Anderson, why, why do you persist?
Because I Choose To.
Regards,
Vijay
|
|
|
|
|
Re: GraphicalEditorWithFlyoutPalette without scroll bars [message #513620 is a reply to message #513532] |
Wed, 10 February 2010 17:27 |
Vijay Raj Messages: 608 Registered: July 2009 |
Senior Member |
|
|
Quote: | In fact, I tried to override configureGraphicalViewer(). I don't quite get the difference between create..., initialize... and configureGraphicalViewer(). I added the line suggested by Philipp, however my figure is not shown at all any more. It is indeed big, but is ok, if it is shown only partially. By the way, I have a ScalableFreeformRootEditPart
Any idea how to remove the scroll bars, but with having the Figure (containing a large image) still been drawn?
|
---------------------
why, mr. Anderson, why, why do you persist?
Because I Choose To.
Regards,
Vijay
|
|
|
Powered by
FUDForum. Page generated in 0.04068 seconds