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); }
@Override protected Border createBorder() { MarginBorder marginBorder = new MarginBorder(PADDING - 1); LineBorder lineBorder = new LineBorder(1); lineBorder.setColor(ColorConstants.black); return new CompoundBorder(lineBorder, marginBorder); }
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 ); }
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); }
/** * 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; }