📄 qtcanvas.html
字号:
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/display/QTCanvas.html#addNotify()">addNotify</A></B>()</CODE><BR> We use this method to notify an existing client that its NativeGraphics environment may have changed and it should recheck its status</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/QTCanvas.html#addQTClientListener(java.awt.event.ComponentListener)">addQTClientListener</A></B>(java.awt.event.ComponentListener e)</CODE><BR> A ComponentListener and ComponentEvent are used to listen to these types of events that occur to the QTCanvas' client - ie.</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/QTCanvas.html#clientChanged(java.awt.Dimension)">clientChanged</A></B>(java.awt.Dimension bestSize)</CODE><BR> This method is used by an appliction to notify a QTCanvas that the best size of its' current client has changed.</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/QTCanvas.html#clientChanged(int, int)">clientChanged</A></B>(int bestWidth, int bestHeight)</CODE><BR> This method is used by an appliction to notify a QTCanvas that the best size of its' current client has changed.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/display/QTCanvas.html#finalize()">finalize</A></B>()</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> float</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/display/QTCanvas.html#getAlignmentX()">getAlignmentX</A></B>()</CODE><BR> Returns the current setting of the x position alignment being used.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> float</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/display/QTCanvas.html#getAlignmentY()">getAlignmentY</A></B>()</CODE><BR> Returns the current setting of the y position alignment being used.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.awt.Dimension</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/display/QTCanvas.html#getBestSize()">getBestSize</A></B>()</CODE><BR> Returns the best size of the client, the size of the client when it was set to this QTCanvas, or the size if the appliction notified the QTCanvas that the clien't best size was changed.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../quicktime/app/display/Drawable.html">Drawable</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/display/QTCanvas.html#getClient()">getClient</A></B>()</CODE><BR> Returns the Drawable object currently associated with this QTCanvas.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.awt.Dimension</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/display/QTCanvas.html#getMaximumSize()">getMaximumSize</A></B>()</CODE><BR> Returns the maximum acceptable size of this QTCanvas object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.awt.Dimension</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/display/QTCanvas.html#getMinimumSize()">getMinimumSize</A></B>()</CODE><BR> Returns the minimum acceptable size of this QTCanvas object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../quicktime/qd/NativeGraphics.html">NativeGraphics</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/display/QTCanvas.html#getNativeGraphics()">getNativeGraphics</A></B>()</CODE><BR> Returns the NativeGrapics object that represents the Graphics Port that corresponds to the display space taken up by the QTCanvas.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.awt.Point</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/display/QTCanvas.html#getNGLocation()">getNGLocation</A></B>()</CODE><BR> Returns the coordinates of a component relative to the NativeGrapics window it is currently placed within.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../quicktime/qd/QDGraphics.html">QDGraphics</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/display/QTCanvas.html#getPort()">getPort</A></B>()</CODE><BR> This method will return a QTJava object, QDGraphics, which is a reference to the native graphics drawing environment being used by this QTCanvas object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.awt.Dimension</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/display/QTCanvas.html#getPreferredSize()">getPreferredSize</A></B>()</CODE><BR> Returns the preferred size of the QTCanvas object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/display/QTCanvas.html#getResizeFlag()">getResizeFlag</A></B>()</CODE><BR> Returns the current setting of the resize flag being used.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/display/QTCanvas.html#isFocusTraversable()">isFocusTraversable</A></B>()</CODE><BR> We override this method so that QTCanvas can gain the focus immediately</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/QTCanvas.html#paint(java.awt.Graphics)">paint</A></B>(java.awt.Graphics g)</CODE><BR> Override the standard paint method.</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/QTCanvas.html#removeClient()">removeClient</A></B>()</CODE><BR> Removes the client 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/QTCanvas.html#removeNotify()">removeNotify</A></B>()</CODE><BR> Overridden to notify the client associated with this QTCanvas that it no longer has a grafport to draw to and should stop all graphics operations.</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/QTCanvas.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/QTCanvas.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/QTCanvas.html#setAlignment(float, float)">setAlignment</A></B>(float xAlignment, float yAlignment)</CODE><BR> Set the alignment position values.</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/QTCanvas.html#setAlignmentX(float)">setAlignmentX</A></B>(float x)</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/QTCanvas.html#setAlignmentY(float)">setAlignmentY</A></B>(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/QTCanvas.html#setBounds(int, int, int, int)">setBounds</A></B>(int x, int y, int width, int height)</CODE><BR> Resizes and/or moves the QTCanvas object as well as the associated Drawable object to the parameters specified.</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/QTCanvas.html#setClient(quicktime.app.display.Drawable, boolean)">setClient</A></B>(<A HREF="../../../quicktime/app/display/Drawable.html">Drawable</A> client, boolean layoutFlag)</CODE><BR> Associates a new client, a Drawable object, with this QTCanvas.</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/QTCanvas.html#setClient(quicktime.app.display.Drawable, quicktime.qd.QDRect)">setClient</A></B>(<A HREF="../../../quicktime/app/display/Drawable.html">Drawable</A> client, <A HREF="../../../quicktime/qd/QDRect.html">QDRect</A> initialBounds)</CODE><BR> Associates a new client, a Drawable object, with this QTCanvas.</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/QTCanvas.html#setMaximumSize(java.awt.Dimension)">setMaximumSize</A></B>(java.awt.Dimension maxSize)</CODE><BR> Set the minimum size of the QTCanvas.</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/QTCanvas.html#setMaximumSize(int, int)">setMaximumSize</A></B>(int width, int height)</CODE><BR> Set the maximum size of 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/QTCanvas.html#setMinimumSize(java.awt.Dimension)">setMinimumSize</A></B>(java.awt.Dimension minSize)</CODE><BR> Set the minimum size of the QTCanvas.</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/QTCanvas.html#setMinimumSize(int, int)">setMinimumSize</A></B>(int width, int height)</CODE><BR> Set the minimum size of 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/QTCanvas.html#setPreferredSize(java.awt.Dimension)">setPreferredSize</A></B>(java.awt.Dimension prefSize)</CODE><BR> Sets the preferred size of the QTCanvas object.</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/QTCanvas.html#setPreferredSize(int, int)">setPreferredSize</A></B>(int width,
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -