Package quicktime.qd

Examples of quicktime.qd.Region


/*     */   public synchronized void redraw(Region paramRegion)
/*     */     throws QTException
/*     */   {
/* 464 */     if ((this.iData == null) && (this.rei == null))
/*     */       return;
/*     */     Region localRegion;
/* 465 */     if (this.interruptedGrab) {
/* 466 */       localRegion = prepaint();
/* 467 */       if ((localRegion != null) && (paramRegion != null))
/* 468 */         paramRegion = localRegion.union(paramRegion);
/* 469 */       if ((!this.interruptedGrab) && (isSingleFrame()))
/* 470 */         doSingleFrame();
/*     */     }
/* 472 */     else if ((!isSingleFrame()) && (isRedrawing())) {
/* 473 */       localRegion = prepaint();
/* 474 */       if ((localRegion != null) && (paramRegion != null))
/* 475 */         paramRegion = localRegion.union(paramRegion);
/*     */     }
/* 477 */     this.image.redraw(paramRegion);
/*     */   }
View Full Code Here


/*     */   public Region prepaint()
/*     */     throws QTException
/*     */   {
/* 518 */     if (this.offscreenImage == null) return null;
/*     */
/* 520 */     Region localRegion = null;
/*     */     try
/*     */     {
/* 524 */       if (this.offscreenGraphics == null) {
/* 525 */         this.offscreenGraphics = this.offscreenImage.getGraphics();
/*     */       }
/* 527 */       Rectangle[] arrayOfRectangle = this.painter.paint(this.offscreenGraphics);
/* 528 */       if (arrayOfRectangle != null)
/* 529 */         for (int i = 0; (i < arrayOfRectangle.length) &&
/* 530 */           (arrayOfRectangle[i] != null); i++)
/*     */         {
/* 531 */           int j = arrayOfRectangle[i].x;
/* 532 */           int k = arrayOfRectangle[i].y;
/* 533 */           int m = arrayOfRectangle[i].width > this.mSize.width ? this.mSize.width : arrayOfRectangle[i].width;
/* 534 */           int n = arrayOfRectangle[i].height > this.mSize.height ? this.mSize.height : arrayOfRectangle[i].height;
/* 535 */           PixelGrabber localPixelGrabber = new PixelGrabber(this.offscreenImage, j, k, m, n, this.iData.getInts(), k * this.mSize.width + j, this.mSize.width);
/* 536 */           localPixelGrabber.grabPixels();
/* 537 */           if (localRegion == null)
/* 538 */             localRegion = new Region(new QDRect(arrayOfRectangle[i].x, arrayOfRectangle[i].y, arrayOfRectangle[i].width, arrayOfRectangle[i].height));
/*     */           else
/* 540 */             localRegion = localRegion.union(new QDRect(arrayOfRectangle[i].x, arrayOfRectangle[i].y, arrayOfRectangle[i].width, arrayOfRectangle[i].height));
/*     */         }
/*     */     }
/*     */     catch (InterruptedException localInterruptedException) {
/* 544 */       this.interruptedGrab = true;
/* 545 */       if (this.singleFrameFlag == 2)
View Full Code Here

/* 437 */     paramQTMouseEvent.setTarget(this.mousePressTarget);
/* 438 */     if ((this.mouseMoveListener != null) && (this.mouseMoveListener.matchModifierFilter(paramQTMouseEvent.getModifiers()))) {
/* 439 */       if (this.drawSpace != null)
/*     */         try {
/* 441 */           QTDrawable localQTDrawable = (QTDrawable)this.mousePressTarget;
/* 442 */           Region localRegion1 = null;
/* 443 */           localRegion1 = new Region(localQTDrawable.getDisplayBounds());
/*     */
/* 445 */           this.mouseMoveListener.mouseDragged(paramQTMouseEvent);
/*     */
/* 447 */           Region localRegion2 = new Region(localQTDrawable.getDisplayBounds());
/* 448 */           Region localRegion3 = localRegion1.union(localRegion2).diff(localRegion2);
/* 449 */           if (!localRegion3.empty())
/* 450 */             this.drawSpace.redrawMember(localQTDrawable, localRegion3);
/*     */         } catch (QTException localQTException) {
/* 452 */           QTRuntimeException.handleOrThrow(new QTRuntimeException(localQTException), this, "mouseDragged");
/*     */         }
/*     */       else {
View Full Code Here

/*     */     throws QTException
/*     */   {
/*  89 */     super(paramProtocol, paramInt1, paramInt2);
/*  90 */     this.displayBounds = new QDRect(paramQDDimension);
/*  91 */     this.initSize = paramQDDimension;
/*  92 */     this.eraseRegion = new Region(this.displayBounds);
/*  93 */     this.clip = this.eraseRegion;
/*  94 */     setBackgroundColor(paramQDColor);
/*     */   }
View Full Code Here

/* 126 */         if ((localMouseResponder.isInterested(4)) && (localMouseResponder.isActive())) {
/* 127 */           QTDrawable localQTDrawable = this.current;
/* 128 */           doDragTarget(paramMouseEvent);
/* 129 */           this.current = localQTDrawable;
/*     */
/* 131 */           Region localRegion1 = new Region(this.current.getDisplayBounds());
/* 132 */           localMouseResponder.mouseDragged(paramMouseEvent);
/*     */
/* 134 */           Region localRegion2 = new Region(this.current.getDisplayBounds());
/* 135 */           Region localRegion3 = localRegion1.union(localRegion2).diff(localRegion2);
/* 136 */           if (!localRegion3.empty()) {
/* 137 */             this.group.redrawMember(this.current, localRegion3);
/*     */           }
/* 139 */           if (!this.group.hasMember(this.current))
/* 140 */             deactivateResponder();
/*     */         }
View Full Code Here

/*     */     throws QTException
/*     */   {
/* 152 */     if (paramRegion != null)
/* 153 */       this.mMovie.invalidateRegion(paramRegion);
/*     */     else
/* 155 */       this.mMovie.invalidateRegion(new Region(this.mMovie.getBounds()));
/* 156 */     this.mMovie.task(0);
/*     */   }
View Full Code Here

/*     */
/*     */   public void paint(Graphics paramGraphics)
/*     */   {
/* 641 */     if ((isValid()) && (this.qtcHelper != null)) {
/* 642 */       QDGraphics localQDGraphics = null;
/* 643 */       Region localRegion = null;
/*     */       try
/*     */       {
/* 646 */         if ((QTSession.isCurrentOS(1)) || (QTSession.isCurrentOS(4))) {
/* 647 */           localQDGraphics = getPort();
/* 648 */           localRegion = localQDGraphics.getClip();
View Full Code Here

/*     */       }
/* 517 */     } else if (this.canvas.movie != null) {
/* 518 */       if (paramRegion != null)
/* 519 */         this.canvas.movie.invalidateRegion(paramRegion);
/*     */       else
/* 521 */         this.canvas.movie.invalidateRegion(new Region(this.canvas.movie.getBounds()));
/* 522 */       this.canvas.movie.update();
/* 523 */       this.canvas.movie.task(0);
/*     */     }
/*     */     else
/*     */     {
/*     */       Region localRegion;
/* 524 */       if (this.canvas.graphicsImporter != null) {
/* 525 */         if (paramRegion != null) {
/* 526 */           localRegion = this.canvas.graphicsImporter.getClip();
/* 527 */           this.canvas.graphicsImporter.setClip(paramRegion);
/* 528 */           this.canvas.graphicsImporter.draw();
View Full Code Here

/*     */   /** @deprecated */
/*     */   public final synchronized void redraw(Region paramRegion)
/*     */     throws QTException
/*     */   {
/* 251 */     if (paramRegion != null) {
/* 252 */       Region localRegion = this.mGraphicsImporter.getClip();
/* 253 */       this.mGraphicsImporter.setClip(paramRegion);
/* 254 */       this.mGraphicsImporter.draw();
/* 255 */       this.mGraphicsImporter.setClip(localRegion);
/*     */     } else {
/* 257 */       this.mGraphicsImporter.draw();
View Full Code Here

/*     */
/*     */   public final synchronized void redraw(Region paramRegion)
/*     */     throws QTException
/*     */   {
/* 221 */     if (paramRegion != null) {
/* 222 */       Region localRegion = this.mGraphicsImporter.getClip();
/* 223 */       this.mGraphicsImporter.setClip(paramRegion);
/* 224 */       this.mGraphicsImporter.draw();
/* 225 */       this.mGraphicsImporter.setClip(localRegion);
/*     */     } else {
/* 227 */       this.mGraphicsImporter.draw();
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.