Package org.eclipse.draw2d.text

Examples of org.eclipse.draw2d.text.FlowPage


        super.setBounds(rect);
    }
   
    protected void addSwimlaneLabel() {
        swimlaneLabel = new TextFlow();
        FlowPage fp = new FlowPage();
        fp.setHorizontalAligment(PositionConstants.CENTER);
        fp.add(swimlaneLabel);
        GridData data = new GridData(GridData.FILL_HORIZONTAL);
        add(fp, data);
    }
View Full Code Here


        figure.setLayoutManager(layout);
        figure.setOpaque(false);

        label = new TextFlow();

        FlowPage fp = new FlowPage();
        fp.setLayoutManager(new PageFlowLayout(fp));
        fp.setHorizontalAligment(PositionConstants.CENTER);
        fp.add(label);

        figure.add(fp, FlowLayout.ALIGN_CENTER);

        GridData data = new GridData(GridData.FILL_BOTH);
        add(figure, data);
View Full Code Here

*
* @param borderSize the size of the MarginBorder
*/
public StickyNoteFigure(int borderSize) {
  setBorder(new MarginBorder(borderSize));
  FlowPage flowPage = new FlowPage();

  textFlow = new TextFlow();

  textFlow.setLayoutManager(new ParagraphTextLayout(textFlow,
          ParagraphTextLayout.WORD_WRAP_SOFT));

  flowPage.add(textFlow);

  setLayoutManager(new StackLayout());
  add(flowPage);
}
View Full Code Here

TOP

Related Classes of org.eclipse.draw2d.text.FlowPage

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.