Package quicktime.qd

Examples of quicktime.qd.QDRect


/*     */   {
/*  75 */     this.initialNumElements = 1;
/*  76 */     this.frames = new Vector(this.initialNumElements, this.initialNumElements);
/*  77 */     this.frames.addElement(paramEncodedImage);
/*  78 */     this.mDesc = paramImageDescription;
/*  79 */     this.bnds = new QDRect(this.mDesc.getWidth(), this.mDesc.getHeight());
/*     */   }
View Full Code Here


/*     */   public DSequenceFromMemory(CSequenceToMemory paramCSequenceToMemory)
/*     */     throws QTException
/*     */   {
/*  92 */     this.mDesc = paramCSequenceToMemory.getDescription();
/*  93 */     this.frames = paramCSequenceToMemory.getFrames();
/*  94 */     this.bnds = new QDRect(this.mDesc.getWidth(), this.mDesc.getHeight());
/*     */   }
View Full Code Here

/* 108 */       this.frames = new Vector(this.initialNumElements, this.initialNumElements);
/* 109 */       for (int i = 1; i <= localImageDataSequence.size(); i++) {
/* 110 */         this.frames.addElement(localImageDataSequence.getImage(i));
/*     */       }
/* 112 */       this.mDesc = localImageDataSequence.getDescription();
/* 113 */       this.bnds = new QDRect(this.mDesc.getWidth(), this.mDesc.getHeight());
/*     */     } else {
/* 115 */       this.initialNumElements = 1;
/* 116 */       this.frames = new Vector();
/* 117 */       this.frames.addElement(paramImageSpec.getImage());
/* 118 */       this.mDesc = paramImageSpec.getDescription();
/* 119 */       this.bnds = new QDRect(this.mDesc.getWidth(), this.mDesc.getHeight());
/*     */     }
/*     */   }
View Full Code Here

