|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--javax.swing.JComponent
|
+--quicktime.app.display.JQTCanvas
This is a Lightweight version of the JQTCanvas class designed for use with Swing Because it is strictly lightweight, and has no native peer, you can only have client classes that do not use a controller such as the Compositor class and MoviePlayer. QuickTime cannot render controllers in an offscreen buffer.
| Field Summary | |
static boolean |
flashScaling
Deprecated. |
QTImageProducer |
ip
Deprecated. |
static int |
kAspectResize
Deprecated. since QTJava 6.1 |
static int |
kFreeResize
Deprecated. since QTJava 6.1 |
static int |
kHorizontalResize
Deprecated. since QTJava 6.1 |
static int |
kInitialSize
Deprecated. since QTJava 6.1 |
static int |
kInitialSizeNoResize
Deprecated. since QTJava 6.1 |
static int |
kIntegralResize
Deprecated. since QTJava 6.1 |
static int |
kPerformanceResize
Deprecated. since QTJava 6.1 |
static int |
kVerticalResize
Deprecated. since QTJava 6.1 |
static boolean |
useMacOSXAcceleration
Deprecated. |
| 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 | |
JQTCanvas()
Deprecated. since QTJava 6.1 |
|
JQTCanvas(int resizeFlag,
float xAlignment,
float yAlignment)
Deprecated. |
|
| Method Summary | |
void |
addQTClientListener(java.awt.event.ComponentListener e)
Deprecated. since QTJava 6.1 |
java.awt.Image |
createImage(java.awt.image.ImageProducer producer)
Deprecated. |
void |
drawingComplete(QTDrawable drawable)
Deprecated. since QTJava 6.1 |
int |
getResizeFlag()
Deprecated. since QTJava 6.1 |
boolean |
isFlashScaling()
Deprecated. |
void |
paint(java.awt.Graphics g)
Deprecated. since QTJava 6.1 |
void |
removeClient()
Deprecated. since QTJava 6.1 |
void |
removeQTClientListener(java.awt.event.ComponentListener e)
Deprecated. since QTJava 6.1 |
void |
reshape(int x,
int y,
int width,
int height)
Deprecated. As of JDK version 1.1, replaced by setBounds(int, int, int, int). |
void |
setAlignment(float x,
float y)
Deprecated. |
void |
setBounds(int x,
int y,
int width,
int height)
Deprecated. since QTJava 6.1 |
void |
setBounds(java.awt.Rectangle r)
Deprecated. since QTJava 6.1 |
void |
setClient(QTDrawable drawable,
boolean layoutFlag)
Deprecated. since QTJava 6.1 |
void |
setClient(QTDrawable cl,
QDRect initialBounds)
Deprecated. since QTJava 6.1 |
void |
setFlashScaling(boolean scale)
Deprecated. |
void |
setResizeFlag(int rFlag)
Deprecated. since QTJava 6.1 |
void |
setSize(java.awt.Dimension dim)
Deprecated. since QTJava 6.1 |
void |
setSize(int width,
int height)
Deprecated. since QTJava 6.1 |
| Methods inherited from class javax.swing.JComponent |
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI |
| Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
| Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, show, show, size, toString, transferFocus, transferFocusUpCycle |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int kIntegralResize
public static final int kInitialSize
public static final int kFreeResize
public static final int kAspectResize
public static final int kPerformanceResize
public static final int kHorizontalResize
public static final int kVerticalResize
public static final int kInitialSizeNoResize
public static boolean flashScaling
public static boolean useMacOSXAcceleration
public QTImageProducer ip
| Constructor Detail |
public JQTCanvas()
public JQTCanvas(int resizeFlag,
float xAlignment,
float yAlignment)
| Method Detail |
public void paint(java.awt.Graphics g)
paint in class javax.swing.JComponentpublic void setFlashScaling(boolean scale)
public boolean isFlashScaling()
public void setClient(QTDrawable drawable,
boolean layoutFlag)
throws QTException
The size of the client when this method is called is used to ascertain the best size for viewing this client's media.
This method can throw a number of exceptions:
QTUnknownOSException the application is trying to run on a platform that is not supported by QuickTime
NativeGraphicsException the native graphics environment is not initialised
QTException or subclass - there was a problem within QuickTime itself in dealing with this client
layoutFlag - if true java.awt will re-layout the canvas, if false the client will fit
into the existing state (display size, etc) of the canvas, disregarding any resize that might
have occured to honour the layout flag setting with respect to the different size of the new client.
Keep in mind that only controllerless clients are valid
QTException
public void setClient(QTDrawable cl,
QDRect initialBounds)
throws QTException
This method can throw a number of exceptions:
QTUnknownOSException the application is trying to run on a platform that is not supported by QuickTime
NativeGraphicsException the native graphics environment is not initialised
QTException or subclass - there was a problem within QuickTime itself in dealing with this client
initialBounds - the best size of the client
Keep in mind that only controllerless clients are valid
QTExceptionpublic final void removeClient()
public java.awt.Image createImage(java.awt.image.ImageProducer producer)
createImage in class java.awt.Component
public void setBounds(int x,
int y,
int width,
int height)
setBounds in class java.awt.Componentx - the new x-coordinate of this componenty - the new y-coordinate of this componentwidth - the new width of this componentheight - the new height of this componentsetBounds(Rectangle r)public void setBounds(java.awt.Rectangle r)
setBounds in class java.awt.Componentpublic void setSize(java.awt.Dimension dim)
setSize in class java.awt.Componentdim - a Dimension object with the new width and height
public void setSize(int width,
int height)
setSize in class java.awt.Componentwidth - the width, in pixels, to make this componentheight - the height, in pixels, to make this component
public final void reshape(int x,
int y,
int width,
int height)
setBounds(int, int, int, int).
reshape in class javax.swing.JComponent
public void setAlignment(float x,
float y)
public void setResizeFlag(int rFlag)
rFlag - the new value for the resizeFlagpublic int getResizeFlag()
public void drawingComplete(QTDrawable drawable)
drawingComplete in interface DrawingListenerdrawable - the drawable which drawing has just been completed upon
public void addQTClientListener(java.awt.event.ComponentListener e)
e - the ComponentListenerpublic void removeQTClientListener(java.awt.event.ComponentListener e)
e - the ComponentListeneraddQTClientListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||