Package quicktime.qd

Examples of quicktime.qd.Region


/*     */     throws QTException
/*     */   {
/* 173 */     if (paramRegion != null)
/* 174 */       this.mMovie.invalidateRegion(paramRegion);
/*     */     else {
/* 176 */       this.mMovie.invalidateRegion(new Region(this.mMovie.getBounds()));
/*     */     }
/* 178 */     this.mMovie.task(0);
/*     */   }
View Full Code Here


/*     */     throws QTException
/*     */   {
/* 216 */     if (paramRegion != null)
/* 217 */       this.m.invalidateRegion(paramRegion);
/*     */     else
/* 219 */       this.m.invalidateRegion(new Region(this.m.getBounds()));
/* 220 */     this.m.task(0);
/* 221 */     if ((this.spritePresenter != null) && (this.spritePresenter.isValid())) {
/* 222 */       this.spritePresenter.invalidate();
/*     */     }
/* 224 */     super.redraw(paramRegion);
View Full Code Here

/*      */   }
/*      */
/*      */   public Region getHotSpotRegion(int paramInt)
/*      */     throws QTException
/*      */   {
/*  777 */     Region localRegion = new Region();
/*  778 */     int i = 0;
/*  779 */     synchronized (QTNative.globalsLock) {
/*  780 */       i = QTVRGetHotSpotRegion(_ID(), paramInt, QTObject.ID(localRegion));
/*      */     }
/*  782 */     QTVRException.checkError(i);
View Full Code Here

/*      */   {
/* 1048 */     if (this.qtcHelper.mClient != null)
/* 1049 */       if (isValid()) {
/* 1050 */         synchronized (this) {
/* 1051 */           QDGraphics localQDGraphics = null;
/* 1052 */           Region localRegion = null;
/*      */           try
/*      */           {
/* 1055 */             if ((QTSession.isCurrentOS(1)) || (QTSession.isCurrentOS(4))) {
/* 1056 */               localQDGraphics = getPort();
/* 1057 */               localRegion = localQDGraphics.getClip();
View Full Code Here

/* 250 */         int i = 0;
/* 251 */         int j = 0;
/* 252 */         for (int k = 0; k < this.vec.size(); k++) {
/* 253 */           GroupMember localGroupMember2 = (GroupMember)this.vec.elementAt(k);
/* 254 */           if (i != 0) {
/* 255 */             Region localRegion2 = localGroupMember2.drawer.getClip().sect(paramRegion);
/* 256 */             if (!localRegion2.empty()) {
/* 257 */               localGroupMember2.drawer.redraw(localRegion2);
/*     */             }
/*     */           }
/* 260 */           if ((i == 0) && (localGroupMember2.drawer.equals(paramQTDrawable))) {
/* 261 */             localGroupMember2.drawer.redraw(null);
/* 262 */             i = 1;
/* 263 */             if (paramRegion != null)
/* 264 */               paramRegion = paramRegion.union(localGroupMember1.clipRegion);
/*     */             else
/* 266 */               paramRegion = localGroupMember1.clipRegion;
/*     */           }
/*     */         }
/* 269 */         Region localRegion1 = paramRegion.sect(this.eraseRegion);
/* 270 */         if (!localRegion1.empty()) {
/* 271 */           this.port.setBackColor(this.bgColor);
/* 272 */           this.port.eraseRgn(localRegion1);
/*     */         }
/*     */       }
/*     */     } else {
View Full Code Here

/*     */
/*     */   /** @deprecated */
/*     */   public void setClip(Region paramRegion)
/*     */     throws QTException
/*     */   {
/* 286 */     this.clip = (paramRegion == null ? new Region(getDisplayBounds()) : paramRegion.sect(getDisplayBounds()));
/* 287 */     Region localRegion = this.clip;
/* 288 */     Object localObject = null;
/* 289 */     this.doMemCleanup = true;
/* 290 */     for (int i = 0; i < this.vec.size(); i++) {
/* 291 */       GroupMember localGroupMember = (GroupMember)this.vec.elementAt(i);
/* 292 */       if (localObject != null)
/* 293 */         localRegion = localRegion.diff(drawersRegion((GroupMember)localObject));
/* 294 */       localGroupMember.drawer.setClip(localRegion);
/*     */
/* 296 */       localObject = localGroupMember;
/*     */     }
/* 298 */     if (localObject != null)
/* 299 */       this.eraseRegion = localRegion.diff(drawersRegion((GroupMember)localObject));
/*     */     else {
/* 301 */       this.eraseRegion = localRegion;
/*     */     }
/*     */
/* 304 */     if (!this.doMemCleanup)
View Full Code Here

/* 321 */       if ((localMatrix.getSx() < 0.0F) || (localMatrix.getSy() < 0.0F))
/* 322 */         j = 1; break;
/*     */     }
/*     */
/* 334 */     if ((paramGroupMember.clipRegion == null) || (this.redoCachedMembersClip))
/* 335 */       paramGroupMember.clipRegion = (j != 0 ? createRotatedRegion(localQTDrawable) : new Region(localQTDrawable.getDisplayBounds()));
/* 336 */     return paramGroupMember.clipRegion;
/*     */   }
View Full Code Here

/* 358 */     paramQTDrawable.setGWorld(localQDGraphics);
/* 359 */     paramQTDrawable.redraw(null);
/* 360 */     paramQTDrawable.setGWorld(getGWorld());
/*     */     try
/*     */     {
/* 363 */       return new Region(localQDGraphics.getPixMap());
/*     */     } catch (QTException localQTException1) {
/* 365 */       if ((localQTException1.errorCode() == -108) || (localQTException1.errorCode() == -500))
/*     */       {
/* 368 */         QTUtils.reclaimMemory();
/*     */         try {
/* 370 */           return new Region(localQDGraphics.getPixMap());
/*     */         } catch (QTException localQTException2) {
/* 372 */           if (localQTException2.errorCode() == -500) {
/* 373 */             new QTHandle(512000, false);
/* 374 */             return new Region(localQDGraphics.getPixMap());
/*     */           }
/*     */         }
/*     */       }
/* 378 */       throw localQTException1;
/*     */     }
View Full Code Here

/*     */
/*     */   private boolean setClips(QTDrawable paramQTDrawable)
/*     */     throws QTException
/*     */   {
/* 442 */     boolean bool = false;
/* 443 */     Region localRegion = this.clip;
/* 444 */     Object localObject = null;
/* 445 */     for (int i = 0; i < this.vec.size(); i++) {
/* 446 */       GroupMember localGroupMember = (GroupMember)this.vec.elementAt(i);
/* 447 */       if (localObject != null)
/* 448 */         localRegion = localRegion.diff(localObject.clipRegion);
/* 449 */       localObject = localGroupMember;
/* 450 */       if (localObject.drawer.equals(paramQTDrawable)) {
/* 451 */         bool = true;
/*     */
/* 453 */         this.doMemCleanup = true;
/* 454 */         localObject.clipRegion = null;
/* 455 */         this.redoCachedMembersClip = true;
/* 456 */         for (i++; i < this.vec.size(); i++) {
/* 457 */           localGroupMember = (GroupMember)this.vec.elementAt(i);
/* 458 */           localRegion = localRegion.diff(drawersRegion(localObject));
/* 459 */           localGroupMember.drawer.setClip(localRegion);
/* 460 */           localObject = localGroupMember;
/*     */         }
/*     */       }
/*     */
/*     */     }
/*     */
/* 466 */     if (localObject != null) {
/* 467 */       this.eraseRegion = localRegion.diff(drawersRegion(localObject));
/*     */     }
/* 469 */     this.redoCachedMembersClip = false;
/*     */
/* 472 */     if (!this.doMemCleanup) {
/* 473 */       QTUtils.reclaimMemory();
View Full Code Here

/*  211 */           GetGWorld(savedPort, savedDevice);
/*      */         }
/*  213 */         SetGWorld(this.currentPort, 0);
/*      */
/*  215 */         QDGraphics localQDGraphics = getPort();
/*  216 */         Region localRegion = localQDGraphics.getVisClipRgn();
/*      */
/*  218 */         i = MCIdle(_ID());
/*      */
/*  220 */         if ((QTSession.getJavaVersion() == 65539) && (QTSession.isCurrentOS(4))) {
/*  221 */           long l = System.currentTimeMillis();
View Full Code Here

TOP

Related Classes of quicktime.qd.Region

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.