Package quicktime.app.image

Source Code of quicktime.app.image.ImageViewer

/*     */ package quicktime.app.image;
/*     */
/*     */ import java.awt.Dimension;
/*     */ import quicktime.QTException;
/*     */ import quicktime.QTRuntimeException;
/*     */ import quicktime.QTSession;
/*     */ import quicktime.app.display.QTDrawable;
/*     */ import quicktime.qd.QDDimension;
/*     */ import quicktime.qd.QDGraphics;
/*     */ import quicktime.qd.QDRect;
/*     */ import quicktime.qd.Region;
/*     */ import quicktime.std.StdQTException;
/*     */ import quicktime.std.image.GraphicsMode;
/*     */ import quicktime.std.image.ImageDescription;
/*     */ import quicktime.std.image.Matrix;
/*     */ import quicktime.util.EncodedImage;
/*     */
/*     */ /** @deprecated */
/*     */ public abstract class ImageViewer
/*     */   implements QTDrawable, ImageSettable
/*     */ {
/*  29 */   private static boolean apriori = QTSession.apriori();
/*     */   private ImageSequencer images;
/*     */   protected ImagePresenter imagePresenter;
/*     */
/*     */   public ImageViewer(ImageSequencer paramImageSequencer)
/*     */     throws QTException
/*     */   {
/*  41 */     setImages(paramImageSequencer);
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   public ImageSequencer getImages()
/*     */   {
/*  56 */     return this.images;
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   public void setImageData(EncodedImage paramEncodedImage, ImageDescription paramImageDescription)
/*     */     throws QTException, StdQTException
/*     */   {
/*  63 */     if (this.imagePresenter == null) {
/*  64 */       this.imagePresenter = new ImagePresenter(new QDRect(paramImageDescription.getWidth(), paramImageDescription.getHeight()));
/*     */     }
/*  66 */     this.imagePresenter.setImageData(paramEncodedImage, paramImageDescription);
/*  67 */     this.imagePresenter.redraw(null);
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   public void setImages(ImageSequencer paramImageSequencer)
/*     */     throws QTException
/*     */   {
/*  78 */     this.images = paramImageSequencer;
/*  79 */     setImageData(paramImageSequencer.getImage(), paramImageSequencer.getDescription());
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   public void addedTo(Object paramObject)
/*     */   {
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   public void removedFrom(Object paramObject)
/*     */   {
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   public void setGWorld(QDGraphics paramQDGraphics)
/*     */     throws QTException
/*     */   {
/* 112 */     this.imagePresenter.setGWorld(paramQDGraphics);
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   public QDGraphics getGWorld()
/*     */   {
/* 120 */     return this.imagePresenter.getGWorld();
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   public void setDisplayBounds(QDRect paramQDRect)
/*     */     throws StdQTException
/*     */   {
/* 130 */     this.imagePresenter.setDisplayBounds(paramQDRect);
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   public void setLocation(int paramInt1, int paramInt2)
/*     */     throws QTException
/*     */   {
/* 140 */     QDRect localQDRect = getDisplayBounds();
/* 141 */     localQDRect.setX(paramInt1);
/* 142 */     localQDRect.setY(paramInt2);
/* 143 */     setDisplayBounds(localQDRect);
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   public QDRect getDisplayBounds()
/*     */   {
/* 153 */     return this.imagePresenter.getDisplayBounds();
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   public void setClip(Region paramRegion)
/*     */     throws QTException
/*     */   {
/* 161 */     this.imagePresenter.setClip(paramRegion);
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   public Region getClip()
/*     */     throws QTException
/*     */   {
/* 170 */     return this.imagePresenter.getClip();
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   public Dimension getInitialSize()
/*     */     throws QTException
/*     */   {
/* 181 */     return this.imagePresenter.getInitialSize();
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   public QDDimension getOriginalSize()
/*     */     throws QTException
/*     */   {
/* 191 */     return this.imagePresenter.getOriginalSize();
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   public Matrix getMatrix()
/*     */     throws StdQTException
/*     */   {
/* 201 */     return this.imagePresenter.getMatrix();
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   public void setMatrix(Matrix paramMatrix)
/*     */     throws QTException
/*     */   {
/* 211 */     this.imagePresenter.setMatrix(paramMatrix);
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   public void setGraphicsMode(GraphicsMode paramGraphicsMode)
/*     */     throws QTException
/*     */   {
/* 221 */     this.imagePresenter.setGraphicsMode(paramGraphicsMode);
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   public GraphicsMode getGraphicsMode()
/*     */   {
/* 230 */     return this.imagePresenter.getGraphicsMode();
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   public final synchronized void redraw(Region paramRegion)
/*     */     throws QTException
/*     */   {
/* 243 */     this.imagePresenter.redraw(paramRegion);
/*     */   }
/*     */
/*     */   static
/*     */   {
/*  32 */     if ((QTSession.isCurrentOS(4)) && (QTSession.getJavaVersion() >= 65540))
/*  33 */       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.image.ImageViewer
* JD-Core Version:    0.6.2
*/
TOP

Related Classes of quicktime.app.image.ImageViewer

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.