|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--quicktime.QTSession
This class will check if QT is present and provides calls for enterMovies. This essentially does any initialisation that QT requires.
QTSession.open will intialize QuickTime, do a gestalt check and call enterMovies. Calls to the initialize routine are accumulative - thus if your code calls QTSession.open (which calls QTSession.initialize) and/or QTSession.initialize, the current session of QuickTime will only be closed down when it gets the same number of calls to QTSession.close (which calls QTSession.terminate) and/or QTSession.terminate.
A typical usage of QTSession calls by an application, applet or bean is: (this gives the applet version)
public class MyApplet extends Applet { public void init () { try { QTSession.open(); ... } catch (QTException e) { } } public void destroy () { QTSession.close(); } }Thus the applet initializes the QTSession in its init method and closes it down in its destroy method. This ensures that if you have other applets (or beans, etc) that are running in the same process that the QuickTime session will only be terminated when all of the current Java QTSessions in that process have been destroyed.
Field Summary | |
static int |
kInit3D
Flags that can be passed in to the open call to also initialise these environments. |
static int |
kInitVR
Flags that can be passed in to the open call to also initialise these environments. |
static int |
kMacOS
The list of currently supported operating systems for QTJava. |
static int |
kMacOSX
The list of currently supported operating systems for QTJava. |
static int |
kWin32
The list of currently supported operating systems for QTJava. |
Fields inherited from interface quicktime.jdirect.QuickTimeLib |
JDirect_MacOSX, libraryInstance, name |
Fields inherited from interface quicktime.jdirect.QuickTimeVRLib |
JDirect_MacOSX, libraryInstance |
Fields inherited from interface quicktime.jdirect.QuickDraw3DLib |
libraryInstance |
Method Summary | |
static void |
addActiveCanvas(java.lang.Object c)
Adds a canvas to a registry of active canvases. |
static boolean |
canDoFullScreen()
|
static void |
close()
This call will close down the QTML environment. |
static void |
enterMovies()
Before you call any Movie Toolbox functions, you must initialize the toolbox QuickTime::EnterMovies() |
static void |
exitMovies()
QuickTime calls the ExitMovies function automatically when your application quits - you only need to call thi function if you finish with the Movie Toolbox long before your application is ready to quit. |
static int |
gestalt(int selector)
This call will do a gestalt check. |
static int |
getBugFixVersion()
This returns the sub version of QuickTime that is currently present |
static int |
getDeveloperVersion()
This returns the sub version of QuickTime that is currently present |
static int |
getJavaVersion()
Return the Java version in the format of:0xVVVVSSSS. |
static int |
getMajorVersion()
This contains the version of QuickTime that is currently present |
static int |
getMinorVersion()
This returns the sub version of QuickTime that is currently present |
static int |
getQTMajorVersion()
This returns the major version of QuickTime |
static int |
getQTMinorVersion()
This returns the minor version of QuickTime |
static int |
getQTVersion()
This returns the complete version number of QuickTime |
static boolean |
hasSecurityRestrictions()
|
static void |
initialize(int flag)
This call will open a QTSession and perform any initialisations of the QT environment. |
static void |
initialize(int flag,
java.lang.Class signedClass)
This call will open a QTSession and perform any initialisations of the QT environment. |
static void |
initialize3D()
|
static void |
initializeVR()
This call will initialize QTVR. |
static boolean |
is3DInitialized()
This call will return true if the QuickTime Session has been initialized, otherwise false. |
static boolean |
isClassSigned()
To check if the class has been registered and is signed. |
static boolean |
isCurrentOS(int osName)
This method returns true if the passed in OS name is the OS upon which the current session of QuickTime is running. |
static boolean |
isInitialized()
This call will return true if the QuickTime Session has been initialized, otherwise false. |
static boolean |
isQD3DAvailable()
Determine whether it is safe to call a QuickDraw 3D API. |
static boolean |
isQTVRAvailable()
Determine whether it is safe to call a QuickTime VR API. |
static boolean |
isVRInitialized()
This call will return true if the QuickTime Session has been initialized, otherwise false. |
static void |
open()
This call will open a QTSession and perform any initialisations of the QTML environment. |
static void |
open(java.lang.Class signedClass)
This call will open a QTSession and perform any initialisations of the QTML environment. |
static void |
open(int initFlag)
This call will open a QTSession and perform any initialisations of the QTML environment. |
static void |
open(int initFlag,
java.lang.Class signedClass)
This call will open a QTSession and perform any initialisations of the QTML environment. |
static void |
open(int majorVersion,
int minorVersion,
int initFlag)
This call will open a QTSession and perform any initialisations of the QTML environment. |
static void |
open(int majorVersion,
int minorVersion,
int initFlag,
java.lang.Class signedClass)
This call will open a QTSession and perform any initialisations of the QTML environment. |
static void |
removeActiveCanvas(java.lang.Object c)
Removes a canvas from a registry of active canvases. |
static void |
terminate()
This call will close down the QTML environment, VR and QD3D. |
static void |
terminate3D()
This call will terminate QuickDraw3D. |
static void |
terminateVR()
This call will terminate QTVR. |
static java.lang.Object |
terminationLock()
This returns an object that can be synchronized against for termination checking. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int kMacOS
public static final int kWin32
public static final int kMacOSX
public static final int kInitVR
public static final int kInit3D
Method Detail |
public static int getJavaVersion()
public static boolean isClassSigned()
public static boolean hasSecurityRestrictions()
public static boolean canDoFullScreen()
public static boolean isCurrentOS(int osName)
osName
- the osName of the system that you want to find out if you are running on.public static boolean isInitialized()
synchronized (QTSession.terminationLock()) { if (QTSession.isInitialized()) { //... } }
public static boolean isVRInitialized()
public static boolean is3DInitialized()
public static void initialize(int flag) throws QTException
flag
- flag that are valid for this call.public static void initialize(int flag, java.lang.Class signedClass) throws QTException
flag
- flag that are valid for this call.signedClass
- the Class object which is signedpublic static void initializeVR() throws QTException
public static void initialize3D() throws QTException
public static void open() throws QTException
public static void open(int initFlag) throws QTException
initFlag
- can also initialise VR or 3D.
This will also call EnterMovies.
public static void open(int majorVersion, int minorVersion, int initFlag) throws QTException
version
- the minimal version of QT that must be presentminorVersion
- the minimal minorVersion of QT that must be presentinitFlag
- can also initialise VR or 3D.public static void open(java.lang.Class signedClass) throws QTException
theClass
- the Class object which is signedpublic static void open(int initFlag, java.lang.Class signedClass) throws QTException
initFlag
- can also initialise VR or 3D.theClass
- the Class object which is signed
This will also call EnterMovies.
public static void open(int majorVersion, int minorVersion, int initFlag, java.lang.Class signedClass) throws QTException
version
- the minimal version of QT that must be presentminorVersion
- the minimal minorVersion of QT that must be presentinitFlag
- can also initialise VR or 3D.signedClass
- the Class object which is signedpublic static void close()
terminate
public static void terminate()
public static java.lang.Object terminationLock()
isInitialised
public static void terminateVR()
public static void terminate3D()
public static boolean isQD3DAvailable() throws QTException
public static boolean isQTVRAvailable() throws QTException
public static final int gestalt(int selector) throws QTException
selector
- the selector code for the information you need.public static final void enterMovies() throws QTException
public static final void exitMovies()
public static final int getMajorVersion()
public static final int getMinorVersion()
public static final int getBugFixVersion()
public static final int getDeveloperVersion()
public static int getQTVersion()
public static int getQTMajorVersion()
public static int getQTMinorVersion()
public static void addActiveCanvas(java.lang.Object c)
public static void removeActiveCanvas(java.lang.Object c)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |