Examples of calculateSize()


Examples of com.db4o.foundation.Tree.calculateSize()

  private final Tree linkUp(Tree a_preceding, int a_level){
    Tree node = (Tree)i_template.read(i_bytes);
    i_current++;
    node._preceding = a_preceding;
    node._subsequent = linkDown(a_level + 1);
    node.calculateSize();
    if(i_current < i_size){
      return linkUp(node, a_level - 1);
    }
    return node;
View Full Code Here

Examples of com.db4o.foundation.Tree.calculateSize()

      if(a_level < i_levels) {
        Tree preceding = linkDown(a_level + 1);
        Tree node = (Tree)i_template.read(i_bytes);
        node._preceding = preceding;
        node._subsequent = linkDown(a_level + 1);
        node.calculateSize();
        return node;
      }
      return (Tree)i_template.read(i_bytes);
    }
    return null;
View Full Code Here

Examples of org.eclipse.graphiti.services.IGaService.calculateSize()

            GraphicsAlgorithm graphicsAlgorithm = shape.getGraphicsAlgorithm();
            IGaService gaService = Graphiti.getGaService();

            IDimension size =
                 gaService.calculateSize(graphicsAlgorithm);

            if (containerWidth != size.getWidth()) {

                if (graphicsAlgorithm instanceof Polyline) {
View Full Code Here

Examples of org.eclipse.graphiti.services.IGaService.calculateSize()

    // width of text and line (same as visible rectangle)
    for (Shape shape : containerShape.getChildren()) {
      GraphicsAlgorithm graphicsAlgorithm = shape.getGraphicsAlgorithm();
      IGaService gaService = Graphiti.getGaService();
      IDimension size = gaService.calculateSize(graphicsAlgorithm);
      if (rectangleWidth != size.getWidth()) {
        gaService.setWidth(graphicsAlgorithm, rectangleWidth);
        anythingChanged = true;
      }
    }
View Full Code Here

Examples of org.eclipse.graphiti.services.IGaService.calculateSize()

    int containerHeight = containerGa.getHeight();
    Iterator<Shape> iterator = containerShape.getChildren().iterator();
    while (iterator.hasNext()) {
      Shape shape = iterator.next();
      GraphicsAlgorithm ga = shape.getGraphicsAlgorithm();
      IDimension size = gaService.calculateSize(ga);
      if (containerHeight != size.getHeight()) {
        if (ga instanceof Polyline) {
          Polyline line = (Polyline) ga;
          Point firstPoint = line.getPoints().get(0);
          Point newPoint = gaService.createPoint(firstPoint.getX(), containerHeight);
View Full Code Here

Examples of org.eclipse.graphiti.services.IGaService.calculateSize()

    Iterator<Shape> iterator = containerShape.getChildren().iterator();
    while (iterator.hasNext()) {
      Shape shape = iterator.next();
      GraphicsAlgorithm shapeGa = shape.getGraphicsAlgorithm();
      IDimension size = gaService.calculateSize(shapeGa);
      if (containerWidth != size.getWidth() && shapeGa instanceof MultiText) {
        gaService.setWidth(shapeGa, containerWidth - 5);
        changed = true;
      }
      if (containerHeight != size.getHeight()) {
View Full Code Here

Examples of org.eclipse.graphiti.services.IGaService.calculateSize()

    int containerWidth = ga.getWidth();
    int containerHeight = ga.getHeight();
   
    for (final Shape shape : containerShape.getChildren()) {
      final GraphicsAlgorithm shapeGa = shape.getGraphicsAlgorithm();
      final IDimension size = gaService.calculateSize(shapeGa);
     
      if (containerWidth != size.getWidth() && shapeGa instanceof MultiText) {
        gaService.setWidth(shapeGa, containerWidth - 5);
       
        changed = true;
View Full Code Here

Examples of org.waveprotocol.wave.model.document.raw.impl.Element.calculateSize()

      String outerXml = "<DOC a=\"b\">" + xml + "</DOC>";

      RawDocumentImpl doc = RawDocumentImpl.PROVIDER.parse(outerXml);
      Element element = doc.getDocumentElement();

      int size = element.calculateSize();

      check(size - 2, xml, XmlStringBuilder.createChildren(doc, element));
      check(size, outerXml, XmlStringBuilder.createNode(doc, element));

    } catch (Exception e) {
View Full Code Here

Examples of org.xhtmlrenderer.swt.FormControlReplacementElement.calculateSize()

            }
            swtControl.getSWTControl().setVisible(false);

            FormControlReplacementElement fcre = new FormControlReplacementElement(
                swtControl);
            fcre.calculateSize(c, box.getStyle(), cssWidth, cssHeight);
            re = fcre;
            if (_controls == null) {
                _controls = new HashMap();
            }
            _controls.put(e, re);
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.