Package quicktime.app.actions

Source Code of quicktime.app.actions.DragAction

/*     */ package quicktime.app.actions;
/*     */
/*     */ import quicktime.QTException;
/*     */ import quicktime.QTRuntimeException;
/*     */ import quicktime.QTSession;
/*     */ import quicktime.app.display.QTDisplaySpace;
/*     */ import quicktime.app.event.DragAdapter;
/*     */ import quicktime.app.event.QTMouseEvent;
/*     */ import quicktime.app.image.Transformable;
/*     */
/*     */ /** @deprecated */
/*     */ public class DragAction extends DragAdapter
/*     */ {
/*     */   private Actionable actor;
/*     */   private TransformMatrix transformer;
/*     */
/*     */   /** @deprecated */
/*     */   public DragAction(TransformMatrix paramTransformMatrix)
/*     */   {
/*  44 */     this.transformer = paramTransformMatrix;
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   public Actionable getActionable()
/*     */   {
/*  58 */     return this.actor;
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   public void setActionable(Actionable paramActionable)
/*     */   {
/*  64 */     this.actor = paramActionable;
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   public void setTransformer(TransformMatrix paramTransformMatrix)
/*     */   {
/*  70 */     this.transformer = paramTransformMatrix;
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   public TransformMatrix getTransformer()
/*     */   {
/*  76 */     return this.transformer;
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   public void mousePressed(QTMouseEvent paramQTMouseEvent)
/*     */   {
/*     */     try
/*     */     {
/*  86 */       this.transformer.initialize((QTDisplaySpace)paramQTMouseEvent.getSource(), (Transformable)paramQTMouseEvent.getTarget(), paramQTMouseEvent.getX(), paramQTMouseEvent.getY());
/*     */     }
/*     */     catch (QTException localQTException)
/*     */     {
/*  91 */       QTRuntimeException.handleOrThrow(new QTRuntimeException(localQTException), this, "mousePressed");
/*     */     }
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   public void mouseDragged(QTMouseEvent paramQTMouseEvent)
/*     */   {
/*     */     try
/*     */     {
/* 103 */       if ((this.transformer.transformTarget(paramQTMouseEvent.getX(), paramQTMouseEvent.getY())) && (this.actor != null))
/* 104 */         this.actor.trigger();
/*     */     } catch (QTException localQTException) {
/* 106 */       QTRuntimeException.handleOrThrow(new QTRuntimeException(localQTException), this, "mouseDragged");
/*     */     }
/*     */   }
/*     */
/*     */   static
/*     */   {
/*  31 */     if ((QTSession.isCurrentOS(4)) && (QTSession.getJavaVersion() >= 65540))
/*  32 */       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.actions.DragAction
* JD-Core Version:    0.6.2
*/
TOP

Related Classes of quicktime.app.actions.DragAction

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.