Java Code Examples for org.eclipse.draw2d.Figure#setBorder()
The following examples show how to use
org.eclipse.draw2d.Figure#setBorder() .
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: FunnyStyleSupport.java From ermasterr with Apache License 2.0 | 6 votes |
/** * {@inheritDoc} */ @Override public void createColumnArea(final IFigure columns) { initColumnArea(columns); columns.setBorder(new MarginBorder(0, 0, 0, 0)); columns.setBackgroundColor(ColorConstants.white); columns.setOpaque(true); final Figure centerFigure = new Figure(); centerFigure.setLayoutManager(new BorderLayout()); centerFigure.setBorder(new MarginBorder(new Insets(0, 2, 0, 2))); centerFigure.add(columns, BorderLayout.CENTER); getTableFigure().add(centerFigure, BorderLayout.CENTER); }
Example 2
Source File: FunnyStyleSupport.java From ermaster-b with Apache License 2.0 | 6 votes |
/** * {@inheritDoc} */ @Override public void createColumnArea(IFigure columns) { this.initColumnArea(columns); columns.setBorder(new MarginBorder(new Insets(1, 0, 1, 0))); columns.setBackgroundColor(ColorConstants.white); columns.setOpaque(true); Figure centerFigure = new Figure(); centerFigure.setLayoutManager(new BorderLayout()); centerFigure.setBorder(new MarginBorder(new Insets(0, 2, 0, 2))); centerFigure.add(columns, BorderLayout.CENTER); this.getTableFigure().add(centerFigure, BorderLayout.CENTER); }
Example 3
Source File: FunnyStyleSupport.java From erflute with Apache License 2.0 | 5 votes |
@Override public void initTitleBar(Figure top) { top.setLayoutManager(new BorderLayout()); final FlowLayout layout = new FlowLayout(); layout.setStretchMinorAxis(true); final Figure title = new Figure(); top.add(title, BorderLayout.TOP); title.setLayoutManager(layout); title.setBorder(new MarginBorder(new Insets(2, 2, 2, 2))); final ImageFigure image = new ImageFigure(); image.setBorder(new MarginBorder(new Insets(0, 0, 0, 0))); image.setImage(Activator.getImage(getTableFigure().getImageKey())); title.add(image); this.nameLabel = new Label(); nameLabel.setBorder(new MarginBorder(new Insets(0, 0, 0, 20))); title.add(nameLabel); final Figure separater = new Figure(); separater.setSize(-1, 1); separater.setBackgroundColor(ColorConstants.black); separater.setOpaque(true); top.add(separater, BorderLayout.BOTTOM); }
Example 4
Source File: FunnyStyleSupport.java From erflute with Apache License 2.0 | 5 votes |
@Override public void createColumnArea(IFigure columns) { initColumnArea(columns); columns.setBorder(new MarginBorder(new Insets(1, 0, 1, 0))); columns.setBackgroundColor(ColorConstants.white); columns.setOpaque(true); final Figure centerFigure = new Figure(); centerFigure.setLayoutManager(new BorderLayout()); centerFigure.setBorder(new MarginBorder(new Insets(0, 2, 0, 2))); centerFigure.add(columns, BorderLayout.CENTER); getTableFigure().add(centerFigure, BorderLayout.CENTER); }
Example 5
Source File: CubeEditPart.java From birt with Eclipse Public License 1.0 | 5 votes |
protected IFigure createFigure( ) { Figure f = new FreeformLayer( ); f.setLayoutManager( new FreeformLayout( ) ); f.setBorder( new MarginBorder( 5 ) ); return f; }
Example 6
Source File: FunnyStyleSupport.java From ermaster-b with Apache License 2.0 | 5 votes |
/** * {@inheritDoc} */ @Override public void initTitleBar(Figure top) { top.setLayoutManager(new BorderLayout()); FlowLayout layout = new FlowLayout(); layout.setStretchMinorAxis(true); Figure title = new Figure(); top.add(title, BorderLayout.TOP); title.setLayoutManager(layout); if (new BigDecimal("1.5").equals(getSettings().getTitleFontEm())) { title.setBorder(new MarginBorder(new Insets(2, 2, 2, 2))); } else { title.setBorder(new MarginBorder(new Insets(4, 4, 4, 4))); } ImageFigure image = new ImageFigure(); image.setBorder(new MarginBorder(new Insets(0, 0, 0, 0))); image.setImage(Activator.getImage(this.getTableFigure().getImageKey())); title.add(image); this.nameLabel = new Label(); this.nameLabel.setBorder(new MarginBorder(new Insets(0, 0, 0, 20))); title.add(this.nameLabel); Figure separater = new Figure(); separater.setSize(-1, 1); separater.setBackgroundColor(ColorConstants.black); separater.setOpaque(true); top.add(separater, BorderLayout.BOTTOM); }
Example 7
Source File: MethodClassSection.java From JDeodorant with MIT License | 4 votes |
public void addFigure(Figure figure){ this.add(figure); figure.setBackgroundColor(DecorationConstants.entityColor); figure.setBorder(new CompoundBorder( new LineBorder(1), new MarginBorder(3,3,3,3))); numOfMethods++; }