📄 jqtcanvas.html
字号:
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/display/JQTCanvas.html#isFlashScaling()">isFlashScaling</A></B>()</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/display/JQTCanvas.html#paint(java.awt.Graphics)">paint</A></B>(java.awt.Graphics g)</CODE><BR> This method is invoked by Swing to draw this component</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/display/JQTCanvas.html#removeClient()">removeClient</A></B>()</CODE><BR> Removes the current client, a drawable object, from the canvas.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/display/JQTCanvas.html#removeQTClientListener(java.awt.event.ComponentListener)">removeQTClientListener</A></B>(java.awt.event.ComponentListener e)</CODE><BR> Remove a previously registered ComponentListener that is listening to events that occur with the QTCanvas' QTDrawable client.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/display/JQTCanvas.html#reshape(int, int, int, int)">reshape</A></B>(int x, int y, int width, int height)</CODE><BR> <B>Deprecated.</B> <I>As of JDK version 1.1, replaced by <code>setBounds(int, int, int, int)</code>.</I></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/display/JQTCanvas.html#setAlignment(float, float)">setAlignment</A></B>(float x, float y)</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/display/JQTCanvas.html#setBounds(int, int, int, int)">setBounds</A></B>(int x, int y, int width, int height)</CODE><BR> Moves and resizes this component.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/display/JQTCanvas.html#setBounds(java.awt.Rectangle)">setBounds</A></B>(java.awt.Rectangle r)</CODE><BR> Moves and resizes this component to conform to the new bounding rectangle r.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/display/JQTCanvas.html#setClient(quicktime.app.display.QTDrawable, boolean)">setClient</A></B>(<A HREF="../../../quicktime/app/display/QTDrawable.html">QTDrawable</A> drawable, boolean layoutFlag)</CODE><BR> Associates a new client, a Drawable object, with this JQTCanvas.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/display/JQTCanvas.html#setClient(quicktime.app.display.QTDrawable, quicktime.qd.QDRect)">setClient</A></B>(<A HREF="../../../quicktime/app/display/QTDrawable.html">QTDrawable</A> cl, <A HREF="../../../quicktime/qd/QDRect.html">QDRect</A> initialBounds)</CODE><BR> Associates a new client, a Drawable object, with this JQTCanvas.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/display/JQTCanvas.html#setFlashScaling(boolean)">setFlashScaling</A></B>(boolean scale)</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/display/JQTCanvas.html#setResizeFlag(int)">setResizeFlag</A></B>(int rFlag)</CODE><BR> Reset the resize flag and re-layout the component.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/display/JQTCanvas.html#setSize(java.awt.Dimension)">setSize</A></B>(java.awt.Dimension dim)</CODE><BR> Resizes the JQTCanvas object to the specified parameters.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/display/JQTCanvas.html#setSize(int, int)">setSize</A></B>(int width, int height)</CODE><BR> Resizes the JQTCanvas object, as well as the associated Drawable object.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_javax.swing.JComponent"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class javax.swing.JComponent</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>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, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getUIClassID, getVerifyInputWhenFocusTarget, getVisibleRect, getWidth, getX, getY, grabFocus, hasFocus, hide, isDoubleBuffered, isFocusCycleRoot, isFocusTraversable, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processFocusEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, resetKeyboardActions, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI</CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.awt.Container"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.awt.Container</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>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</CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.awt.Component"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.awt.Component</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, imageUpdate, inside, isDisplayable, isEnabled, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, repaint, repaint, repaint, resize, resize, setComponentOrientation, setCursor, setDropTarget, setLocale, setLocation, setLocation, setName, show, show, size, toString, transferFocus</CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.Object</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="kIntegralResize"><!-- --></A><H3>kIntegralResize</H3><PRE>public static final int <B>kIntegralResize</B></PRE><DL><DD>Use this flag if the client should maintain the aspect size of its original dimensions but grow bigger by integral increments (2x, 3x, 4x, etc.)</DL><HR><A NAME="kInitialSize"><!-- --></A><H3>kInitialSize</H3><PRE>public static final int <B>kInitialSize</B></PRE><DL><DD>Use this flag if the client should revert to its initially specified size. The client can be made smaller (using an aspect setting) but can be no larger than its initial size. The JQTCanvas takes this initial size as the best viewing size for its client.</DL><HR><A NAME="kFreeResize"><!-- --></A><H3>kFreeResize</H3><PRE>public static final int <B>kFreeResize</B></PRE><DL><DD>Use this flag if the client can be resized to any size >= the minimum and <= the maximum.</DL><HR><A NAME="kAspectResize"><!-- --></A><H3>kAspectResize</H3><PRE>public static final int <B>kAspectResize</B></PRE><DL><DD>Use this flag if the client can be resized to any size which preserves the initial aspect ratio.</DL><HR><A NAME="kPerformanceResize"><!-- --></A><H3>kPerformanceResize</H3><PRE>public static final int <B>kPerformanceResize</B></PRE><DL><DD>Use this flag if the client can be resized to any size which is a factor of 2 of the initial size.</DL><HR><A NAME="kHorizontalResize"><!-- --></A><H3>kHorizontalResize</H3><PRE>public static final int <B>kHorizontalResize</B></PRE><DL><DD>Use this flag to allow the client's horizontal aspect to be any size, but the vertical axis will be the intial size of smaller. This is a good setting for QT VR content.</DL><HR><A NAME="kVerticalResize"><!-- --></A><H3>kVerticalResize</H3><PRE>public static final int <B>kVerticalResize</B></PRE><DL><DD>Use this flag to allow the client's vertical aspect to be any size, but the horizontal axis will be the intial size of smaller.</DL><HR><A NAME="kInitialSizeNoResize"><!-- --></A><H3>kInitialSizeNoResize</H3><PRE>public static final int <B>kInitialSizeNoResize</B></PRE><DL><DD>Use this flag specify that the client cannot be resized</DL><HR><A NAME="flashScaling"><!-- --></A><H3>flashScaling</H3><PRE>public static boolean <B>flashScaling</B></PRE><DL></DL><HR><A NAME="useMacOSXAcceleration"><!-- --></A><H3>useMacOSXAcceleration</H3><PRE>public static boolean <B>useMacOSXAcceleration</B></PRE><DL></DL><HR><A NAME="ip"><!-- --></A><H3>ip</H3><PRE>public <A HREF="../../../quicktime/app/image/QTImageProducer.html">QTImageProducer</A> <B>ip</B></PRE><DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="JQTCanvas()"><!-- --></A><H3>JQTCanvas</H3><PRE>public <B>JQTCanvas</B>()</PRE><DL><DD>Default Constructor for JQTCanvas</DL><HR><A NAME="JQTCanvas(int, float, float)"><!-- --></A><H3>JQTCanvas</H3><PRE>public <B>JQTCanvas</B>(int resizeFlag, float xAlignment, float yAlignment)</PRE><DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="paint(java.awt.Graphics)"><!-- --></A><H3>paint</H3><PRE>public void <B>paint</B>(java.awt.Graphics g)</PRE><DL><DD>This method is invoked by Swing to draw this component<DD><DL><DT><B>Overrides:</B><DD><CODE>paint</CODE> in class <CODE>javax.swing.JComponent</CODE></DL></DD></DL><HR>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -