Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » setScrollBarVisibility(true) in UML Example
setScrollBarVisibility(true) in UML Example [message #216263] Tue, 16 May 2006 16:30
Sabri Skhiri dit Gabouje is currently offline Sabri Skhiri dit GaboujeFriend
Messages: 10
Registered: July 2009
Junior Member
Hi all,

I have coded the example "Display a UML Diagram using Draw2D" and it
works. But if I add canvas.setScrollBarVisibility(FigureCanvas.ALWAYS),
the repaint does not work. To be accurate, when I scroll my figure and I
come back the repaint is not executed. I have coded the example in a view
and then I had to add a FigureCanvas between the LWS and the Composite
parent of the View.

FigureCanvas canvas = new FigureCanvas(parent);
LightweightSystem lws = new LightweightSystem(canvas);
Figure contents = new Figure();
XYLayout contentsLayout = new XYLayout();
contents.setLayoutManager(contentsLayout);
canvas.setScrollBarVisibility(FigureCanvas.AUTOMATIC);
Font classFont = new Font(null, "Arial", 12, SWT.BOLD);
...
lws.setContents(contents);
}

Is there another thing to do in order to make the repaint possible ?

Tahnks.

Sabri.
Previous Topic:How to create a DirectEditManager using ComboBoxCellEditor in GEF (workaround)
Next Topic:GEF - GMF functionality
Goto Forum:
  


Current Time: Fri Sep 20 19:07:12 GMT 2024

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

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

Back to the top