Package quicktime.qd

Examples of quicktime.qd.QDRect


/*  528 */           GDevice localGDevice = (GDevice)AccessController.doPrivileged(new PrivilegedAction() {
/*      */             public Object run() {
/*  530 */               return GDevice.getMain();
/*      */             }
/*      */           });
/*  534 */           QDGraphics.scratch = new QDGraphics(QDGraphics.kDefaultPixelFormat, new QDRect(1, 1), null, localGDevice, 2);
/*  535 */           if (qtjwiredDebug) System.out.println("validScratch depth 0x" + Integer.toHexString(QDGraphics.kDefaultPixelFormat));
/*  536 */           QDGraphics.validScratch = new QDGraphics(QDGraphics.kDefaultPixelFormat, new QDRect(1, 1), null, localGDevice, 2);
/*      */         }
/*  538 */         if (qtjwiredDebug) System.out.println("JQTinitialized");
/*      */       }
/*  540 */       else { initDone += 1; }
/*      */
View Full Code Here


/* 184 */       break;
/*     */     case 25:
/*     */     case 49:
/* 187 */       if (paramInt2 != 0)
/*     */       {
/* 189 */         localObject = new QDRect();
/* 190 */         copyPointerToArray(paramInt2, 0, ((QDRect)localObject).getRect(), 0, ((QDRect)localObject).getRect().length);
/* 191 */         bool1 = this.filter.execute(this.movCont, (QDRect)localObject);
/*     */       }
/* 193 */       break;
/*     */     case 18:
View Full Code Here

/*     */   }
/*     */
/*     */   public final QDRect getSourceRect()
/*     */     throws StdQTException
/*     */   {
/* 355 */     QDRect localQDRect = new QDRect();
/* 356 */     int i = GraphicsImportGetSourceRect(_ID(), localQDRect.getRect());
/* 357 */     StdQTException.checkError(i);
/* 358 */     return localQDRect;
/*     */   }
View Full Code Here

/*     */   }
/*     */
/*     */   public final QDRect getNaturalBounds()
/*     */     throws StdQTException
/*     */   {
/* 367 */     QDRect localQDRect = new QDRect();
/* 368 */     int i = GraphicsImportGetNaturalBounds(_ID(), localQDRect.getRect());
/* 369 */     StdQTException.checkError(i);
/* 370 */     return localQDRect;
/*     */   }
View Full Code Here

/*     */   }
/*     */
/*     */   public final QDRect getBoundsRect()
/*     */     throws StdQTException
/*     */   {
/* 421 */     QDRect localQDRect = new QDRect();
/* 422 */     int i = GraphicsImportGetBoundsRect(_ID(), localQDRect.getRect());
/* 423 */     StdQTException.checkError(i);
/* 424 */     return localQDRect;
/*     */   }
View Full Code Here

/*     */   /** @deprecated */
/*     */   protected boolean translateAndIsWithin(QTMouseEvent paramQTMouseEvent)
/*     */   {
/* 202 */     if (this.displaySpace != null) {
/*     */       try {
/* 204 */         QDRect localQDRect1 = this.displaySpace.getDisplayBounds();
/* 205 */         int i = localQDRect1.getX();
/* 206 */         int j = localQDRect1.getY();
/* 207 */         if (this.compSpace != null) {
/* 208 */           int k = i;
/* 209 */           int m = j;
/*     */
/* 211 */           SWCompositor localSWCompositor1 = this.compSpace.getParent();
/* 212 */           while (localSWCompositor1 != null) {
/* 213 */             SWCompositor localSWCompositor2 = localSWCompositor1;
/* 214 */             QDRect localQDRect2 = localSWCompositor2.getDisplayBounds();
/* 215 */             k += localQDRect2.getX();
/* 216 */             m += localQDRect2.getY();
/* 217 */             localSWCompositor1 = localSWCompositor2.getParent();
/*     */           }
/* 219 */           paramQTMouseEvent.translate(-k, -m);
/*     */         } else {
/* 221 */           paramQTMouseEvent.translate(-i, -j);
View Full Code Here

/*     */   {
/*     */   }
/*     */
/*     */   public ImageDrawer(Dimension paramDimension, Image paramImage)
/*     */   {
/*  94 */     this.bounds = new QDRect(paramDimension);
/*  95 */     this.im = paramImage;
/*     */   }
View Full Code Here

/*     */   public void redraw(Region paramRegion)
/*     */     throws QTException
/*     */   {
/* 178 */     if ((this.canv != null) && (this.im != null)) {
/* 179 */       Graphics localGraphics = this.canv.getGraphics();
/* 180 */       QDRect localQDRect = this.bounds;
/* 181 */       if (localQDRect == null) localQDRect = new QDRect(this.canv.getSize());
/* 182 */       localGraphics.drawImage(this.im, 0, 0, localQDRect.getWidth(), localQDRect.getHeight(), this.canv);
/*     */     }
/*     */   }
View Full Code Here

/*     */   public void initialize(QTDisplaySpace paramQTDisplaySpace, Transformable paramTransformable)
/*     */     throws QTException
/*     */   {
/* 205 */     this.target = paramTransformable;
/*     */
/* 207 */     QDRect localQDRect = paramQTDisplaySpace.getDisplayBounds();
/* 208 */     Matrix localMatrix1 = paramQTDisplaySpace.getMatrix();
/*     */
/* 210 */     this.invSpaceMatrix = new Matrix();
/* 211 */     Matrix localMatrix2 = localMatrix1.copy();
/* 212 */     localMatrix2.setTx(0.0F);
/* 213 */     localMatrix2.setTy(0.0F);
/* 214 */     localMatrix2.inverse(this.invSpaceMatrix);
/*     */
/* 216 */     this.origPt = new QDPoint[1];
/* 217 */     this.origPt[0] = new QDPoint(0, 0);
/*     */
/* 219 */     this.origTargetMatrix = this.target.getMatrix();
/* 220 */     this.spaceRect = localQDRect.copy();
/* 221 */     this.spaceRect.setX(0);
/* 222 */     this.spaceRect.setY(0);
/* 223 */     this.invSpaceMatrix.transformRect(this.spaceRect);
/*     */   }
View Full Code Here

/*     */   public void initialize(QTDisplaySpace paramQTDisplaySpace, Transformable paramTransformable, int paramInt1, int paramInt2)
/*     */     throws QTException
/*     */   {
/* 239 */     this.target = paramTransformable;
/*     */
/* 241 */     QDRect localQDRect = paramQTDisplaySpace.getDisplayBounds();
/* 242 */     Matrix localMatrix1 = paramQTDisplaySpace.getMatrix();
/*     */
/* 244 */     this.invSpaceMatrix = new Matrix();
/* 245 */     Matrix localMatrix2 = localMatrix1.copy();
/* 246 */     localMatrix2.setTx(0.0F);
/* 247 */     localMatrix2.setTy(0.0F);
/* 248 */     localMatrix2.inverse(this.invSpaceMatrix);
/*     */
/* 250 */     this.origPt = new QDPoint[1];
/* 251 */     this.origPt[0] = new QDPoint(paramInt1, paramInt2);
/*     */
/* 253 */     this.invSpaceMatrix.transformPoints(this.origPt);
/* 254 */     this.origTargetMatrix = this.target.getMatrix();
/* 255 */     this.spaceRect = localQDRect.copy();
/* 256 */     this.spaceRect.setX(0);
/* 257 */     this.spaceRect.setY(0);
/* 258 */     this.invSpaceMatrix.transformRect(this.spaceRect);
/*     */   }
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.