PATH Documentation > WebObjects

Table of Contents

EOQuickTimeView


Inherits from:
javax.swing.JPanel : javax.swing.JComponent : java.awt.Container : java.awt.Component : Object
Implements:
javax.accessibility.Accessible
java.io.Serializable
Package:
com.webobjects.eointerface.swing


Class Description


The EOQuickTimeView class is used to display QuickTime movies in Swing applications.




Constants


EOQuickTimeView defines the following int constants to identify resizing behavior:

These same constants are also defined in quicktime.app.display.QTCanvas. They are duplicated in EOQuickTimeView for convenience. For information on the resizing behavior associated with these constants, see the QTCanvas documentation.



Interfaces Implemented


javax.accessibility.Accessible
java.io.Serializable


Method Types


All methods
EOQuickTimeView
isQuickTimeAvailable
canvasResizing
getPreferredSize
movie
player
setBounds
setCanvasResizing
setMovie
setMovieFromURL
setPlayer


Constructors



EOQuickTimeView

public EOQuickTimeView()




Static Methods



isQuickTimeAvailable

public static boolean isQuickTimeAvailable()

Returns true if the QuickTime for Java classes are in the class path and are loaded; false otherwise. If the classes are in the class path but aren't loaded, this method attempts to load them.


Instance Methods



canvasResizing

public int canvasResizing()

Returns an integer that identifies the receiver's resizing behavior. The return value is one of the following constants (defined in EOQuickTimeView):

For more information on the resizing constants, see "Constants" (page 32).



getPreferredSize

public java.awt.Dimension getPreferredSize()

See the method description for getPreferredSize in Sun's JComponent class documentation.

movie

public Object movie()

Returns the receiver's QuickTime movie, a quicktime.std.movies.Movie.

player

public Object player()

Returns the receiver's QuickTime player, a quicktime.app.players.QTPlayer.

setBounds

public void setBounds( int x, int y, int width, int height)

See the method description for setBounds in Sun's Component class documentation.

setCanvasResizing

public void setCanvasResizing(int canvasResizing)

Sets the resizing behavior of the receiver. The canvasResizing argument should be one of the following constants (defined in EOQuickTimeView):

The default resizing behavior is QuickTimeCanvasAspectResizing. For more information on these constants, see "Constants" (page 32).



setMovie

public void setMovie(Object movie)

Sets the receiver's QuickTime movie to movie, a quicktime.std.movies.Movie.

setMovieFromURL

public void setMovieFromURL(String url)

Sets the receiver's QuickTime movie to the movie at url..

setPlayer

public void setPlayer(Object player)

Sets the receiver's QuickTime player to player, a quicktime.app.players.QTPlayer.

© 2001 Apple Computer, Inc. (Last Published April 21, 2001)


Table of Contents