/* */ package quicktime.std.movies;
/* */
/* */ import java.awt.Dimension;
/* */ import quicktime.QTObject;
/* */ import quicktime.QTSession;
/* */ import quicktime.qd.GDevice;
/* */ import quicktime.qd.QDDimension;
/* */ import quicktime.std.StdQTException;
/* */
/* */ public final class FullScreen
/* */ {
/* 29 */ private static boolean apriori = QTSession.apriori();
/* */
/* 43 */ private int restoreState = 0;
/* */
/* */ public FullScreen()
/* */ {
/* 38 */ if (!QTSession.canDoFullScreen())
/* 39 */ throw new SecurityException("FullScreenWindow not allowed");
/* */ }
/* */
/* */ /** @deprecated */
/* */ public Dimension getMainScreenSize()
/* */ throws StdQTException
/* */ {
/* 54 */ QDDimension localQDDimension = getSizeOfMainScreen();
/* 55 */ return new Dimension(localQDDimension.getWidth(), localQDDimension.getHeight());
/* */ }
/* */
/* */ public QDDimension getSizeOfMainScreen()
/* */ throws StdQTException
/* */ {
/* 65 */ end();
/* */
/* 67 */ int[] arrayOfInt = new int[1];
/* 68 */ short[] arrayOfShort1 = new short[1];
/* 69 */ short[] arrayOfShort2 = new short[1];
/* */
/* 71 */ arrayOfShort1[0] = 0;
/* 72 */ arrayOfShort2[0] = 0;
/* */
/* 74 */ StdQTException.checkError(BeginFullScreen(arrayOfInt, 0, arrayOfShort1, arrayOfShort2, 0, 0, 8));
/* */
/* 84 */ this.restoreState = arrayOfInt[0];
/* 85 */ return new QDDimension(arrayOfShort1[0], arrayOfShort2[0]);
/* */ }
/* */
/* */ /** @deprecated */
/* */ public Dimension getScreenSize(GDevice paramGDevice)
/* */ throws StdQTException
/* */ {
/* 96 */ QDDimension localQDDimension = getSizeOfScreen(paramGDevice);
/* 97 */ return new Dimension(localQDDimension.getWidth(), localQDDimension.getHeight());
/* */ }
/* */
/* */ public QDDimension getSizeOfScreen(GDevice paramGDevice)
/* */ throws StdQTException
/* */ {
/* 107 */ end();
/* */
/* 109 */ int[] arrayOfInt = new int[1];
/* 110 */ short[] arrayOfShort1 = new short[1];
/* 111 */ short[] arrayOfShort2 = new short[1];
/* */
/* 113 */ arrayOfShort1[0] = 0;
/* 114 */ arrayOfShort2[0] = 0;
/* */
/* 116 */ StdQTException.checkError(BeginFullScreen(arrayOfInt, QTObject.ID(paramGDevice), arrayOfShort1, arrayOfShort2, 0, 0, 8));
/* */
/* 126 */ this.restoreState = arrayOfInt[0];
/* 127 */ return new QDDimension(arrayOfShort1[0], arrayOfShort2[0]);
/* */ }
/* */
/* */ /** @deprecated */
/* */ public Dimension preflightSize(GDevice paramGDevice, int paramInt1, int paramInt2)
/* */ throws StdQTException
/* */ {
/* 141 */ QDDimension localQDDimension = getPreflightSize(paramGDevice, paramInt1, paramInt2);
/* 142 */ return new Dimension(localQDDimension.getWidth(), localQDDimension.getHeight());
/* */ }
/* */
/* */ public QDDimension getPreflightSize(GDevice paramGDevice, int paramInt1, int paramInt2)
/* */ throws StdQTException
/* */ {
/* 155 */ end();
/* */
/* 157 */ int[] arrayOfInt = new int[1];
/* 158 */ short[] arrayOfShort1 = new short[1];
/* 159 */ short[] arrayOfShort2 = new short[1];
/* */
/* 161 */ arrayOfShort1[0] = ((short)paramInt1);
/* 162 */ arrayOfShort2[0] = ((short)paramInt2);
/* */
/* 165 */ StdQTException.checkError(BeginFullScreen(arrayOfInt, QTObject.ID(paramGDevice), arrayOfShort1, arrayOfShort2, 0, 0, 8));
/* */
/* 174 */ this.restoreState = arrayOfInt[0];
/* 175 */ return new QDDimension(arrayOfShort1[0], arrayOfShort2[0]);
/* */ }
/* */
/* */ /** @deprecated */
/* */ public Dimension begin(int paramInt)
/* */ throws StdQTException
/* */ {
/* 185 */ QDDimension localQDDimension = beginFullScreen(paramInt);
/* 186 */ return new Dimension(localQDDimension.getWidth(), localQDDimension.getHeight());
/* */ }
/* */
/* */ public QDDimension beginFullScreen(int paramInt)
/* */ throws StdQTException
/* */ {
/* 195 */ end();
/* */
/* 197 */ int[] arrayOfInt = new int[1];
/* 198 */ short[] arrayOfShort1 = new short[1];
/* 199 */ short[] arrayOfShort2 = new short[1];
/* */
/* 201 */ arrayOfShort1[0] = 0;
/* 202 */ arrayOfShort2[0] = 0;
/* */
/* 204 */ StdQTException.checkError(BeginFullScreen(arrayOfInt, 0, arrayOfShort1, arrayOfShort2, 0, 0, paramInt));
/* */
/* 213 */ this.restoreState = arrayOfInt[0];
/* 214 */ return new QDDimension(arrayOfShort1[0], arrayOfShort2[0]);
/* */ }
/* */
/* */ /** @deprecated */
/* */ public Dimension begin(GDevice paramGDevice, int paramInt1, int paramInt2, int paramInt3)
/* */ throws StdQTException
/* */ {
/* 226 */ QDDimension localQDDimension = beginFullScreen(paramGDevice, paramInt1, paramInt2, paramInt3);
/* 227 */ return new Dimension(localQDDimension.getWidth(), localQDDimension.getHeight());
/* */ }
/* */
/* */ public QDDimension beginFullScreen(GDevice paramGDevice, int paramInt1, int paramInt2, int paramInt3)
/* */ throws StdQTException
/* */ {
/* 238 */ end();
/* */
/* 240 */ int[] arrayOfInt = new int[1];
/* 241 */ short[] arrayOfShort1 = new short[1];
/* 242 */ short[] arrayOfShort2 = new short[1];
/* */
/* 244 */ arrayOfShort1[0] = ((short)paramInt1);
/* 245 */ arrayOfShort2[0] = ((short)paramInt2);
/* */
/* 247 */ StdQTException.checkError(BeginFullScreen(arrayOfInt, QTObject.ID(paramGDevice), arrayOfShort1, arrayOfShort2, 0, 0, paramInt3));
/* */
/* 256 */ this.restoreState = arrayOfInt[0];
/* 257 */ return new QDDimension(arrayOfShort1[0], arrayOfShort2[0]);
/* */ }
/* */
/* */ public void endFullScreen()
/* */ throws StdQTException
/* */ {
/* 265 */ end();
/* */ }
/* */
/* */ public void end()
/* */ throws StdQTException
/* */ {
/* 273 */ if (this.restoreState != 0) {
/* 274 */ int i = EndFullScreen(this.restoreState, 0);
/* 275 */ StdQTException.checkError(i);
/* */ }
/* 277 */ this.restoreState = 0;
/* */ }
/* */
/* */ protected void finalize() throws Throwable {
/* 281 */ end();
/* 282 */ super.finalize();
/* */ }
/* */
/* */ private static native short BeginFullScreen(int[] paramArrayOfInt, int paramInt1, short[] paramArrayOfShort1, short[] paramArrayOfShort2, int paramInt2, int paramInt3, int paramInt4);
/* */
/* */ private static native short EndFullScreen(int paramInt1, int paramInt2);
/* */ }
/* Location: Z:\System\Library\Java\Extensions\QTJava.zip
* Qualified Name: quicktime.std.movies.FullScreen
* JD-Core Version: 0.6.2
*/