/** * {@inheritDoc} */ @Override public void initTitleBar(final Figure top) { titleBarBorder = (TitleBarBorder) border.getInnerBorder(); titleBarBorder.setTextAlignment(PositionConstants.CENTER); titleBarBorder.setPadding(new Insets(5, 20, 5, 20)); }
/** * {@inheritDoc} */ @Override public void initTitleBar(Figure top) { this.titleBarBorder = (TitleBarBorder) this.border.getInnerBorder(); this.titleBarBorder.setTextAlignment(PositionConstants.CENTER); this.titleBarBorder.setPadding(new Insets(5, 20, 5, 20)); }
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 ColumnGroupFigure() { HorizontalFillLayout horizontal = new HorizontalFillLayout(); horizontal.setSpacing(5); setLayoutManager(horizontal); setOpaque(true); setBackgroundColor(ColorConstants.white); setOpaque(true); setBackgroundColor(ColorConstants.white); border = new TitleBarBorder("默认列组"); setBorder(border); }
@Override public void initTitleBar(Figure top) { this.titleBarBorder = (TitleBarBorder) border.getInnerBorder(); titleBarBorder.setTextAlignment(PositionConstants.CENTER); titleBarBorder.setPadding(new Insets(5, 20, 5, 20)); }
public TitleBarBorder getBorder() { return border; }