Package org.eclipse.draw2d.geometry

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


    List children = figure.getChildren();
    IFigure child;
    for (int i = 0; i < children.size(); i++) {
      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


      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

    List children = figure.getChildren();
    IFigure child;
    for (int i = 0; i < children.size(); i++) {
      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

      if (!isObservingVisibility() || child.isVisible())
        d.union(child.getPreferredSize(wHint, hHint));
    }

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

  /**
   * Returns the origin for the given figure.
View Full Code Here

      lws.setControl(this);
      lws.setContents(new TrayArrowButton());
    }
    public Point computeSize(int wHint, int hHint, boolean changed) {
      Dimension size = lws.getRootFigure().getPreferredSize(wHint, hHint);
      size.union(new Dimension(wHint, hHint));
      return new Point(size.width, size.height * 2);
    }
    private Image getButtonImage() {
      return trayComposite.isInState(TrayComposite.STATE_COLLAPSED) ?  ARROW_LEFT : ARROW_RIGHT;
    }
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.