|
|
|
|
|
|
Re: Show scroll on Graphical Editor [message #717154 is a reply to message #685944] |
Fri, 19 August 2011 12:50 |
Karthikeyan Missing name Messages: 47 Registered: July 2011 |
Member |
|
|
Hi,
My editor should have the following structure.
ie -- > 1) FirstParentPart
2) SecondParentPart
3) all shapes part
My First parent edit part have the following code,
protected IFigure createFigure()
{
final Figure figure = new FreeformLayer();
figure.setLayoutManager( new FreeformLayout() );
figure.setBorder( new MarginBorder( 3 ) );
figure.setForegroundColor( ColorConstants.black );
figure.setOpaque( false );
return figure;
}
My second edit part have the following code,
@Override
protected IFigure createFigure()
{
final Figure figure = new FreeformLayer();
figure.setLayoutManager( new FreeformLayout() );
figure.setBorder( new LineBorder( 2 ) );
figure.setForegroundColor( ColorConstants.green );
figure.setOpaque( true );
return figure;
}
Editor file (InitializeViewer method)
============
getGraphicalViewer().reveal(getGraphicalViewer().getContents());
But while running, my second parent is not visible without setting bounds. my first parent fits to the editor, but my second parent does not. What went wrong? Any help would be appreciated...
Regards,
Karthikeyan.B
[Updated on: Mon, 22 August 2011 05:00] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.04516 seconds