setScrollBarVisibility(true) in UML Example [message #216263] |
Tue, 16 May 2006 16:30 |
Sabri Skhiri dit Gabouje 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.
|
|
|
Powered by
FUDForum. Page generated in 0.19296 seconds