Examples of Rectangle


Examples of DisplayProject.controls.Rectangle

     * TagId=14
     * isInherited=FALSE
     */
    public Rectangle getqq_PaleRedColourR() {
        if (qq_PaleRedColourR == null) {
            qq_PaleRedColourR = new Rectangle();
            qq_PaleRedColourR.setName("PaleRedColourR");
            qq_PaleRedColourR.setLineWeight(DisplayProject.Constants.W_ONEPIXEL);
            qq_PaleRedColourR.setOpaque(true);
            ColourChange.setBackground(qq_PaleRedColourR, Constants.C_PALERED);
            ColourChange.setForeground(qq_PaleRedColourR, Constants.C_BLACK);
View Full Code Here

Examples of ae.java.awt.Rectangle

            addTo = (r.width > r.height) ? HORIZONTAL : VERTICAL;
        }
        if (paintRects[addTo] != null) {
            paintRects[addTo].add(r);
        } else {
            paintRects[addTo] = new Rectangle(r);
        }
    }
View Full Code Here

Examples of charva.awt.Rectangle

        /*
         * Get the bounding rectangle of the child viewport, relative to the
         * top left corner of the JScrollPane.
         */
        Rectangle viewport = _childViewport.getBounds();
        //Dimension viewportExtent = _childViewport.getExtentSize();

        Point viewPosition = _childViewport.getViewPosition();
        Point headerPosition = null;
        if (_headerViewport != null)
                headerPosition = _headerViewport.getViewPosition();

        /*
         * If the limit is inside the viewport, the component doesn't need to
         * be scrolled. First do the left/right scrolling.
         */
        if (limit.x > viewport.getRight()) {
            if ((direction == ScrollEvent.LEFT
                    || direction == ScrollEvent.UP_LEFT || direction == ScrollEvent.DOWN_LEFT)) {

                viewPosition.x -= (limit.x - viewport.getRight());
                if (_headerViewport != null)
                        headerPosition.x -= (limit.x - viewport.getRight());
            } else if (direction == ScrollEvent.RIGHT
                    || direction == ScrollEvent.UP_RIGHT
                    || direction == ScrollEvent.DOWN_RIGHT) {

                viewPosition.x += (viewport.getLeft() - limit.x);
                if (_headerViewport != null)
                        headerPosition.x += (viewport.getLeft() - limit.x);
            }
        } else if (limit.x < viewport.getLeft()) {
            if (direction == ScrollEvent.RIGHT
                    || direction == ScrollEvent.UP_RIGHT
                    || direction == ScrollEvent.DOWN_RIGHT) {

                viewPosition.x += (viewport.getLeft() - limit.x);
                if (_headerViewport != null)
                        headerPosition.x += (viewport.getLeft() - limit.x);
            } else if (direction == ScrollEvent.LEFT
                    || direction == ScrollEvent.UP_LEFT
                    || direction == ScrollEvent.DOWN_LEFT) {
                viewPosition.x -= (limit.x - viewport.getRight());
                if (_headerViewport != null)
                        headerPosition.x -= (limit.x - viewport.getRight());
            }
        }

        // Now do the up/down scrolling
        if (limit.y < viewport.getTop()
                && (direction == ScrollEvent.DOWN
                        || direction == ScrollEvent.DOWN_LEFT || direction == ScrollEvent.DOWN_RIGHT)) {

            viewPosition.y += (viewport.getTop() - limit.y);
        } else if (limit.y > viewport.getBottom()
                && (direction == ScrollEvent.UP
                        || direction == ScrollEvent.UP_LEFT || direction == ScrollEvent.UP_RIGHT)) {

            viewPosition.y -= (limit.y - viewport.getBottom());
        }

        _childViewport.setViewPosition(viewPosition);
        if (_headerViewport != null)
                _headerViewport.setViewPosition(headerPosition);
View Full Code Here

Examples of civquest.util.Rectangle

      }
      if (edge.y > largestY) {
        largestY = edge.y;
      }     
    }
    return new Rectangle(smallestX, smallestY, largestX, largestY);
  }
View Full Code Here

Examples of com.badlogic.gdx.math.Rectangle

   */
  public Tank(TextureRegion tex, TextureRegion cannon, TextureRegion[] weaponsTex, boolean first, int x, int y, Map map){
    this.tex = tex;
    this.cannon = cannon;
    this.position = new Vector2(x,y);
    this.bounds = new Rectangle(x,y,32,16);
    this.slope = map.getAngle(x);
    this.map = map;
    if(!first){
      state = RECEIVING;
      angle = 120;
View Full Code Here

Examples of com.blitline.image.functions.Rectangle

  public static Quantize quantize(int numberOfColors) {
    return new Quantize(numberOfColors);
  }

  public static Rectangle rectangle(int x1, int y1, int x2, int y2) {
    return new Rectangle(x1, y1, x2, y2);
  }
View Full Code Here

Examples of com.cburch.draw.shapes.Rectangle

    Location e1 = Location.create(rx + (width + 8) / 2, ry + 1);
    Location ct = Location.create(rx + width / 2, ry + 11);
    Curve notch = new Curve(e0, e1, ct);
    notch.setValue(DrawAttr.STROKE_WIDTH, Integer.valueOf(2));
    notch.setValue(DrawAttr.STROKE_COLOR, Color.GRAY);
    Rectangle rect = new Rectangle(rx, ry, width, height);
    rect.setValue(DrawAttr.STROKE_WIDTH, Integer.valueOf(2));

    List<CanvasObject> ret = new ArrayList<CanvasObject>();
    ret.add(notch);
    ret.add(rect);
    placePins(ret, edge.get(Direction.WEST),
View Full Code Here

Examples of com.eagerlogic.cubee.client.utils.Rectangle

    public Rectangle animate(double pos, Rectangle startValue, Rectangle endValue) {
        if (startValue == endValue) {
            return startValue;
        }
        if (startValue == null) {
            startValue = new Rectangle(0, 0, 1000, 1000);
        }
        if (endValue == null) {
            endValue = new Rectangle(0, 0, 1000, 1000);
        }

        return new Rectangle(animateInt(startValue.getX(), endValue.getX(), pos),
                animateInt(startValue.getY(), endValue.getY(), pos),
                animateInt(startValue.getWidth(), endValue.getWidth(), pos),
                animateInt(startValue.getHeight(), endValue.getHeight(), pos)
        );
    }
View Full Code Here

Examples of com.emitrom.lienzo.client.core.shape.Rectangle

        redraw();
    }

    protected void setDefaultRectangle()
    {
        setRectangle(new Rectangle(1, 1).setStrokeColor(new Color(0, 0, 0, 0.5)));
    }
View Full Code Here

Examples of com.extjs.gxt.ui.client.util.Rectangle

  }

  private void showInsert(DNDEvent event, Element row) {
    Insert insert = Insert.get();
    insert.show(row);
    Rectangle rect = El.fly(row).getBounds();
    int y = !before ? (rect.y + rect.height - 4) : rect.y - 2;
    insert.el().setBounds(rect.x, y, rect.width, 6);
  }
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.