Package quicktime.app.event

Source Code of quicktime.app.event.QTMouseTargetController

/*     */ package quicktime.app.event;
/*     */
/*     */ import java.util.Enumeration;
/*     */ import java.util.Vector;
/*     */ import quicktime.QTException;
/*     */ import quicktime.QTRuntimeException;
/*     */ import quicktime.QTSession;
/*     */ import quicktime.app.anim.SWCompositor;
/*     */ import quicktime.app.anim.TwoDSprite;
/*     */ import quicktime.app.display.GroupDrawable;
/*     */ import quicktime.app.display.QTDisplaySpace;
/*     */ import quicktime.app.display.QTDrawable;
/*     */ import quicktime.app.spaces.Collection;
/*     */ import quicktime.app.spaces.Space;
/*     */ import quicktime.qd.QDPoint;
/*     */ import quicktime.qd.QDRect;
/*     */ import quicktime.qd.Region;
/*     */
/*     */ /** @deprecated */
/*     */ public class QTMouseTargetController extends QTMouseController
/*     */   implements Collection
/*     */ {
/*     */   private Object mousePressTarget;
/*     */   private boolean inPressDraggingTarget;
/*  86 */   private QDPoint cachePoint = new QDPoint(0, 0);
/*     */   MouseTargetListener mouseTargetListener;
/*  89 */   private Object currentMouseMovedTarget = null;
/*     */   private boolean wholespace;
/*     */   private Vector memberVec;
/*     */
/*     */   /** @deprecated */
/*     */   public QTMouseTargetController()
/*     */   {
/*  69 */     this(true);
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   public QTMouseTargetController(boolean paramBoolean)
/*     */   {
/*  78 */     this.wholespace = paramBoolean;
/*  79 */     this.memberVec = new Vector();
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   public synchronized void addedToSpace(Space paramSpace)
/*     */   {
/* 106 */     super.addedToSpace(paramSpace);
/* 107 */     for (int i = 0; i < this.memberVec.size(); i++) {
/* 108 */       Object localObject = this.memberVec.elementAt(i);
/* 109 */       if (this.compSpace != null) {
/* 110 */         if (!(localObject instanceof TwoDSprite)) {
/* 111 */           this.memberVec.removeElementAt(i);
/* 112 */           TwoDSprite localTwoDSprite = this.compSpace.getMemberSprite(localObject);
/* 113 */           if (localTwoDSprite != null)
/* 114 */             this.memberVec.insertElementAt(localTwoDSprite, i);
/*     */           else
/* 116 */             i--;
/*     */         }
/* 118 */         else if (!this.space.hasMember(localObject)) {
/* 119 */           this.memberVec.removeElementAt(i);
/* 120 */           i--;
/*     */         }
/*     */
/*     */       }
/* 124 */       else if (!this.space.hasMember(localObject)) {
/* 125 */         this.memberVec.removeElementAt(i);
/* 126 */         i--;
/*     */       }
/*     */     }
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   protected void removeActiveHandler()
/*     */   {
/* 138 */     if ((this.mouseTargetListener != null) && (this.currentMouseMovedTarget != null)) {
/* 139 */       QTMouseEvent localQTMouseEvent = new QTMouseEvent(this.space);
/* 140 */       localQTMouseEvent.initialiseEventProfile(508, -1, -1, 0L, 0, 0);
/* 141 */       localQTMouseEvent.setTarget(this.currentMouseMovedTarget);
/* 142 */       doMouseTargetExit(localQTMouseEvent);
/* 143 */       this.currentMouseMovedTarget = null;
/*     */     }
/* 145 */     super.removeActiveHandler();
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   protected void addHandler()
/*     */   {
/* 154 */     super.addHandler();
/* 155 */     if (hasMouseTargetListener())
/* 156 */       this.handler.addMouseTargetListener();
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   public boolean isWholespace()
/*     */   {
/* 163 */     return this.wholespace;
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   public void setWholespace(boolean paramBoolean)
/*     */   {
/* 169 */     this.wholespace = paramBoolean;
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   public synchronized boolean addMember(Object paramObject)
/*     */   {
/* 180 */     if (!isAppropriate(paramObject)) return false;
/* 181 */     if (!hasMember(paramObject)) {
/* 182 */       if (this.compSpace != null) {
/* 183 */         if (!(paramObject instanceof TwoDSprite)) {
/* 184 */           TwoDSprite localTwoDSprite = this.compSpace.getMemberSprite(paramObject);
/* 185 */           if (localTwoDSprite == null) {
/* 186 */             return false;
/*     */           }
/* 188 */           this.memberVec.addElement(localTwoDSprite);
/* 189 */           return true;
/*     */         }
/*     */
/* 192 */         if (!this.compSpace.hasMember(paramObject))
/* 193 */           return false;
/*     */       }
/* 195 */       else if ((this.space != null) && (!this.space.hasMember(paramObject))) {
/* 196 */         return false;
/*     */       }
/* 198 */       this.memberVec.addElement(paramObject);
/*     */     }
/* 200 */     return true;
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   public boolean isAppropriate(Object paramObject)
/*     */   {
/* 218 */     if (this.space != null) {
/* 219 */       return this.space.isAppropriate(paramObject);
/*     */     }
/* 221 */     return true;
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   public void removeMember(Object paramObject)
/*     */   {
/* 230 */     this.memberVec.removeElement(paramObject);
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   public Enumeration members()
/*     */   {
/* 243 */     return this.memberVec.elements();
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   public boolean isEmpty()
/*     */   {
/* 256 */     return this.memberVec.isEmpty();
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   public int size()
/*     */   {
/* 263 */     return this.memberVec.size();
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   public boolean hasMember(Object paramObject)
/*     */   {
/* 276 */     return paramObject == null ? false : this.memberVec.contains(paramObject);
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   public void addQTMouseListener(QTMouseListener paramQTMouseListener)
/*     */   {
/* 288 */     if ((paramQTMouseListener instanceof MouseTargetListener))
/* 289 */       addMouseTargetListener((MouseTargetListener)paramQTMouseListener);
/* 290 */     super.addQTMouseListener(paramQTMouseListener);
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   public void removeQTMouseListener(QTMouseListener paramQTMouseListener)
/*     */   {
/* 299 */     if ((paramQTMouseListener instanceof MouseTargetListener))
/* 300 */       removeMouseTargetListener((MouseTargetListener)paramQTMouseListener);
/* 301 */     super.removeQTMouseListener(paramQTMouseListener);
/*     */   }
/*     */
/*     */   void addMouseTargetListener(MouseTargetListener paramMouseTargetListener) {
/* 305 */     boolean bool = hasMouseTargetListener();
/* 306 */     this.mouseTargetListener = QTEventCaster.add(this.mouseTargetListener, paramMouseTargetListener);
/* 307 */     updateMouseTargetListener(bool);
/*     */   }
/*     */
/*     */   void removeMouseTargetListener(MouseTargetListener paramMouseTargetListener) {
/* 311 */     boolean bool = hasMouseTargetListener();
/* 312 */     this.mouseTargetListener = QTEventCaster.remove(this.mouseTargetListener, paramMouseTargetListener);
/* 313 */     updateMouseTargetListener(bool);
/*     */   }
/*     */
/*     */   void updateMouseTargetListener(boolean paramBoolean) {
/* 317 */     if (this.handler != null)
/* 318 */       if ((paramBoolean) && (!hasMouseTargetListener()))
/* 319 */         this.handler.removeMouseTargetListener();
/* 320 */       else if ((hasMouseTargetListener()) && (!paramBoolean))
/* 321 */         this.handler.addMouseTargetListener();
/*     */   }
/*     */
/*     */   boolean hasMouseTargetListener()
/*     */   {
/* 326 */     return this.mouseTargetListener != null;
/*     */   }
/*     */
/*     */   boolean isInterestedInMouseMoveEvents(QTMouseEvent paramQTMouseEvent) {
/* 330 */     return ((this.mouseTargetListener != null) && (this.mouseTargetListener.matchModifierFilter(paramQTMouseEvent.getModifiers()))) || (super.isInterestedInMouseMoveEvents(paramQTMouseEvent));
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   protected void doMousePressed(QTMouseEvent paramQTMouseEvent)
/*     */   {
/* 341 */     this.mousePressTarget = getHitTarget(paramQTMouseEvent.getX(), paramQTMouseEvent.getY());
/* 342 */     if (this.mousePressTarget != null) {
/* 343 */       this.inPressDraggingTarget = true;
/* 344 */       paramQTMouseEvent.setTarget(this.mousePressTarget);
/* 345 */       this.mouseButtonListener.mousePressed(paramQTMouseEvent);
/* 346 */       this.currentMouseMovedTarget = null;
/*     */     }
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   public void mouseReleased(QTMouseEvent paramQTMouseEvent)
/*     */   {
/* 357 */     if ((this.mouseButtonListener != null) && (this.mouseButtonListener.matchModifierFilter(paramQTMouseEvent.getModifiers())))
/* 358 */       if (translateAndIsWithin(paramQTMouseEvent))
/* 359 */         doMouseReleased(paramQTMouseEvent, true);
/* 360 */       else if (this.mousePressTarget != null)
/* 361 */         doMouseReleased(paramQTMouseEvent, false);
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   protected void doMouseReleased(QTMouseEvent paramQTMouseEvent, boolean paramBoolean)
/*     */   {
/* 373 */     paramQTMouseEvent.setTarget(this.mousePressTarget);
/* 374 */     this.mouseButtonListener.mouseReleased(paramQTMouseEvent);
/* 375 */     if (this.inPressDraggingTarget) {
/* 376 */       this.currentMouseMovedTarget = this.mousePressTarget;
/*     */     } else {
/* 378 */       this.currentMouseMovedTarget = getHitTarget(paramQTMouseEvent.getX(), paramQTMouseEvent.getY());
/* 379 */       if ((this.mouseTargetListener != null) && (this.mouseTargetListener.matchModifierFilter(paramQTMouseEvent.getModifiers())))
/* 380 */         if (paramBoolean) {
/* 381 */           Object localObject = getHitTarget(paramQTMouseEvent.getX(), paramQTMouseEvent.getY());
/* 382 */           if (localObject != null) {
/* 383 */             paramQTMouseEvent.setEventType(507);
/* 384 */             paramQTMouseEvent.setTarget(localObject);
/* 385 */             doMouseTargetEnter(paramQTMouseEvent);
/* 386 */             paramQTMouseEvent.setEventType(502);
/*     */           }
/* 388 */           this.currentMouseMovedTarget = localObject;
/*     */         } else {
/* 390 */           this.currentMouseMovedTarget = null;
/*     */         }
/*     */     }
/* 393 */     this.mousePressTarget = null;
/* 394 */     paramQTMouseEvent.setTarget(null);
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   protected void doMouseClicked(QTMouseEvent paramQTMouseEvent)
/*     */   {
/* 404 */     Object localObject = getHitTarget(paramQTMouseEvent.getX(), paramQTMouseEvent.getY());
/* 405 */     if (localObject != null) {
/* 406 */       paramQTMouseEvent.setTarget(localObject);
/*     */
/* 409 */       this.mouseButtonListener.mouseClicked(paramQTMouseEvent);
/* 410 */       paramQTMouseEvent.setTarget(null);
/*     */     }
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   public void mouseDragged(QTMouseEvent paramQTMouseEvent)
/*     */   {
/* 424 */     if (this.mousePressTarget == null) {
/* 425 */       return;
/*     */     }
/* 427 */     super.mouseDragged(paramQTMouseEvent);
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   protected void doMouseDragged(QTMouseEvent paramQTMouseEvent)
/*     */   {
/* 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 {
/* 455 */         this.mouseMoveListener.mouseDragged(paramQTMouseEvent);
/*     */       }
/*     */     }
/* 458 */     if ((this.mouseTargetListener != null) && (this.mouseTargetListener.matchModifierFilter(paramQTMouseEvent.getModifiers()))) {
/* 459 */       Object localObject = getHitTarget(paramQTMouseEvent.getX(), paramQTMouseEvent.getY());
/* 460 */       if ((localObject == null) && (this.inPressDraggingTarget)) {
/* 461 */         paramQTMouseEvent.setEventType(508);
/* 462 */         doMouseTargetExit(paramQTMouseEvent);
/* 463 */         paramQTMouseEvent.setEventType(506);
/* 464 */         this.inPressDraggingTarget = false;
/* 465 */       } else if (localObject != null) {
/* 466 */         if ((this.inPressDraggingTarget) && (localObject != this.mousePressTarget)) {
/* 467 */           paramQTMouseEvent.setEventType(508);
/* 468 */           doMouseTargetExit(paramQTMouseEvent);
/* 469 */           paramQTMouseEvent.setEventType(506);
/* 470 */           this.inPressDraggingTarget = false;
/* 471 */         } else if ((!this.inPressDraggingTarget) && (localObject == this.mousePressTarget)) {
/* 472 */           paramQTMouseEvent.setEventType(507);
/* 473 */           doMouseTargetEnter(paramQTMouseEvent);
/* 474 */           paramQTMouseEvent.setEventType(506);
/* 475 */           this.inPressDraggingTarget = true;
/*     */         }
/*     */       }
/*     */     }
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   protected void doMouseTargetExit(QTMouseEvent paramQTMouseEvent)
/*     */   {
/* 488 */     this.mouseTargetListener.mouseTargetExited(paramQTMouseEvent);
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   protected void doMouseTargetEnter(QTMouseEvent paramQTMouseEvent)
/*     */   {
/* 498 */     this.mouseTargetListener.mouseTargetEntered(paramQTMouseEvent);
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   protected void doMouseMoved(QTMouseEvent paramQTMouseEvent, boolean paramBoolean)
/*     */   {
/* 510 */     if ((this.mouseTargetListener != null) && (this.mouseTargetListener.matchModifierFilter(paramQTMouseEvent.getModifiers()))) {
/* 511 */       if ((!paramBoolean) && (this.currentMouseMovedTarget != null)) {
/* 512 */         paramQTMouseEvent.setEventType(508);
/* 513 */         paramQTMouseEvent.setTarget(this.currentMouseMovedTarget);
/* 514 */         doMouseTargetExit(paramQTMouseEvent);
/* 515 */         paramQTMouseEvent.setEventType(503);
/*     */
/* 517 */         this.currentMouseMovedTarget = null;
/* 518 */         return;
/*     */       }
/*     */
/* 521 */       Object localObject = getHitTarget(paramQTMouseEvent.getX(), paramQTMouseEvent.getY());
/*     */
/* 523 */       if (localObject == null) {
/* 524 */         if (this.currentMouseMovedTarget != null) {
/* 525 */           paramQTMouseEvent.setEventType(508);
/* 526 */           paramQTMouseEvent.setTarget(this.currentMouseMovedTarget);
/* 527 */           doMouseTargetExit(paramQTMouseEvent);
/* 528 */           paramQTMouseEvent.setEventType(503);
/*     */
/* 530 */           this.currentMouseMovedTarget = null;
/*     */         }
/*     */       }
/* 533 */       else if (this.currentMouseMovedTarget == null)
/*     */       {
/* 535 */         paramQTMouseEvent.setEventType(507);
/* 536 */         paramQTMouseEvent.setTarget(localObject);
/* 537 */         doMouseTargetEnter(paramQTMouseEvent);
/* 538 */         paramQTMouseEvent.setEventType(503);
/* 539 */         this.currentMouseMovedTarget = localObject;
/* 540 */       } else if (this.currentMouseMovedTarget != localObject) {
/* 541 */         paramQTMouseEvent.setEventType(508);
/* 542 */         paramQTMouseEvent.setTarget(this.currentMouseMovedTarget);
/* 543 */         doMouseTargetExit(paramQTMouseEvent);
/* 544 */         paramQTMouseEvent.setEventType(507);
/* 545 */         paramQTMouseEvent.setTarget(localObject);
/* 546 */         doMouseTargetEnter(paramQTMouseEvent);
/* 547 */         paramQTMouseEvent.setEventType(503);
/* 548 */         this.currentMouseMovedTarget = localObject;
/*     */       }
/* 550 */       else if ((this.mouseMoveListener != null) && (this.mouseMoveListener.matchModifierFilter(paramQTMouseEvent.getModifiers()))) {
/* 551 */         paramQTMouseEvent.setTarget(this.currentMouseMovedTarget);
/* 552 */         this.mouseMoveListener.mouseMoved(paramQTMouseEvent);
/*     */       }
/*     */     }
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   public void mouseEntered(QTMouseEvent paramQTMouseEvent)
/*     */   {
/* 569 */     super.mouseEntered(paramQTMouseEvent);
/* 570 */     if (((this.mouseEnterExitListener != null) && (this.mouseEnterExitListener.matchModifierFilter(paramQTMouseEvent.getModifiers())) ? 1 : 0) == 0)
/* 571 */       doMouseEnter_Target(paramQTMouseEvent);
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   protected void doMouseEntered(QTMouseEvent paramQTMouseEvent)
/*     */   {
/* 582 */     super.doMouseEntered(paramQTMouseEvent);
/* 583 */     doMouseEnter_Target(paramQTMouseEvent);
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   public void mouseExited(QTMouseEvent paramQTMouseEvent)
/*     */   {
/* 594 */     if (((this.mouseEnterExitListener != null) && (this.mouseEnterExitListener.matchModifierFilter(paramQTMouseEvent.getModifiers())) ? 1 : 0) == 0) {
/* 595 */       doMouseExit_Target(paramQTMouseEvent);
/*     */     }
/* 597 */     super.mouseExited(paramQTMouseEvent);
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   protected void doMouseExited(QTMouseEvent paramQTMouseEvent)
/*     */   {
/* 607 */     doMouseExit_Target(paramQTMouseEvent);
/* 608 */     super.doMouseExited(paramQTMouseEvent);
/*     */   }
/*     */
/*     */   private void doMouseEnter_Target(QTMouseEvent paramQTMouseEvent) {
/* 612 */     if ((this.mouseTargetListener != null) && (this.mouseTargetListener.matchModifierFilter(paramQTMouseEvent.getModifiers())))
/*     */     {
/*     */       Object localObject;
/* 613 */       if (this.mousePressTarget != null) {
/* 614 */         localObject = getHitTarget(paramQTMouseEvent.getX(), paramQTMouseEvent.getY());
/* 615 */         if ((localObject != null) && (!this.inPressDraggingTarget) && (localObject == this.mousePressTarget)) {
/* 616 */           paramQTMouseEvent.setEventType(507);
/* 617 */           paramQTMouseEvent.setTarget(this.mousePressTarget);
/* 618 */           doMouseTargetEnter(paramQTMouseEvent);
/* 619 */           this.inPressDraggingTarget = true;
/*     */         }
/*     */       } else {
/* 622 */         localObject = getHitTarget(paramQTMouseEvent.getX(), paramQTMouseEvent.getY());
/* 623 */         if (localObject != null) {
/* 624 */           paramQTMouseEvent.setEventType(507);
/* 625 */           paramQTMouseEvent.setTarget(localObject);
/* 626 */           doMouseTargetEnter(paramQTMouseEvent);
/* 627 */           this.currentMouseMovedTarget = localObject;
/*     */         }
/*     */       }
/* 630 */       paramQTMouseEvent.setTarget(null);
/* 631 */       paramQTMouseEvent.setEventType(504);
/*     */     }
/*     */   }
/*     */
/*     */   private void doMouseExit_Target(QTMouseEvent paramQTMouseEvent) {
/* 636 */     if ((this.mouseTargetListener != null) && (this.mouseTargetListener.matchModifierFilter(paramQTMouseEvent.getModifiers()))) {
/* 637 */       if (this.mousePressTarget != null) {
/* 638 */         Object localObject = getHitTarget(paramQTMouseEvent.getX(), paramQTMouseEvent.getY());
/* 639 */         if ((localObject == null) && (this.inPressDraggingTarget)) {
/* 640 */           paramQTMouseEvent.setEventType(508);
/* 641 */           paramQTMouseEvent.setTarget(this.mousePressTarget);
/* 642 */           doMouseTargetExit(paramQTMouseEvent);
/* 643 */           this.inPressDraggingTarget = false;
/*     */         }
/* 645 */       } else if (this.currentMouseMovedTarget != null) {
/* 646 */         paramQTMouseEvent.setEventType(508);
/* 647 */         paramQTMouseEvent.setTarget(this.currentMouseMovedTarget);
/* 648 */         doMouseTargetExit(paramQTMouseEvent);
/* 649 */         this.currentMouseMovedTarget = null;
/*     */       }
/* 651 */       paramQTMouseEvent.setTarget(null);
/* 652 */       paramQTMouseEvent.setEventType(505);
/*     */     }
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   protected Object getHitTarget(int paramInt1, int paramInt2)
/*     */   {
/* 665 */     if (this.displaySpace != null) {
/*     */       try {
/* 667 */         QDRect localQDRect = this.displaySpace.getDisplayBounds();
/* 668 */         int i = paramInt1 + localQDRect.getX();
/* 669 */         int j = paramInt2 + localQDRect.getY();
/*     */
/* 671 */         if (!localQDRect.inside(i, j)) {
/* 672 */           return null;
/*     */         }
/*     */
/* 676 */         if (isWholespace()) {
/* 677 */           return this.displaySpace.hitTest(i, j);
/*     */         }
/*     */
/* 680 */         if (this.drawSpace != null) {
/* 681 */           localObject = this.displaySpace.hitTest(i, j);
/* 682 */           if (hasMember(localObject)) {
/* 683 */             return localObject;
/*     */           }
/* 685 */           return null;
/*     */         }
/* 687 */         Object localObject = null;
/*     */
/* 689 */         Enumeration localEnumeration = members();
/*     */
/* 692 */         this.cachePoint.setX(i);
/* 693 */         this.cachePoint.setY(j);
/* 694 */         while (localEnumeration.hasMoreElements()) {
/* 695 */           TwoDSprite localTwoDSprite = (TwoDSprite)localEnumeration.nextElement();
/* 696 */           if (localTwoDSprite.hitTest(this.compSpace.hitTestFlag | 0x10, this.cachePoint)) {
/* 697 */             if (localObject != null) {
/* 698 */               if (localTwoDSprite.getLayer() < localObject.getLayer())
/* 699 */                 localObject = localTwoDSprite;
/*     */             }
/* 701 */             else localObject = localTwoDSprite;
/*     */           }
/*     */         }
/*     */
/* 705 */         return localObject;
/*     */       }
/*     */       catch (QTException localQTException) {
/* 708 */         QTRuntimeException.handleOrThrow(new QTRuntimeException(localQTException), this.displaySpace, "getDisplayBounds");
/*     */       }
/*     */     }
/* 711 */     return null;
/*     */   }
/*     */
/*     */   static
/*     */   {
/*  58 */     if ((QTSession.isCurrentOS(4)) && (QTSession.getJavaVersion() >= 65540))
/*  59 */       throw new QTRuntimeException("Unsupported on Mac OS X and Java 1.4 and higher.");
/*     */   }
/*     */ }

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

Related Classes of quicktime.app.event.QTMouseTargetController

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.