Examples of Rectangle


Examples of com.sun.dtv.lwuit.geom.Rectangle

                wrapper.translate(-wrapper.getTranslateX(), -wrapper.getTranslateY());
                wrapper.setClip(0, 0, getWidth(), getHeight());
                if (ani instanceof Component) {
                    Component cmp = (Component) ani;
                    System.out.println(cmp.getUIID() + " <- imprimido");
                    Rectangle dirty = cmp.getDirtyRegion();
                    //Rectangle dirty = new Rectangle(0, 0, cmp.getPreferredSize()) ;
                    if (dirty != null) {
                        System.out.println(cmp.getUIID() + " <- sujo");
                        wrapper.setClip(dirty.getX(), dirty.getY(), dirty.getSize().getWidth(), dirty.getSize().getHeight());
                        cmp.setDirtyRegion(null);
                    }

                    cmp.paintComponent(wrapper);
                    int cmpAbsX = cmp.getAbsoluteX() + cmp.getScrollX();
View Full Code Here

Examples of com.sun.star.awt.Rectangle

        final XWindow queryWin = xWindow;

        tEnv.addObjRelation("EventProducer",
                            new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer() {
            public void fireEvent() {
                Rectangle rect = queryWin.getPosSize();
                queryWin.setPosSize(rect.X, rect.Y, rect.Height-5, rect.Width-5, PosSize.POSSIZE);
            }
        });

        return tEnv;
View Full Code Here

Examples of de.eydamos.guiadvanced.util.Rectangle

            int offset = getHoverState(field_146123_n);
            GL11.glEnable(GL11.GL_BLEND);
            OpenGlHelper.glBlendFunc(770, 771, 1, 0);
            GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);

            Rectangle rectangle = new Rectangle(2, 2);
            rectangle.setBackground(buttonTextures);
            rectangle.setBackgroundSize(2, 2);
            // draw upper left corner
            rectangle.setBackgroundPosition(0, 46 + offset * 20);
            rectangle.draw(xPosition, yPosition);
            // draw upper right corner
            rectangle.setBackgroundPosition(198, 46 + offset * 20);
            rectangle.draw(xPosition + width - 2, yPosition);
            // draw lower left corner
            rectangle.setBackgroundPosition(0, 64 + offset * 20);
            rectangle.draw(xPosition, yPosition + height - 2);
            // draw lower right corner
            rectangle.setBackgroundPosition(198, 64 + offset * 20);
            rectangle.draw(xPosition + width - 2, yPosition + height - 2);

            // borders top/bottom
            rectangle.setWidth(width - 4);
            rectangle.setBackgroundRepeat(BackgroundRepeat.REPEAT_X);
            // draw top border
            rectangle.setBackgroundPosition(2, 46 + offset * 20);
            rectangle.draw(xPosition + 2, yPosition);
            // draw bottom border
            rectangle.setBackgroundPosition(2, 64 + offset * 20);
            rectangle.draw(xPosition + 2, yPosition + height - 2);

            // borders left/right
            rectangle.setWidth(2);
            rectangle.setHeight(height - 4);
            rectangle.setBackgroundRepeat(BackgroundRepeat.REPEAT_Y);
            // draw left border
            rectangle.setBackgroundPosition(0, 48 + offset * 20);
            rectangle.draw(xPosition, yPosition + 2);
            // draw right border
            rectangle.setBackgroundPosition(198, 48 + offset * 20);
            rectangle.draw(xPosition + width - 2, yPosition + 2);

            // draw background
            rectangle.setWidth(width - 4);
            rectangle.setHeight(height - 4);
            rectangle.setBackgroundSize(18, 18);
            rectangle.setBackgroundRepeat(BackgroundRepeat.REPEAT);
            rectangle.setBackgroundPosition(2, 48 + offset * 20);
            rectangle.draw(xPosition + 2, yPosition + 2);

            mouseDragged(mc, mouseX, mouseY);
            int l = 14737632;

            if(packedFGColour != 0) {
View Full Code Here

Examples of engine.geometry.Rectangle

    }

    @Override
    protected void onAdd() {
        AnimationHabit animation = addHabit(new AnimationHabit());
        dynamic = addHabit(new DynamicHabit(new Rectangle(startPosition, new Vector(24, 48)).toPolygon(), 60));
        addHabit(new GravityHabit(dynamic));
        state = addHabit(new PlatformCharacterStateHabit(dynamic));
        addHabit(new PlatformCharacterInputHabit(state));
        addHabit(new PlatformCharacterAnimationHabit("player", 52, animation, state));
        addHabit(new PlatformCharacterMovementHabit(state, dynamic, animation));
View Full Code Here

Examples of general.datastructures.Rectangle

    {
      if(s.equals(this))
      {
        continue;
      }
      if(s.getCollisionRectangle().intersects(new Rectangle(wc_targetpos, getWidth(), getHeight())))
      {
        System.out.println("Kollision: "+this.getName()+" ist mit "+s.getName()+" kollidiert!");
        collidingSprites.add(s);
      }
    }
View Full Code Here

Examples of gnu.x11.Rectangle

        public Object next () {
          int x = this.read2 (0);
          int y = this.read2 (2);
          int width = this.read2 (4);
          int height = this.read2 (6);
          Rectangle rectangle = new Rectangle (x, y, width, height);
 
          inc (8);
          return rectangle;
        }
      };
