/* */ package quicktime.app.sg;
/* */
/* */ import java.awt.Dimension;
/* */ import quicktime.QTException;
/* */ import quicktime.QTRuntimeException;
/* */ import quicktime.QTSession;
/* */ import quicktime.app.display.QTDrawable;
/* */ import quicktime.app.time.TaskThread;
/* */ import quicktime.app.time.Tasking;
/* */ import quicktime.qd.QDDimension;
/* */ import quicktime.qd.QDGraphics;
/* */ import quicktime.qd.QDRect;
/* */ import quicktime.qd.Region;
/* */ import quicktime.std.image.Matrix;
/* */ import quicktime.streaming.Presentation;
/* */
/* */ public class PresentationDrawer extends Tasking
/* */ implements QTDrawable
/* */ {
/* 36 */ private static TaskThread idleTasker = new TaskThread("Default Pres Tasker", 20);
/* */ private Presentation pres;
/* */
/* */ /** @deprecated */
/* */ public PresentationDrawer(Presentation paramPresentation)
/* */ throws QTException
/* */ {
/* 46 */ this.pres = paramPresentation;
/* 47 */ setDefaultTasker(idleTasker);
/* */ }
/* */
/* */ /** @deprecated */
/* */ public Presentation getPresentation()
/* */ {
/* 58 */ return this.pres;
/* */ }
/* */
/* */ /** @deprecated */
/* */ public void addedTo(Object paramObject)
/* */ {
/* */ }
/* */
/* */ /** @deprecated */
/* */ public void removedFrom(Object paramObject)
/* */ {
/* */ }
/* */
/* */ /** @deprecated */
/* */ public QDGraphics getGWorld()
/* */ throws QTException
/* */ {
/* 85 */ return this.pres.getGWorld();
/* */ }
/* */
/* */ /** @deprecated */
/* */ public synchronized void setGWorld(QDGraphics paramQDGraphics)
/* */ throws QTException
/* */ {
/* 98 */ this.pres.setGWorld(paramQDGraphics);
/* */ }
/* */
/* */ /** @deprecated */
/* */ public Dimension getInitialSize()
/* */ throws QTException
/* */ {
/* 111 */ QDDimension localQDDimension = this.pres.getDimensions(null);
/* 112 */ Matrix localMatrix = this.pres.getMatrix(null);
/* 113 */ return new Dimension((int)(localQDDimension.getWidth() / localMatrix.getSx()), (int)(localQDDimension.getHeight() / localMatrix.getSy()));
/* */ }
/* */
/* */ /** @deprecated */
/* */ public QDDimension getOriginalSize()
/* */ throws QTException
/* */ {
/* 123 */ QDDimension localQDDimension = this.pres.getDimensions(null);
/* 124 */ Matrix localMatrix = this.pres.getMatrix(null);
/* 125 */ return new QDDimension(localQDDimension.getWidth() / localMatrix.getSx(), localQDDimension.getHeight() / localMatrix.getSy());
/* */ }
/* */
/* */ /** @deprecated */
/* */ public Matrix getMatrix()
/* */ throws QTException
/* */ {
/* 135 */ return this.pres.getMatrix(null);
/* */ }
/* */
/* */ /** @deprecated */
/* */ public void setMatrix(Matrix paramMatrix)
/* */ throws QTException
/* */ {
/* 145 */ this.pres.setMatrix(null, paramMatrix);
/* */ }
/* */
/* */ /** @deprecated */
/* */ public synchronized void setDisplayBounds(QDRect paramQDRect)
/* */ throws QTException
/* */ {
/* 154 */ QDRect localQDRect = getDisplayBounds();
/* */
/* 156 */ Matrix localMatrix = new Matrix();
/* */
/* 158 */ localMatrix.setTx(paramQDRect.getX());
/* 159 */ localMatrix.setTy(paramQDRect.getY());
/* 160 */ localMatrix.setSx(paramQDRect.getWidth() / localQDRect.getWidth());
/* 161 */ localMatrix.setSy(paramQDRect.getHeight() / localQDRect.getHeight());
/* */
/* 163 */ setMatrix(localMatrix);
/* */
/* 165 */ this.pres.setDimensions(null, paramQDRect.getWidth(), paramQDRect.getHeight());
/* */ }
/* */
/* */ /** @deprecated */
/* */ public void setLocation(int paramInt1, int paramInt2)
/* */ throws QTException
/* */ {
/* 175 */ QDRect localQDRect = getDisplayBounds();
/* 176 */ localQDRect.setX(paramInt1);
/* 177 */ localQDRect.setY(paramInt2);
/* 178 */ setDisplayBounds(localQDRect);
/* */ }
/* */
/* */ /** @deprecated */
/* */ public QDRect getDisplayBounds()
/* */ throws QTException
/* */ {
/* 188 */ return new QDRect(this.pres.getDimensions(null));
/* */ }
/* */
/* */ /** @deprecated */
/* */ public final synchronized void redraw(Region paramRegion)
/* */ throws QTException
/* */ {
/* 201 */ this.pres.invalidateRegion(paramRegion);
/* */ }
/* */
/* */ /** @deprecated */
/* */ public Region getClip()
/* */ throws QTException
/* */ {
/* 209 */ return this.pres.getClip(null);
/* */ }
/* */
/* */ /** @deprecated */
/* */ public void setClip(Region paramRegion)
/* */ throws QTException
/* */ {
/* 217 */ this.pres.setClip(null, paramRegion);
/* */ }
/* */
/* */ /** @deprecated */
/* */ public final synchronized void task()
/* */ throws QTException
/* */ {
/* 227 */ this.pres.idle(null);
/* */ }
/* */
/* */ public String toString()
/* */ {
/* 233 */ return getClass().getName() + "[" + this.pres + "]";
/* */ }
/* */
/* */ 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.sg.PresentationDrawer
* JD-Core Version: 0.6.2
*/