Package org.eclipse.draw2d

Examples of org.eclipse.draw2d.LineBorder


            thumbnail = new FigureCanvas(parent, SWT.NONE);
            thumbnail.setBackground(ColorConstants.white);
            thumbnail.setLayoutData(data);

            tb = new ScrollableThumbnail();
            tb.setBorder(new LineBorder(1));
            thumbnail.setContents(tb);
        }
View Full Code Here


    titleBarBorder.setBackgroundColor(titleColor);

    titleBarBorder.setPadding(INSETS);
    titleBarBorder.setTextAlignment(PositionConstants.CENTER);

    LineBorder lineBorder = new LineBorder(ColorConstants.black, 1);
    setBorder(new CompoundBorder(lineBorder, titleBarBorder));

    projectNameLabel = new Label();
    projectNameLabel.setOpaque(false);
    try {
View Full Code Here

    private static final int INSETS = 0;

    public PageFigure( Dimension size ) {
        int twoInsets = INSETS * 2;
        setBounds(new Rectangle(INSETS, INSETS, size.width + twoInsets, size.height + twoInsets));
        setBorder(new LineBorder(ColorConstants.gray, INSETS));
    }
View Full Code Here

     * Constructor Sets the default grid color: ColorConstants.lightGray
     */
    public GridSupportLayer() {
        setForegroundColor(ColorConstants.black);
        setLayoutManager(new FreeformLayout());
        setBorder(new LineBorder(1));
    }
View Full Code Here

    XYLayout layout = new XYLayout();
    figure.setLayoutManager(layout);
    figure.setForegroundColor(ColorConstants.black);

    Border line = new LineBorder(new Color(null, 0, 0, 0));
    figure.setBorder(line);

    return figure;
  }
View Full Code Here

    CSSFigure cssfigure = (CSSFigure) getOwner().getFigure();
    List fragments = cssfigure.getFragmentsForRead();
    for (int i = 0, size = fragments.size(); i < size; i++) {
      // the rectangle.
      Figure childFigure = new BorderFigure();
      childFigure.setBorder(new LineBorder(1));
      this.add(childFigure);

      FlowBox box = (FlowBox) fragments.get(i);
      Rectangle rect = new Rectangle(box.getX(), box.getY(), box.getWidth(), box
          .getHeight());
View Full Code Here

    {
        Label    dropHintLabel = new Label();
        dropHintLabel.setOpaque(true);
        dropHintLabel.setBackgroundColor(ColorConstants.tooltipBackground);
        dropHintLabel.setBorder(
                new LineBorder(ColorConstants.black, 1)
                {
                    // add an extra pixel of inset to make sure the text
                    // isn't pressed against the border
                    public Insets getInsets(IFigure figure) {
                        return new Insets(getWidth()+1);
View Full Code Here

  /**
   *
   */
  private void initialize() {
    this.setOpaque(false);
    LineBorder border1 = new LineBorder(ColorConstants.green, 1);
    this.setBorder(border1);
    this.setCursor(Cursors.ARROW);
  }
View Full Code Here

    protected void initialize()
    {
        setOpaque(true);
        setBackgroundColor(ColorConstants.tooltipBackground);
        setBorder(
                new LineBorder(ColorConstants.tooltipForeground, 1)
                {
                    // add an extra pixel of inset to make sure the text
                    // isn't pressed against the border
                    public Insets getInsets(IFigure figure) {
                        return new Insets(getWidth()+1);
View Full Code Here

      layoutThis.makeColumnsEqualWidth = true;
      this.setLayoutManager(layoutThis);

      this.setCornerDimensions(new Dimension(getMapMode().DPtoLP(8),
          getMapMode().DPtoLP(8)));
      this.setBorder(new LineBorder(null, getMapMode().DPtoLP(0)));
    }
View Full Code Here

TOP

Related Classes of org.eclipse.draw2d.LineBorder

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.