|
WebObjects 5.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--javax.swing.JPanel | +--com.webobjects.eointerface.swing.EOQuickTimeView
The EOQuickTimeView class is used to display QuickTime movies (or other QuickTime playe types) in Swing user interfaces. Note that you have to make sure that the QuickTime for Java classes are available in your appliation (in the classpath). EOQuickTimeView is designed to make use of QuickTime for Java if available and to show an empty content otherwise.
Inner classes inherited from class javax.swing.JPanel |
JPanel.AccessibleJPanel |
Inner classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
Inner classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Inner classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent |
Field Summary | |
static int |
QuickTimeCanvasAspectResizing
This constant is used to specify that the QuickTime canvas should resize to fill out EOQuickTimeView component size while preserving the aspect ratio of the canvas. |
static int |
QuickTimeCanvasFreeResizing
This constant is used to specify that the QuickTime canvas should resize freely with the EOQuickTimeView component size. |
static int |
QuickTimeCanvasHorizontalResizing
This constant is used to specify that the QuickTime canvas should resize horizontally with the EOQuickTimeView component size. |
static int |
QuickTimeCanvasIntegralResizing
This constant is used to specify that the QuickTime canvas should resize to fill out EOQuickTimeView component size while preserving the aspect ratio of the canvas and only growing by integral increments (2x, 3x, 4x, etc.). |
static int |
QuickTimeCanvasNoResizing
This constant is used to specify that the QuickTime canvas should not resize with the EOQuickTimeView component size. |
static int |
QuickTimeCanvasPerformanceResizing
This constant is used to specify that the QuickTime canvas should resize with the EOQuickTimeView component size to any size which is a factor of 2 of the initial canvas size. |
static int |
QuickTimeCanvasVerticalResizing
This constant is used to specify that the QuickTime canvas should resize vertically with the EOQuickTimeView component size. |
Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
EOQuickTimeView()
Constructs a new EOQuickTimeView with EOQuickTimeView.QuickTimeCanvasNoResizing canvas resizing mode. |
Method Summary | |
int |
canvasResizing()
Returns the receiver's canvas resizing mode. |
Dimension |
getPreferredSize()
Returns the preferred size of the receiver. |
static boolean |
isQuickTimeAvailable()
Returns whether or not the QuickTime for Java classes are available in the application (in the class path and loaded). |
Object |
movie()
Returns the movie displayed in the EOQuickTimeView. |
Object |
player()
Returns the player displayed in the EOQuickTimeView. |
void |
setBounds(int x,
int y,
int width,
int height)
Sets the receiver's bounds. |
void |
setCanvasResizing(int canvasResizing)
Sets the receiver's canvas resizing mode to canvasResizing . |
void |
setMovie(Object movie)
Displays the movie movie in the EOQuickTimeView. |
void |
setMovieFromURL(String url)
Loads a movie from the URL url and displays it in the EOQuickTimeView. |
void |
setPlayer(Object player)
Displays the movie player in the EOQuickTimeView. |
Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUIClassID, paramString, updateUI |
Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getLayout, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setLayout, validate, validateTree |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int QuickTimeCanvasAspectResizing
public static final int QuickTimeCanvasFreeResizing
public static final int QuickTimeCanvasHorizontalResizing
public static final int QuickTimeCanvasIntegralResizing
public static final int QuickTimeCanvasNoResizing
public static final int QuickTimeCanvasPerformanceResizing
public static final int QuickTimeCanvasVerticalResizing
Constructor Detail |
public EOQuickTimeView()
QuickTimeCanvasNoResizing
Method Detail |
public int canvasResizing()
QuickTimeCanvasNoResizing
,
QuickTimeCanvasFreeResizing
,
QuickTimeCanvasIntegralResizing
,
QuickTimeCanvasPerformanceResizing
,
QuickTimeCanvasHorizontalResizing
,
QuickTimeCanvasVerticalResizing
public Dimension getPreferredSize()
getPreferredSize
in class JComponent
public static boolean isQuickTimeAvailable()
true
if QuickTime for Java is available, false
otherwisepublic Object movie()
quicktime.std.movies.Movie
classpublic Object player()
quicktime.app.players.QTPlayer
class.public void setBounds(int x, int y, int width, int height)
setBounds
in class Component
x
- the x coordinatey
- the y coordinatewidth
- the widthheight
- the heightpublic void setCanvasResizing(int canvasResizing)
canvasResizing
.
Possible values are QuickTimeCanvasNoResizing, QuickTimeCanvasAspectResizing,
QuickTimeCanvasFreeResizing, QuickTimeCanvasIntegralResizing,
QuickTimeCanvasPerformanceResizing, QuickTimeCanvasHorizontalResizing,
and QuickTimeCanvasVerticalResizing.canvasResizing
- the canvas resizing modeQuickTimeCanvasNoResizing
,
QuickTimeCanvasFreeResizing
,
QuickTimeCanvasIntegralResizing
,
QuickTimeCanvasPerformanceResizing
,
QuickTimeCanvasHorizontalResizing
,
QuickTimeCanvasVerticalResizing
public void setMovie(Object movie)
movie
in the EOQuickTimeView.
movie
has to be an instance of the quicktime.std.movies.Movie
class.movie
- the moviepublic void setMovieFromURL(String url)
url
and displays it in the EOQuickTimeView.url
- the movie URLpublic void setPlayer(Object player)
player
in the EOQuickTimeView.
player
has to be an instance of the quicktime.app.players.QTPlayer
class.player
- the player
|
Last updated Fri Feb 21 13:15:00 PST 2003. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |