org.eclipse.draw2d.FreeformLayout Java Examples

The following examples show how to use org.eclipse.draw2d.FreeformLayout. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ERDiagramEditPart.java    From ermasterr with Apache License 2.0 5 votes vote down vote up
/**
 * {@inheritDoc}
 */
@Override
protected IFigure createFigure() {
    final FreeformLayer layer = new FreeformLayer();
    layer.setLayoutManager(new FreeformLayout());

    return layer;
}
 
Example #2
Source File: CubeEditPart.java    From birt with Eclipse Public License 1.0 5 votes vote down vote up
protected IFigure createFigure( )
{
	Figure f = new FreeformLayer( );
	f.setLayoutManager( new FreeformLayout( ) );
	f.setBorder( new MarginBorder( 5 ) );
	return f;
}
 
Example #3
Source File: ERDiagramEditPart.java    From ermaster-b with Apache License 2.0 5 votes vote down vote up
/**
 * {@inheritDoc}
 */
@Override
protected IFigure createFigure() {
	FreeformLayer layer = new FreeformLayer();
	layer.setLayoutManager(new FreeformLayout());

	return layer;
}
 
Example #4
Source File: ERModelEditPart.java    From ermaster-b with Apache License 2.0 5 votes vote down vote up
@Override
	protected IFigure createFigure() {
//		ERModel ermodel = (ERModel) this.getModel();
//		ERModelFigure figure = new ERModelFigure(ermodel.getName());
//		return figure;

		FreeformLayer layer = new FreeformLayer();
		layer.setLayoutManager(new FreeformLayout());
		return layer;
	}
 
Example #5
Source File: ERDiagramEditPart.java    From erflute with Apache License 2.0 4 votes vote down vote up
@Override
protected IFigure createFigure() {
    final FreeformLayer layer = new FreeformLayer();
    layer.setLayoutManager(new FreeformLayout());
    return layer;
}
 
Example #6
Source File: ERVirtualDiagramEditPart.java    From erflute with Apache License 2.0 4 votes vote down vote up
@Override
protected IFigure createFigure() {
    final FreeformLayer layer = new FreeformLayer();
    layer.setLayoutManager(new FreeformLayout());
    return layer;
}