Package org.eclipse.draw2d.geometry

Examples of org.eclipse.draw2d.geometry.Dimension


      width = getDefaultWidth();
    }
    if (height <= 0) {
      height = getDefaultHeight();
    }
    return new DimensionInfo(new Dimension(width, height), -1);
  }
View Full Code Here


   */
  public void invalidate() {
    super.invalidate();
    _pageSizeCacheKeys = new int[4];
    _pageSizeCacheValues = new Dimension[4];
    _pageSize = new Dimension();
    _recommendedWidth = 0;
  }
View Full Code Here

        setSize(CompoundModel.DEFAULT_SIZE);
      }
      else
      {
        Rectangle bound = calculateBounds();
        Dimension diff =
          getLocationAbs().getDifference(bound.getLocation());

        setLocationAbs(new Point(bound.x - this.MARGIN_SIZE,
          bound.y - this.MARGIN_SIZE));
        setSize(new Dimension(bound.width + (2 * this.MARGIN_SIZE),
          bound.height + (2 * this.MARGIN_SIZE) + this.LABEL_HEIGHT));

        Iterator iter = this.children.iterator();

        while (iter.hasNext())
View Full Code Here

    while (itr.hasNext())
    {
      NodeModel node = (NodeModel) itr.next();

      Point locAbs = node.getLocationAbs();
      Dimension size = node.getSize();
      nodeTop = locAbs.y;
      nodeLeft = locAbs.x;
      nodeRight = locAbs.x + size.width;
      nodeBottom = locAbs.y + size.height;
View Full Code Here

  public Dimension getCurrentSize()
  {
    int w = getShell().getSize().x;
    int h = getShell().getSize().y;
    return new Dimension(w, h);
  }
View Full Code Here

    fd.setStyle(SWT.BOLD);
    Font font = new Font(null, new FontData[]{fd});
    txt.setFont(font);
    txt.setText(msg);

    Dimension extents = TextUtilities.INSTANCE.getStringExtents(msg, font);

    int buffer = 15;

    GridData data = new GridData();
    data.verticalAlignment = GridData.VERTICAL_ALIGN_CENTER;
View Full Code Here

  public Dimension getCurrentSize()
  {
    int w = getShell().getSize().x;
    int h = getShell().getSize().y;
    return new Dimension(w, h);
  }
View Full Code Here

    super(root);
   
    setShape("Ellipse");
    setColor(COLOR);
    setText("");
    setSize(new Dimension(9, 9));
  }
View Full Code Here

  {
    super(root);

    setColor(new Color(null, 150, 150, 150));
    setText("Actor");
    setSize(new Dimension(50, 20));
    setShape("RoundRect");
  }
View Full Code Here

      }

      height = infos.isEmpty() ? DEFAULT_HEIGHT : DEFAULT_HEIGHT + 2 * DEFAULT_INFO_BULB;
    }

    setSize(new Dimension(width, height));

    if (entity instanceof smallMolecule)
    {
      setColor(SMALL_MOL_BG_COLOR);
    }
View Full Code Here

TOP

Related Classes of org.eclipse.draw2d.geometry.Dimension

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.