View Full Code Here

Examples of gwt.g2d.client.math.Rectangle

 
  /**
   * Gets the rectangle that encloses this surface.
   */
  public Rectangle getViewRectangle() {
    return new Rectangle(0, 0, getWidth(), getHeight());
  }
View Full Code Here

Examples of gwt.g2d.shared.math.Rectangle

 
  /**
   * Gets the rectangle that encloses this surface.
   */
  public Rectangle getViewRectangle() {
    return new Rectangle(0, 0, getCoordinateSpaceWidth(), getCoordinateSpaceHeight());
  }
View Full Code Here

Examples of java.awt.Rectangle

      }
    }

    // Using the information of the clip bounds, we can speed up painting
    // significantly
    Rectangle clipBounds = grp.getClipBounds();

    // Paint the table cells
    int minCol = clipBounds.x / mColumnWidth;
    if (minCol < 0) {
      minCol = 0;
    }
    int maxCol = (clipBounds.x + clipBounds.width) / mColumnWidth;
    int columnCount = mModel.getColumnCount();
    if (maxCol >= columnCount) {
      maxCol = columnCount - 1;
    }

    // Paint the background
    super.paintComponent(grp);
    int tableHeight = Math.max(mHeight, clipBounds.y + clipBounds.height);
    mBackgroundPainter.paintBackground(grp, mColumnWidth, tableHeight,
        minCol, maxCol, clipBounds, mLayout, mModel);

    boolean mouseOver = false;

    int x = minCol * mColumnWidth;
    for (int col = minCol; col <= maxCol; col++) {
      int y = mLayout.getColumnStart(col);

      int rowCount = mModel.getRowCount(col);
      for (int row = 0; row < rowCount; row++) {
        // Get the program
        ProgramPanel panel = mModel.getProgramPanel(col, row);

        // Render the program
        if (panel != null) {
          int cellHeight = panel.getHeight();

          // Check whether the cell is within the clipping area
          if (((y + cellHeight) > clipBounds.y)
              && (y < (clipBounds.y + clipBounds.height))) {

            Rectangle rec = new Rectangle(x, y, mColumnWidth, cellHeight);
            if (Settings.propProgramTableMouseOver.getBoolean()) {
              if ((mMouse != null) && (rec.contains(mMouse))) {
                mouseOver = true;
              } else {
                mouseOver = false;
              }
            }

            // calculate clipping intersection between global clip border and current cell rectangle
            Shape oldClip = grp.getClip();
            rec = rec.intersection((Rectangle)oldClip);

            // Paint the cell
            if (rec.width > 0 || rec.height > 0) {
              grp.setClip(rec);
              grp.translate(x, y);
View Full Code Here

Examples of java.awt.Rectangle

        // check for intersection between two lists; if non-empty check
        // for contains
        Vector<Rectangle> vHoriz = tbtHorizProj.getValue();
        Vector<Rectangle> vVert = tbtVertProj.getValue();
        for (Enumeration<Rectangle> e = vHoriz.elements(); e.hasMoreElements();) {
            Rectangle r = e.nextElement();
            for (Enumeration<Rectangle> f = vVert.elements(); f.hasMoreElements();) {
                Rectangle s = f.nextElement();
                if (r == s) {
                    if (s.contains(p)) {
                        return s;
                    }
                }
            }
        }
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.