Package org.eclipse.draw2d.geometry

Examples of org.eclipse.draw2d.geometry.Dimension.expand()


      child = (IFigure) children.get(i);
      if (!isObservingVisibility() || child.isVisible())
        d.union(child.getMinimumSize(wHint, hHint));
    }

    d.expand(figure.getInsets().getWidth(), figure.getInsets().getHeight());
    d.union(getBorderPreferredSize(figure));
    return d;

  }
View Full Code Here


      child = (IFigure) children.get(i);
      if (!isObservingVisibility() || child.isVisible())
        d.union(child.getPreferredSize(wHint, hHint));
    }

    d.expand(figure.getInsets().getWidth(), figure.getInsets().getHeight());
    d.union(getBorderPreferredSize(figure));
    return d;
  }

  /**
 
View Full Code Here

    else
    {
      labelSize = calculateLabelSize(getTextUtilities().getTextExtents(getText(), getFont()));
    }
    Insets insets = getInsets();
    labelSize.expand(insets.getWidth(), insets.getHeight());
    minSize.union(labelSize);
    return minSize;
  }
 
  @Override
View Full Code Here

  {
    Insets insets = container.getInsets();
    Dimension size = getStackedChildrenSize((List<IFigure>)container.getChildren());
    size.width += this.marginInsets.left + this.marginInsets.right;
    size.height += this.marginInsets.top + this.marginInsets.bottom;
    return size.expand(insets.getWidth(), insets.getHeight())
        .union(getBorderPreferredSize(container));
  }

  public Dimension calculateMaximumSize(IFigure container)
  {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.