Examples of width()


Examples of org.modeshape.jcr.query.NodeSequence.width()

                Columns firstColumns = context.columnsFor(firstPlan);
                Columns secondColumns = context.columnsFor(secondPlan);
                NodeSequence first = createNodeSequence(originalQuery, context, firstPlan, firstColumns, sources);
                NodeSequence second = createNodeSequence(originalQuery, context, secondPlan, secondColumns, sources);
                useHeap = 0 >= second.getRowCount() && second.getRowCount() < 100;
                if (first.width() != second.width()) {
                    // A set operation requires that the 'first' and 'second' sequences have the same width, but this is
                    // not necessarily the case (e.g., when one side involves a JOIN but the other does not). The columns
                    // will dictate which subset of selector indexes in the sequences should be used.
                    first = NodeSequence.slice(first, firstColumns);
                    second = NodeSequence.slice(second, secondColumns);
View Full Code Here

Examples of org.opencv.core.Mat.width()

    public List<ArtifactDetectedObject> detectObjects(BufferedImage bImage) {
        List<ArtifactDetectedObject> detectedObjectList = new ArrayList<ArtifactDetectedObject>();
        Mat image = OpenCVUtils.bufferedImageToMat(bImage);
        if (image != null) {
            MatOfRect faceDetections = new MatOfRect();
            double width = image.width();
            double height = image.height();
            for (CascadeClassifierHolder objectClassifier : objectClassifiers) {
                objectClassifier.cascadeClassifier.detectMultiScale(image, faceDetections);

                for (Rect rect : faceDetections.toArray()) {
View Full Code Here

Examples of org.robovm.apple.coregraphics.CGSize.width()

    int width;
    int height;
    switch (orientation) {
    case LandscapeLeft:
    case LandscapeRight:
      height = (int)bounds.width();
      width = (int)bounds.height();
      break;
    default:
      // assume portrait
      width = (int)bounds.width();
View Full Code Here

Examples of org.robovm.cocoatouch.coregraphics.CGSize.width()

    int width;
    int height;
    switch (orientation) {
    case LandscapeLeft:
    case LandscapeRight:
      height = (int)bounds.width();
      width = (int)bounds.height();
      break;
    default:
      // assume portrait
      width = (int)bounds.width();
View Full Code Here

Examples of org.terasology.math.Rect2f.width()

                textureMat.setFloat2("scale", scale);
                textureMat.setFloat2("offset",
                        absoluteRegion.minX(),
                        absoluteRegion.minY());

                textureMat.setFloat2("texOffset", textureArea.minX() + ux * textureArea.width(), textureArea.minY() + uy * textureArea.height());
                textureMat.setFloat2("texSize", uw * textureArea.width(), uh * textureArea.height());
                break;
            }
            case SCALE_FILL: {
                textureMat.setFloat2("offset", absoluteRegion.minX(), absoluteRegion.minY());
View Full Code Here

Examples of org.terasology.math.Rect2i.width()

    public void onDraw(Canvas canvas) {
        Rect2i region = canvas.getRegion();
        inputPort.updateRect();
        canvas.drawWidget(inputPort, Rect2i.createFromMinAndMax(
                (int) (inputPort.rect.minX() / 10.f * region.width()),
                (int) (inputPort.rect.minY() / 5.f * region.height()),
                (int) (inputPort.rect.maxX() / 10.f * region.width()),
                (int) (inputPort.rect.maxY() / 5.f * region.height())));
        for (Port port : ports) {
            port.updateRect();
View Full Code Here

Examples of org.voltdb.planner.PlanColumn.width()

            PlanColumn column = PlannerContext.singleton().get(column_guid);
            String inner = " : guid=" + column_guid;
            if (column != null) {
                assert (column_guid == column.guid());
                name = column.getDisplayName();
                inner += " : type=" + column.type() + " : size=" + column.width() + " : sort=" + column.getSortOrder() + " : storage=" + column.getStorage();
            }

            ret += String.format("%s   [%02d] %s%s\n", spacer, ctr, name, inner);

            if (column != null && column.getExpression() != null) { // && (true
View Full Code Here

Examples of org.wicketstuff.pageserializer.common.analyze.reportbuilder.Report.Row.RowColumnValue.width()

  {
    int width = 0;
    for (Row row : rows)
    {
      RowColumnValue rcv = row.get(c);
      width = Math.max(width, rcv != null ? rcv.width(indentLen) : 0);
    }
    return width;
  }

  /**
 
View Full Code Here

Examples of org.xhtmlrenderer.css.style.derived.RectPropertySet.width()

    public Rectangle getPaddingEdge(int left, int top, CssContext cssCtx) {
        RectPropertySet margin = getMargin(cssCtx);
        RectPropertySet border = getBorder(cssCtx);
        Rectangle result = new Rectangle(left + (int) margin.left() + (int) border.left(),
                top + (int) margin.top() + (int) border.top(),
                getWidth() - (int) margin.width() - (int) border.width(),
                getHeight() - (int) margin.height() - (int) border.height());
        return result;
    }
   
    protected int getPaddingWidth(CssContext cssCtx) {
View Full Code Here

Examples of org.zkoss.ztl.JQuery.width()

      // TODO: Verify correct row is frozen
      verifyTrue(jq("div.zstopblock").width() != 0);
      JQuery p = jq("div.zstopblock");
      int clen = p.children().length();
      JQuery c = p.children("div:nth-child(3)");
      int width = c.width();
      verifyTrue("no. of children=" + clen + ", widht=" + width, clen == 3 && jq("div.zstopblock").children("div:nth-child(3)").width() != 0);
    }
}
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.