Java 类org.eclipse.draw2d.SimpleLoweredBorder 实例源码

项目:limpet    文件:AxisEditPart.java   
@Override
protected IFigure createFigure()
{
  RectangleFigure figure = new RectangleFigure();
  figure.setBackgroundColor(BACKGROUND_COLOR);
  Color borderCol = Display.getCurrent().getSystemColor(SWT.COLOR_GRAY);
  Border figureBorder = new LineBorder(borderCol, 2);
  figure.setBorder(figureBorder);

  figure.setOutline(false);
  GridLayout layoutManager = new GridLayout();
  // zero margin, in order to connect the dependent axes to the shared one
  layoutManager.marginHeight = 0;
  layoutManager.marginWidth = 0;
  figure.setLayoutManager(layoutManager);

  datasetsPane = new RectangleFigure();
  datasetsPane.setOutline(false);
  final SimpleLoweredBorder datasetBorder = new SimpleLoweredBorder(3);
  datasetsPane.setBorder(datasetBorder);
  GridLayout datasetsPaneLayout = new GridLayout();
  datasetsPane.setLayoutManager(datasetsPaneLayout);
  figure.add(datasetsPane);

  arrowFigure = new ArrowFigure(false);
  figure.add(arrowFigure);

  axisNameLabel = new AxisNameFigure(this);
  figure.add(axisNameLabel);

  return figure;
}
项目:birt    文件:TableBorderFigure.java   
public TableBorderFigure( )
{
    outer = new SchemeBorder( raisedBorderScheme );
    titleBar = new TitleBarBorder( );
    inner = new CompoundBorder( titleBar, new SimpleLoweredBorder( 5 ) );
    titleBar.setTextColor( Display.getCurrent( )
            .getSystemColor( SWT.COLOR_TITLE_FOREGROUND ) );
    titleBar.setTextAlignment( 1 );
    titleBar.setPadding( 3 );
}
项目:wt-studio    文件:ColumnModelFigure.java   
public ColumnModelFigure()
{
    setBorder(new SimpleLoweredBorder());
    setLayoutManager(new ToolbarLayout());
    columnDescriptionLabel = new Label("abc:");
    add(columnDescriptionLabel);
}