Package quicktime.app.anim

Source Code of quicktime.app.anim.SWCompositor$ASpriteWorld

/*     */ package quicktime.app.anim;
/*     */
/*     */ import java.awt.Dimension;
/*     */ import java.util.Enumeration;
/*     */ import java.util.Vector;
/*     */ import quicktime.QTException;
/*     */ import quicktime.QTRuntimeException;
/*     */ import quicktime.QTSession;
/*     */ import quicktime.app.RecordMovie;
/*     */ import quicktime.app.actions.Invalidator;
/*     */ import quicktime.app.actions.Notifier;
/*     */ import quicktime.app.actions.TickleList;
/*     */ import quicktime.app.display.DrawingListener;
/*     */ import quicktime.app.display.DrawingNotifier;
/*     */ import quicktime.app.display.Layerable;
/*     */ import quicktime.app.display.QTDisplaySpace;
/*     */ import quicktime.app.image.Compositable;
/*     */ import quicktime.app.image.DynamicImage;
/*     */ import quicktime.app.image.Transformable;
/*     */ import quicktime.app.spaces.Protocol;
/*     */ import quicktime.app.spaces.SimpleSpace;
/*     */ import quicktime.app.time.Timer;
/*     */ import quicktime.qd.QDColor;
/*     */ import quicktime.qd.QDDimension;
/*     */ import quicktime.qd.QDGraphics;
/*     */ import quicktime.qd.QDPoint;
/*     */ import quicktime.qd.QDRect;
/*     */ import quicktime.qd.Region;
/*     */ import quicktime.std.StdQTException;
/*     */ import quicktime.std.anim.Sprite;
/*     */ import quicktime.std.anim.SpriteWorld;
/*     */ import quicktime.std.image.GraphicsMode;
/*     */ import quicktime.std.image.ImageDescription;
/*     */ import quicktime.std.image.Matrix;
/*     */ import quicktime.util.EncodedImage;
/*     */ import quicktime.util.RawEncodedImage;
/*     */
/*     */ /** @deprecated */
/*     */ public abstract class SWCompositor extends SimpleSpace
/*     */   implements QTDisplaySpace, DynamicImage, DrawingNotifier
/*     */ {
/*  81 */   private static boolean apriori = QTSession.apriori();
/*     */   private static final boolean debug = false;
/* 112 */   public int hitTestFlag = 10;
/*     */
/* 114 */   private QDPoint hitTestPoint = new QDPoint(0, 0);
/*     */   private QDGraphics mBGPict;
/*     */   private QDGraphics mSpriteGWorld;
/* 118 */   private Region mClip = null;
/*     */   private QDColor mBGColor;
/* 120 */   private QDGraphics mCurrentGrafPort = QDGraphics.scratch;
/*     */   private QDRect bnds;
/*     */   private GraphicsMode gMode;
/* 123 */   private Matrix savedMatrix = new Matrix();
/*     */
/* 125 */   private ASpriteWorld mSpriteWorld = null;
/*     */
/*     */   /** @deprecated */
/* 131 */   public int taskFlag = 0;
/*     */
/* 133 */   private int lastDrawRequiresDrawing = 0;
/*     */   private TickleList invalList;
/*     */   private RecordMovie rm;
/* 137 */   private boolean recordMovie = false;
/*     */   TwoDSprite spritePresenter;
/* 140 */   private long startTime = 0L;
/* 141 */   private int frameCount = 0;
/*     */   private SWCompositor parent;
/* 143 */   private boolean autoRedraw = true;
/*     */   private Vector listenerList;
/*     */
/*     */   /** @deprecated */
/*     */   protected SWCompositor(QDGraphics paramQDGraphics1, QDColor paramQDColor, QDGraphics paramQDGraphics2, int paramInt1, int paramInt2, Protocol paramProtocol)
/*     */     throws QTException
/*     */   {
/* 103 */     super(paramProtocol, paramInt1, paramInt2);
/* 104 */     this.mSpriteGWorld = paramQDGraphics1;
/* 105 */     this.mBGColor = paramQDColor;
/* 106 */     this.mBGPict = paramQDGraphics2;
/* 107 */     this.bnds = paramQDGraphics1.getPortRect();
/*     */   }
/*     */
/*     */   SpriteWorld getSpriteWorld()
/*     */   {
/* 182 */     return this.mSpriteWorld;
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   public void resetStatistics()
/*     */   {
/* 189 */     this.startTime = System.currentTimeMillis();
/* 190 */     this.frameCount = 0;
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   public float getStatistics()
/*     */   {
/* 208 */     if ((getTimer().getRate() == 0.0F) || (this.mSpriteWorld == null)) return 0.0F;
/* 209 */     if (this.frameCount == 0) return 0.0F;
/* 210 */     return 1000.0F / (float)((System.currentTimeMillis() - this.startTime) / this.frameCount);
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   public Enumeration getInvalidatorList()
/*     */   {
/* 220 */     return this.invalList == null ? null : this.invalList.members();
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   public synchronized Invalidator getMemberInvalidator(Object paramObject)
/*     */   {
/* 231 */     if (!hasMember(paramObject)) return null;
/* 232 */     if (this.invalList == null) return null;
/* 233 */     Enumeration localEnumeration = this.invalList.members();
/* 234 */     while (localEnumeration.hasMoreElements()) {
/* 235 */       Invalidator localInvalidator = (Invalidator)localEnumeration.nextElement();
/* 236 */       if (localInvalidator.getTarget().equals(paramObject))
/* 237 */         return localInvalidator;
/*     */     }
/* 239 */     return null;
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   public void setRecordMovie(RecordMovie paramRecordMovie)
/*     */     throws QTException
/*     */   {
/* 250 */     this.rm = paramRecordMovie;
/* 251 */     paramRecordMovie.addedToSource(this.mSpriteGWorld);
/* 252 */     this.recordMovie = true;
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   public boolean hasRecordMovie()
/*     */   {
/* 261 */     return this.recordMovie;
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   public ImageDescription getDescription()
/*     */     throws QTException
/*     */   {
/* 271 */     return new ImageDescription(this.mSpriteGWorld.getPixMap());
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   public EncodedImage getImage()
/*     */     throws QTException, IndexOutOfBoundsException
/*     */   {
/* 280 */     return RawEncodedImage.fromPixMap(this.mSpriteGWorld.getPixMap());
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   public SWCompositor getParent()
/*     */   {
/* 289 */     return this.parent;
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   public Matrix getMatrix()
/*     */     throws StdQTException
/*     */   {
/* 298 */     return this.mSpriteWorld != null ? this.mSpriteWorld.getMatrix() : this.savedMatrix;
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   public void setMatrix(Matrix paramMatrix)
/*     */     throws QTException
/*     */   {
/* 307 */     if (this.mSpriteWorld != null)
/* 308 */       this.mSpriteWorld.setMatrix(paramMatrix);
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   public Dimension getInitialSize()
/*     */     throws QTException
/*     */   {
/* 319 */     QDRect localQDRect = this.mSpriteGWorld.getPortRect();
/* 320 */     return new Dimension(localQDRect.getWidth(), localQDRect.getHeight());
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   public QDDimension getOriginalSize()
/*     */     throws QTException
/*     */   {
/* 330 */     QDRect localQDRect = this.mSpriteGWorld.getPortRect();
/* 331 */     return new QDDimension(localQDRect.getWidth(), localQDRect.getHeight());
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   public QDGraphics getGWorld()
/*     */   {
/* 340 */     return this.mCurrentGrafPort;
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   public synchronized void setGWorld(QDGraphics paramQDGraphics)
/*     */     throws QTException
/*     */   {
/* 353 */     if (paramQDGraphics == null)
/* 354 */       paramQDGraphics = QDGraphics.scratch;
/* 355 */     if (paramQDGraphics.equals(this.mCurrentGrafPort)) {
/* 356 */       return;
/*     */     }
/* 358 */     getTimer().setActive(false);
/*     */
/* 360 */     if ((this.mSpriteWorld == null) && (!QDGraphics.scratch.equals(paramQDGraphics))) {
/* 361 */       this.mSpriteWorld = new ASpriteWorld(paramQDGraphics, this.mSpriteGWorld, this.mBGColor, this.mBGPict, this);
/* 362 */       if (this.gMode != null)
/* 363 */         this.mSpriteWorld.setGraphicsMode(this.gMode);
/* 364 */       setMatrix(this.savedMatrix);
/* 365 */       createMembers();
/*     */     }
/* 368 */     else if (QDGraphics.scratch.equals(paramQDGraphics)) {
/* 369 */       saveMembers();
/* 370 */       this.savedMatrix = this.mSpriteWorld.getMatrix();
/* 371 */       this.mSpriteWorld._cleanup();
/* 372 */       this.mSpriteWorld = null;
/*     */     } else {
/* 374 */       saveMembers();
/* 375 */       this.savedMatrix = this.mSpriteWorld.getMatrix();
/* 376 */       this.mSpriteWorld._cleanup();
/* 377 */       this.mSpriteWorld = null;
/* 378 */       this.mSpriteWorld = new ASpriteWorld(paramQDGraphics, this.mSpriteGWorld, this.mBGColor, this.mBGPict, this);
/* 379 */       if (this.gMode != null)
/* 380 */         this.mSpriteWorld.setGraphicsMode(this.gMode);
/* 381 */       setMatrix(this.savedMatrix);
/* 382 */       createMembers();
/*     */     }
/*     */
/* 386 */     this.mCurrentGrafPort = paramQDGraphics;
/* 387 */     getTimer().setActive(this.mSpriteWorld != null);
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   public synchronized void setDisplayBounds(QDRect paramQDRect)
/*     */     throws StdQTException
/*     */   {
/* 398 */     if (this.mSpriteWorld != null) {
/* 399 */       this.mSpriteWorld.setBounds(paramQDRect);
/*     */     } else {
/* 401 */       this.savedMatrix.setTx(paramQDRect.getX());
/* 402 */       this.savedMatrix.setTy(paramQDRect.getY());
/* 403 */       QDRect localQDRect = this.mSpriteGWorld.getPortRect();
/* 404 */       this.savedMatrix.setSx(paramQDRect.getWidth() / localQDRect.getWidth());
/* 405 */       this.savedMatrix.setSy(paramQDRect.getHeight() / localQDRect.getHeight());
/*     */     }
/* 407 */     this.bnds = paramQDRect;
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   public void setLocation(int paramInt1, int paramInt2)
/*     */     throws QTException
/*     */   {
/* 417 */     QDRect localQDRect = getDisplayBounds();
/* 418 */     localQDRect.setX(paramInt1);
/* 419 */     localQDRect.setY(paramInt2);
/* 420 */     setDisplayBounds(localQDRect);
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   public QDRect getDisplayBounds()
/*     */     throws QTException
/*     */   {
/* 430 */     if (this.mSpriteWorld != null) return this.mSpriteWorld.getBounds();
/* 431 */     return this.bnds;
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   public final void redraw(Region paramRegion)
/*     */     throws QTException
/*     */   {
/* 444 */     if (this.mSpriteWorld != null) {
/* 445 */       QDRect localQDRect1 = null;
/* 446 */       if (paramRegion != null) {
/* 447 */         QDRect localQDRect2 = paramRegion.getRgnBBox();
/* 448 */         localQDRect1 = localQDRect2.union(getDisplayBounds());
/* 449 */         if (localQDRect2.equals(localQDRect1))
/* 450 */           localQDRect1 = null;
/*     */         else
/* 452 */           localQDRect1 = localQDRect2.intersection(getDisplayBounds());
/*     */       }
/* 454 */       this.mSpriteWorld.invalidate(localQDRect1);
/* 455 */       idle();
/*     */     }
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   public boolean isAutoRedrawing()
/*     */   {
/* 466 */     return this.autoRedraw;
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   public void setAutoRedrawing(boolean paramBoolean)
/*     */   {
/* 492 */     this.autoRedraw = paramBoolean;
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   protected void idle()
/*     */     throws QTException
/*     */   {
/* 509 */     this.mSpriteWorld._idle(this.taskFlag);
/* 510 */     if ((this.spritePresenter != null) && (this.lastDrawRequiresDrawing != 0)) {
/* 511 */       this.lastDrawRequiresDrawing = 0;
/* 512 */       this.spritePresenter.invalidate();
/*     */     }
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   public Object hitTest(int paramInt1, int paramInt2)
/*     */     throws QTException
/*     */   {
/* 528 */     if (this.mSpriteWorld != null) {
/* 529 */       this.hitTestPoint.setX(paramInt1);
/* 530 */       this.hitTestPoint.setY(paramInt2);
/*     */
/* 532 */       if ((getClip() != null) &&
/* 533 */         (!getClip().pointIn(this.hitTestPoint))) {
/* 534 */         return null;
/*     */       }
/*     */
/* 537 */       Sprite localSprite = this.mSpriteWorld.hitTest(this.hitTestFlag, this.hitTestPoint);
/* 538 */       if (localSprite == null) return null;
/* 539 */       Enumeration localEnumeration = sprites();
/* 540 */       while (localEnumeration.hasMoreElements()) {
/* 541 */         TwoDSprite localTwoDSprite = (TwoDSprite)localEnumeration.nextElement();
/* 542 */         if (localSprite.equals(localTwoDSprite.getSprite())) {
/* 543 */           return localTwoDSprite;
/*     */         }
/*     */       }
/*     */     }
/* 547 */     return null;
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   public void setClip(Region paramRegion)
/*     */     throws QTException
/*     */   {
/* 557 */     if (this.mSpriteWorld != null) {
/* 558 */       this.mSpriteWorld.setClip(paramRegion);
/*     */     }
/* 560 */     this.mClip = paramRegion;
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   public Region getClip()
/*     */   {
/* 569 */     return this.mClip;
/*     */   }
/*     */
/*     */   public boolean tickle(float paramFloat, int paramInt)
/*     */     throws QTException
/*     */   {
/* 584 */     Timer localTimer = getTimer();
/* 585 */     if ((localTimer.isActive()) && (this.mSpriteWorld != null)) {
/* 586 */       super.tickle(paramFloat, paramInt);
/* 587 */       if (this.invalList != null)
/* 588 */         this.invalList.tickle(paramFloat, paramInt);
/* 589 */       idle();
/* 590 */       this.frameCount += 1;
/* 591 */       return this.mSpriteWorld != null;
/*     */     }
/* 593 */     return false;
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   public synchronized void removedFromCompositor(SWCompositor paramSWCompositor)
/*     */     throws QTException
/*     */   {
/* 604 */     this.spritePresenter.spriteIsCompositor = null;
/* 605 */     this.spritePresenter = null;
/* 606 */     this.parent = null;
/* 607 */     setGWorld(QDGraphics.scratch);
/* 608 */     this.taskFlag = 0;
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   public Invalidator addedToCompositor(SWCompositor paramSWCompositor, TwoDSprite paramTwoDSprite)
/*     */     throws QTException
/*     */   {
/* 632 */     if (this.spritePresenter != null)
/* 633 */       removedFromCompositor(null);
/* 634 */     setGWorld(QDGraphics.validScratch);
/* 635 */     this.taskFlag = 1;
/* 636 */     this.spritePresenter = paramTwoDSprite;
/* 637 */     this.spritePresenter.spriteIsCompositor = this;
/* 638 */     this.parent = paramSWCompositor;
/* 639 */     return null;
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   public GraphicsMode getGraphicsMode()
/*     */   {
/* 650 */     return this.gMode;
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   public void setGraphicsMode(GraphicsMode paramGraphicsMode)
/*     */     throws QTException
/*     */   {
/* 659 */     if (this.mSpriteWorld != null)
/* 660 */       this.mSpriteWorld.setGraphicsMode(paramGraphicsMode);
/* 661 */     this.gMode = paramGraphicsMode;
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   public abstract TwoDSprite getMemberSprite(Object paramObject);
/*     */
/*     */   /** @deprecated */
/*     */   public abstract Enumeration sprites();
/*     */
/*     */   /** @deprecated */
/*     */   public abstract Object getSpriteMember(TwoDSprite paramTwoDSprite);
/*     */
/*     */   /** @deprecated */
/*     */   public Compositable getCompositable(Object paramObject)
/*     */   {
/* 698 */     return getMemberSprite(paramObject);
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   public Layerable getLayerable(Object paramObject)
/*     */   {
/* 709 */     return getMemberSprite(paramObject);
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   public Transformable getTransformable(Object paramObject)
/*     */   {
/* 720 */     return getMemberSprite(paramObject);
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   protected synchronized void postProcessAdd(Object paramObject, TwoDSprite paramTwoDSprite)
/*     */     throws QTException
/*     */   {
/* 737 */     doDynamicImageAdd(paramObject, paramTwoDSprite);
/* 738 */     paramTwoDSprite.setParent(this);
/* 739 */     if ((paramObject instanceof Notifier)) {
/* 740 */       Notifier localNotifier = (Notifier)paramObject;
/* 741 */       localNotifier.addNotifyListener(paramTwoDSprite);
/*     */     }
/* 743 */     memberAdded(paramObject);
/* 744 */     if (this.mSpriteWorld != null) {
/* 745 */       paramTwoDSprite.createSprite(this.mSpriteWorld);
/* 746 */       if (this.autoRedraw)
/* 747 */         idle();
/*     */     }
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   protected synchronized void postProcessRemove(Object paramObject, TwoDSprite paramTwoDSprite)
/*     */     throws QTException
/*     */   {
/* 763 */     doDynamicImageRemove(paramObject, paramTwoDSprite);
/* 764 */     memberRemoved(paramObject);
/* 765 */     paramTwoDSprite.remove();
/* 766 */     paramTwoDSprite.setParent(null);
/* 767 */     if ((this.autoRedraw) && (this.mSpriteWorld != null))
/* 768 */       idle();
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   protected void saveMembers()
/*     */     throws QTException
/*     */   {
/* 781 */     boolean bool = this.autoRedraw;
/*     */     try {
/* 783 */       this.autoRedraw = false;
/* 784 */       for (localEnumeration = sprites(); localEnumeration.hasMoreElements(); ) {
/* 785 */         TwoDSprite localTwoDSprite = (TwoDSprite)localEnumeration.nextElement();
/* 786 */         doDynamicImageRemove(getSpriteMember(localTwoDSprite), localTwoDSprite);
/* 787 */         localTwoDSprite.removeNotify();
/*     */       }
/*     */     }
/*     */     finally
/*     */     {
/*     */       Enumeration localEnumeration;
/* 790 */       this.autoRedraw = bool;
/*     */     }
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   protected void createMembers()
/*     */     throws QTException
/*     */   {
/* 804 */     boolean bool = this.autoRedraw;
/*     */     try {
/* 806 */       this.autoRedraw = false;
/* 807 */       for (localEnumeration = sprites(); localEnumeration.hasMoreElements(); ) {
/* 808 */         TwoDSprite localTwoDSprite = (TwoDSprite)localEnumeration.nextElement();
/* 809 */         localTwoDSprite.createSprite(this.mSpriteWorld);
/* 810 */         doDynamicImageAdd(getSpriteMember(localTwoDSprite), localTwoDSprite);
/*     */       }
/*     */     }
/*     */     finally
/*     */     {
/*     */       Enumeration localEnumeration;
/* 813 */       this.autoRedraw = bool;
/*     */     }
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   public String toString()
/*     */   {
/*     */     try
/*     */     {
/* 823 */       return getClass().getName() + "[sw=" + this.mSpriteWorld + ",timer=" + getTimer() + ",grafPort=" + getGWorld() + ",bounds=" + getDisplayBounds() + "]"; } catch (QTException localQTException) {
/*     */     }
/* 825 */     return getClass().getName();
/*     */   }
/*     */
/*     */   private void doDynamicImageAdd(Object paramObject, TwoDSprite paramTwoDSprite) throws QTException
/*     */   {
/* 830 */     if ((this.mSpriteWorld != null) && ((paramObject instanceof DynamicImage))) {
/* 831 */       Invalidator localInvalidator = ((DynamicImage)paramObject).addedToCompositor(this, paramTwoDSprite);
/* 832 */       if (localInvalidator != null) {
/* 833 */         if (this.invalList == null)
/* 834 */           this.invalList = new TickleList();
/* 835 */         this.invalList.addMember(localInvalidator);
/*     */       }
/*     */     }
/*     */   }
/*     */
/*     */   private void doDynamicImageRemove(Object paramObject, TwoDSprite paramTwoDSprite) throws QTException {
/* 841 */     if ((this.mSpriteWorld != null) && ((paramObject instanceof DynamicImage))) {
/* 842 */       ((DynamicImage)paramObject).removedFromCompositor(this);
/* 843 */       if (this.invalList != null) {
/* 844 */         Enumeration localEnumeration = this.invalList.members();
/* 845 */         while (localEnumeration.hasMoreElements()) {
/* 846 */           Invalidator localInvalidator = (Invalidator)localEnumeration.nextElement();
/* 847 */           if (localInvalidator.getTarget().equals(paramTwoDSprite)) {
/* 848 */             this.invalList.removeMember(localInvalidator);
/* 849 */             break;
/*     */           }
/*     */         }
/* 852 */         if (this.invalList.isEmpty())
/* 853 */           this.invalList = null;
/*     */       }
/*     */     }
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   public synchronized void addDrawingListener(DrawingListener paramDrawingListener)
/*     */   {
/* 864 */     if (this.listenerList == null) {
/* 865 */       this.listenerList = new Vector();
/*     */     }
/* 867 */     if (this.listenerList.contains(paramDrawingListener)) {
/* 868 */       return;
/*     */     }
/* 870 */     this.listenerList.addElement(paramDrawingListener);
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   public synchronized void removeDrawingListener(DrawingListener paramDrawingListener)
/*     */   {
/* 878 */     this.listenerList.removeElement(paramDrawingListener);
/*     */
/* 880 */     if (this.listenerList.isEmpty())
/* 881 */       this.listenerList = null;
/*     */   }
/*     */
/*     */   static
/*     */   {
/*  84 */     if ((QTSession.isCurrentOS(4)) && (QTSession.getJavaVersion() >= 65540))
/*  85 */       throw new QTRuntimeException("Unsupported on Mac OS X and Java 1.4 and higher.");
/*     */   }
/*     */
/*     */   final class ASpriteWorld extends SpriteWorld
/*     */   {
/*     */     SWCompositor theCompositor;
/*     */
/*     */     ASpriteWorld(QDGraphics paramQDGraphics1, QDGraphics paramQDColor, QDColor paramQDGraphics2, QDGraphics paramSWCompositor, SWCompositor arg6)
/*     */       throws QTException
/*     */     {
/* 150 */       super(paramQDColor, paramQDGraphics2, paramSWCompositor);
/*     */       Object localObject;
/* 151 */       this.theCompositor = localObject;
/*     */     }
/*     */
/*     */     void _idle(int paramInt) throws QTException {
/* 155 */       SWCompositor.this.lastDrawRequiresDrawing = idle(paramInt);
/*     */
/* 157 */       if (SWCompositor.this.recordMovie) {
/* 158 */         SWCompositor.this.recordMovie = SWCompositor.this.rm.frameReady();
/* 159 */         if (!SWCompositor.this.recordMovie)
/* 160 */           SWCompositor.this.rm = null;
/*     */       }
/* 162 */       if (SWCompositor.this.listenerList != null)
/* 163 */         synchronized (SWCompositor.this) {
/* 164 */           for (int i = 0; i < SWCompositor.this.listenerList.size(); i++)
/* 165 */             ((DrawingListener)SWCompositor.this.listenerList.elementAt(i)).drawingComplete(this.theCompositor);
/*     */         }
/*     */     }
/*     */
/*     */     void _cleanup()
/*     */     {
/*     */       try {
/* 172 */         finalize();
/*     */       } catch (Throwable localThrowable) {
/* 174 */         QTRuntimeException.handleOrThrow(new QTRuntimeException(localThrowable.getMessage()), this, "finalize");
/*     */       }
/*     */     }
/*     */   }
/*     */ }

/* Location:           Z:\System\Library\Java\Extensions\QTJava.zip
* Qualified Name:     quicktime.app.anim.SWCompositor
* JD-Core Version:    0.6.2
*/
TOP

Related Classes of quicktime.app.anim.SWCompositor$ASpriteWorld

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.