Package org.eclipse.draw2d.text

Examples of org.eclipse.draw2d.text.TextFlow


        }
        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


        CenteredFlowLayout layout = new CenteredFlowLayout();
        layout.setMajorAlignment(FlowLayout.ALIGN_CENTER);
        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);
View Full Code Here

    setForegroundColor(ColorConstants.tooltipBackground);
    setBackgroundColor(ColorConstants.tooltipBackground);
    setOpaque(true);
    setBorder(TOOLTIP_BORDER);

    header = new TextFlow();
    header.setForegroundColor(ColorConstants.darkGray);
    header.setFont(getBoldFont());
    add(header);

    description = new TextFlow();
    description.setForegroundColor(ColorConstants.darkGray);
    add(description);
  }
View Full Code Here

*/
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);
View Full Code Here

TOP

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

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.