Examples of Insets


Examples of org.eclipse.draw2d.geometry.Insets

    @SuppressWarnings("unchecked")
    protected void addNodes(ElementEditPart elementEditPart) {
        Node n = new Node(elementEditPart);
        n.width = elementEditPart.getFigure().getPreferredSize(400, 300).width;
        n.height = elementEditPart.getFigure().getPreferredSize(400, 300).height;
        n.setPadding(new Insets(10, 8, 10, 12));
        partToNodesMap.put(elementEditPart, n);
        graph.nodes.add(n);
    }
View Full Code Here

Examples of org.eclipse.wb.draw2d.geometry.Insets

    super.refresh_fetch();
    {
      Rectangle panelBounds = getAbsoluteBounds(getObject());
      Object body = ReflectionUtils.invokeMethod(getObject(), "getBody()");
      Rectangle bodyBounds = getAbsoluteBounds(body);
      setClientAreaInsets(new Insets(bodyBounds.y - panelBounds.y,
          bodyBounds.x - panelBounds.x,
          panelBounds.bottom() - bodyBounds.bottom(),
          panelBounds.right() - bodyBounds.right()));
    }
  }
View Full Code Here

Examples of org.gwt.mosaic.core.client.Insets

      FormLayout.Measure prefHeightMeasure) {
    ColumnSpec colSpec = gridWidth == 1 ? layout.getColumnSpec(gridX) : null;
    RowSpec rowSpec = gridHeight == 1 ? layout.getRowSpec(gridY) : null;
    Alignment concreteHAlign = concreteAlignment(this.hAlign, colSpec);
    Alignment concreteVAlign = concreteAlignment(this.vAlign, rowSpec);
    Insets concreteInsets = this.insets != null ? this.insets : EMPTY_INSETS;
    int cellX = cellBounds.x + concreteInsets.left;
    int cellY = cellBounds.y + concreteInsets.top;
    int cellW = cellBounds.width - concreteInsets.left - concreteInsets.right;
    int cellH = cellBounds.height - concreteInsets.top - concreteInsets.bottom;
    int compW = componentSize(c, colSpec, cellW, minWidthMeasure,
View Full Code Here

Examples of pivot.wtk.Insets

    public static final String SIZE_KEY = "size";
    public static final String LAST_MODIFIED_KEY = "lastModified";

    public FileCellRenderer() {
        getStyles().put("verticalAlignment", VerticalAlignment.CENTER);
        getStyles().put("padding", new Insets(2));
    }
View Full Code Here

Examples of tripleplay.ui.util.Insets

            });
        }
    }

    protected Rectangle getNativeFieldBounds () {
        Insets insets = resolveStyle(Style.BACKGROUND).insets;
        Point screenCoords = Layer.Util.layerToScreen(layer, insets.left(), insets.top());
        return new Rectangle(screenCoords.x, screenCoords.y,
                             _size.width - insets.width(), _size.height - insets.height());
    }
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.