/*     */           public Object run() {
/* 204 */             return GDevice.getMain();
/*     */           }
/*     */         });
/* 209 */         if ((this.gd != null) && (!this.gd.equals(localObject))) {
/* 210 */           QDRect localQDRect = this.gd.getBounds();
/* 211 */           if (QTSession.isCurrentOS(4))
/* 212 */             setLocation(localQDRect.getX(), localQDRect.getY() + -22);
/*     */           else
/* 214 */             setLocation(localQDRect.getX() + -5, localQDRect.getY() + -20);
/*     */         }
/* 216 */         else if (QTSession.isCurrentOS(4)) {
/* 217 */           setLocation(0, -44);
/*     */         } else {
/* 219 */           setLocation(-5, -40);
View Full Code Here

/* 189 */       if (this.doConstraintBoundsTesting)
/*     */       {
/* 191 */         Matrix localMatrix2 = new Matrix();
/* 192 */         this.space.getMatrix().inverse(localMatrix2);
/*     */
/* 195 */         QDRect localQDRect1 = this.space.getDisplayBounds().copy();
/* 196 */         localMatrix2.transformRect(localQDRect1);
/*     */
/* 199 */         QDDimension localQDDimension = this.target.getOriginalSize();
/* 200 */         float f1 = localMatrix1.getTx();
/* 201 */         float f2 = localMatrix1.getTy();
/* 202 */         int i = localQDRect1.getX();
/* 203 */         int j = localQDRect1.getWidth() - localQDDimension.getWidth();
/* 204 */         int k = localQDRect1.getY();
/* 205 */         int m = localQDRect1.getHeight() - localQDDimension.getHeight();
/*     */
/* 207 */         switch (localMatrix1.getType()) {
/*     */         case 0:
/*     */         case 1:
/* 210 */           break;
/*     */         default:
/* 214 */           QDRect localQDRect2 = new QDRect(0, 0, localQDDimension.getWidth(), localQDDimension.getHeight());
/* 215 */           localMatrix1.transformRect(localQDRect2);
/* 216 */           localQDDimension.setWidth(localQDRect2.getWidth());
/* 217 */           localQDDimension.setHeight(localQDRect2.getHeight());
/* 218 */           i = (int)(localMatrix1.getTx() - localQDRect2.getX() + 0.5F);
/* 219 */           f1 -= i;
/* 220 */           k = (int)(localMatrix1.getTy() - localQDRect2.getY() + 0.5F);
/* 221 */           f2 -= k;
/* 222 */           m = localQDRect1.getHeight() - localQDDimension.getHeight() + k;
/* 223 */           j = localQDRect1.getWidth() - localQDDimension.getWidth() + i;
/*     */         }
/*     */
View Full Code Here

/*  76 */       this.mClient = paramDrawable;
/*  77 */       int i = this.canvas.currentWidth;
/*  78 */       int j = this.canvas.currentHeight;
/*  79 */       if (paramBoolean)
/*     */       {
/*  81 */         paramQDRect = paramQDRect != null ? paramQDRect : new QDRect(0, 0, this.canvas.getSize().width, this.canvas.getSize().height);
/*     */
/*  83 */         this.canvas.setInitialWidthAndHeight(paramQDRect, paramDimension1, paramDimension2);
/*  84 */         this.canvas.currentX = paramQDRect.getX();
/*  85 */         this.canvas.currentY = paramQDRect.getY();
/*  86 */         this.canvas.currentWidth = this.canvas.initialWidth;
View Full Code Here

/*     */
/*     */   void doClientSetBounds() throws QTException
/*     */   {
/* 168 */     Point localPoint = this.canvas.getNGLocation();
/*     */
/* 170 */     this.mClient.setDisplayBounds(new QDRect(localPoint.x, localPoint.y, this.canvas.currentWidth, this.canvas.currentHeight));
/*     */   }
View Full Code Here

/*     */   /** @deprecated */
/*     */   public void mousePressed(MouseEvent paramMouseEvent)
/*     */   {
/*     */     try
/*     */     {
/* 227 */       QDRect localQDRect = this.space.getDisplayBounds();
/*     */
/* 229 */       this.invSpaceMatrix = new Matrix();
/* 230 */       Matrix localMatrix = this.space.getMatrix().copy();
/* 231 */       localMatrix.setTx(0.0F);
/* 232 */       localMatrix.setTy(0.0F);
/* 233 */       localMatrix.inverse(this.invSpaceMatrix);
/* 234 */       this.origPt = new QDPoint[1];
/* 235 */       this.origPt[0] = new QDPoint(paramMouseEvent.getX(), paramMouseEvent.getY());
/* 236 */       this.invSpaceMatrix.transformPoints(this.origPt);
/* 237 */       this.origTargetMatrix = this.target.getMatrix();
/* 238 */       this.spaceRect = localQDRect.copy();
/* 239 */       this.spaceRect.setX(0);
/* 240 */       this.spaceRect.setY(0);
/* 241 */       this.invSpaceMatrix.transformRect(this.spaceRect);
/*     */     } catch (QTException localQTException) {
/* 243 */       QTRuntimeException.handleOrThrow(new QTRuntimeException(localQTException), this, "mousePressed");
View Full Code Here

/* 276 */       switch (i5) {
/*     */       case 0:
/*     */       case 1:
/* 279 */         break;
/*     */       default:
/* 283 */         QDRect localQDRect = new QDRect(0, 0, m, n);
/* 284 */         localMatrix.transformRect(localQDRect);
/* 285 */         m = localQDRect.getWidth();
/* 286 */         n = localQDRect.getHeight();
/* 287 */         i1 = (int)(localMatrix.getTx() - localQDRect.getX() + 0.5F);
/* 288 */         f1 -= i1;
/* 289 */         i3 = (int)(localMatrix.getTy() - localQDRect.getY() + 0.5F);
/* 290 */         f2 -= i3;
/* 291 */         i4 = this.spaceRect.getHeight() - n + i3;
/* 292 */         i2 = this.spaceRect.getWidth() - m + i1;
/*     */       }
/*     */
View Full Code Here

/* 347 */       QTUtils.checkFreeMemory();
/* 348 */       this.doMemCleanup = false;
/*     */     }
/*     */
/* 351 */     Matrix localMatrix = paramQTDrawable.getMatrix().copy();
/* 352 */     QDRect localQDRect = new QDRect(paramQTDrawable.getOriginalSize());
/* 353 */     localMatrix.transformRect(localQDRect);
/*     */
/* 355 */     QDGraphics localQDGraphics = new QDGraphics(1, localQDRect);
/* 356 */     localQDGraphics.setBackColor(QDColor.white);
/* 357 */     localQDGraphics.eraseRect(localQDRect);
View Full Code Here

TOP

Related Classes of quicktime.qd.QDRect

Copyright © 2018 www.massapicom. 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.