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

项目:DarwinSPL    文件:DwTooltipFigure.java   
public DwTooltipFigure() {
    setOpaque(true);
    setBackgroundColor(ColorConstants.white);


    setBorder( new CompoundBorder(
            new LineBorder( ColorConstants.black, 2 ),
            new MarginBorder( 12 )));

    message = new TextFlow();
    message.setText("");
    add(message);

}
项目:antlr4ide    文件:RectangleNode.java   
@Override
protected Border createBorder() {
  MarginBorder marginBorder = new MarginBorder(PADDING - 1);
  LineBorder lineBorder = new LineBorder(1);
  lineBorder.setColor(ColorConstants.black);
  return new CompoundBorder(lineBorder, marginBorder);
}
项目: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    文件:ScrollTableFigure.java   
public ScrollTableFigure()
{
    setOpaque(true);
    setBackgroundColor(ColorConstants.white);
    ToolbarLayout layout = new ToolbarLayout();
    layout.setMinorAlignment(ToolbarLayout.ALIGN_TOPLEFT);
    layout.setStretchMinorAxis(false);
    layout.setSpacing(2);
    panel = new Panel();
    panel.setBorder(new CompoundBorder(new LineBorder(), new MarginBorder(3)));
    panel.setLayoutManager(layout);
    setContents(panel);
}
项目:statecharts    文件:XtextDirectEditManager.java   
/**
 * Overridden to enlarge the cell editor frame for a control decorator
 */
protected IFigure getCellEditorFrame() {
    IFigure cellEditorFrame = super.getCellEditorFrame();
    cellEditorFrame.setBorder(new CompoundBorder(new MarginBorder(new Insets(0, 10, 0, 0)), BORDER_FRAME));
    return cellEditorFrame;
}