📄 jqtcanvas.html
字号:
<A NAME="setFlashScaling(boolean)"><!-- --></A><H3>setFlashScaling</H3><PRE>public void <B>setFlashScaling</B>(boolean scale)</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="isFlashScaling()"><!-- --></A><H3>isFlashScaling</H3><PRE>public boolean <B>isFlashScaling</B>()</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="setClient(quicktime.app.display.QTDrawable, boolean)"><!-- --></A><H3>setClient</H3><PRE>public void <B>setClient</B>(<A HREF="../../../quicktime/app/display/QTDrawable.html">QTDrawable</A> drawable, boolean layoutFlag) throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Associates a new client, a Drawable object, with this JQTCanvas. The flag determines if awt will perform a layout and how the client will be integrated with the canvas. If the flag is false then the new client will take on the current size and position of the canvas. If the flag is true, then awt will layout the canvas again, using the initial size of the client and the resize flags to resize the canvas and its client. <P> The size of the client when this method is called is used to ascertain the best size for viewing this client's media. <P> This method can throw a number of exceptions:<BR> QTUnknownOSException the application is trying to run on a platform that is not supported by QuickTime<BR> NativeGraphicsException the native graphics environment is not initialised<BR> QTException or subclass - there was a problem within QuickTime itself in dealing with this client<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>client</CODE> - a Drawable object - if null the method will remove the client<DD><CODE>layoutFlag</CODE> - 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</DL></DD></DL><HR><A NAME="setClient(quicktime.app.display.QTDrawable, quicktime.qd.QDRect)"><!-- --></A><H3>setClient</H3><PRE>public void <B>setClient</B>(<A HREF="../../../quicktime/app/display/QTDrawable.html">QTDrawable</A> cl, <A HREF="../../../quicktime/qd/QDRect.html">QDRect</A> initialBounds) throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Associates a new client, a Drawable object, with this JQTCanvas. It will use existing alignment and resize restrictions. <P> This method can throw a number of exceptions:<BR> QTUnknownOSException the application is trying to run on a platform that is not supported by QuickTime<BR> NativeGraphicsException the native graphics environment is not initialised<BR> QTException or subclass - there was a problem within QuickTime itself in dealing with this client<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>client</CODE> - a Drawable object - if null the method will remove the client<DD><CODE>initialBounds</CODE> - the best size of the client Keep in mind that only controllerless clients are valid</DL></DD></DL><HR><A NAME="removeClient()"><!-- --></A><H3>removeClient</H3><PRE>public final void <B>removeClient</B>()</PRE><DL><DD>Removes the current client, a drawable object, from the canvas.<DD><DL></DL></DD></DL><HR><A NAME="createImage(java.awt.image.ImageProducer)"><!-- --></A><H3>createImage</H3><PRE>public java.awt.Image <B>createImage</B>(java.awt.image.ImageProducer producer)</PRE><DL><DD><DL><DT><B>Overrides:</B><DD><CODE>createImage</CODE> in class <CODE>java.awt.Component</CODE></DL></DD></DL><HR><A NAME="setBounds(int, int, int, int)"><!-- --></A><H3>setBounds</H3><PRE>public void <B>setBounds</B>(int x, int y, int width, int height)</PRE><DL><DD>Moves and resizes this component. The new location of the top-left corner is specified by x and y, and the new size is specified by width and height.<DD><DL><DT><B>Overrides:</B><DD><CODE>setBounds</CODE> in class <CODE>java.awt.Component</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>x</CODE> - the new x-coordinate of this component<DD><CODE>y</CODE> - the new y-coordinate of this component<DD><CODE>width</CODE> - the new width of this component<DD><CODE>height</CODE> - the new height of this component<DT><B>See Also: </B><DD><A HREF="../../../quicktime/app/display/JQTCanvas.html#setBounds(java.awt.Rectangle)"><CODE>setBounds(Rectangle r)</CODE></A></DL></DD></DL><HR><A NAME="setBounds(java.awt.Rectangle)"><!-- --></A><H3>setBounds</H3><PRE>public void <B>setBounds</B>(java.awt.Rectangle r)</PRE><DL><DD>Moves and resizes this component to conform to the new bounding rectangle r. This component's new position is specified by r.x and r.y, and its new size is specified by r.width and r.height<DD><DL><DT><B>Overrides:</B><DD><CODE>setBounds</CODE> in class <CODE>java.awt.Component</CODE></DL></DD></DL><HR><A NAME="setSize(java.awt.Dimension)"><!-- --></A><H3>setSize</H3><PRE>public void <B>setSize</B>(java.awt.Dimension dim)</PRE><DL><DD>Resizes the JQTCanvas object to the specified parameters.<DD><DL><DT><B>Overrides:</B><DD><CODE>setSize</CODE> in class <CODE>java.awt.Component</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>dim</CODE> - a Dimension object with the new width and height</DL></DD></DL><HR><A NAME="setSize(int, int)"><!-- --></A><H3>setSize</H3><PRE>public void <B>setSize</B>(int width, int height)</PRE><DL><DD>Resizes the JQTCanvas object, as well as the associated Drawable object.<DD><DL><DT><B>Overrides:</B><DD><CODE>setSize</CODE> in class <CODE>java.awt.Component</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>width</CODE> - the width, in pixels, to make this component<DD><CODE>height</CODE> - the height, in pixels, to make this component</DL></DD></DL><HR><A NAME="reshape(int, int, int, int)"><!-- --></A><H3>reshape</H3><PRE>public final void <B>reshape</B>(int x, int y, int width, int height)</PRE><DL><DD><B>Deprecated.</B> <I>As of JDK version 1.1, replaced by <code>setBounds(int, int, int, int)</code>.</I><P><DD><DL><DT><B>Overrides:</B><DD><CODE>reshape</CODE> in class <CODE>javax.swing.JComponent</CODE></DL></DD></DL><HR><A NAME="setAlignment(float, float)"><!-- --></A><H3>setAlignment</H3><PRE>public void <B>setAlignment</B>(float x, float y)</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="setResizeFlag(int)"><!-- --></A><H3>setResizeFlag</H3><PRE>public void <B>setResizeFlag</B>(int rFlag)</PRE><DL><DD>Reset the resize flag and re-layout the component.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>rFlag</CODE> - the new value for the resizeFlag</DL></DD></DL><HR><A NAME="getResizeFlag()"><!-- --></A><H3>getResizeFlag</H3><PRE>public int <B>getResizeFlag</B>()</PRE><DL><DD>Returns the current setting of the resize flag being used.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the resize flag value</DL></DD></DL><HR><A NAME="drawingComplete(quicktime.app.display.QTDrawable)"><!-- --></A><H3>drawingComplete</H3><PRE>public void <B>drawingComplete</B>(<A HREF="../../../quicktime/app/display/QTDrawable.html">QTDrawable</A> drawable)</PRE><DL><DD>Called when a client is finished drawing and the canvas needs to be updated<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/display/DrawingListener.html#drawingComplete(quicktime.app.display.QTDrawable)">drawingComplete</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/display/DrawingListener.html">DrawingListener</A></CODE></DL></DD><DD>Following copied from interface: <CODE>quicktime.app.display.DrawingListener</CODE></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>drawable</CODE> - the drawable which drawing has just been completed upon<DT><B>Returns:</B><DD>an error code or zero if no error<DT><B>See Also: </B><DD><A HREF="../../../quicktime/app/display/package-summary.html">quicktime.app.display</A></DL></DD></DL><HR><A NAME="addQTClientListener(java.awt.event.ComponentListener)"><!-- --></A><H3>addQTClientListener</H3><PRE>public void <B>addQTClientListener</B>(java.awt.event.ComponentListener e)</PRE><DL><DD>A ComponentListener and ComponentEvent are used to listen to these types of events that occur to the QTCanvas' client - ie. when the QTCanvas' client is resized, moved, shown or hidden. These events generally occur in conjunction with the Component events they mirror - with some exceptions:<UL> <LI>ComponentShown and ComponentHidden are generated when the QTCanvas is shown or hidden and when the QTDrawable client is set or removed. <LI>ComonentMoved and ComponentResized are generated when the QTCanvas is moved or resized but the event is actually generated when the QTCanvas is repainted as this is when the QTDrawable client is itself resized or moved.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>e</CODE> - the ComponentListener</DL></DD></DL><HR><A NAME="removeQTClientListener(java.awt.event.ComponentListener)"><!-- --></A><H3>removeQTClientListener</H3><PRE>public void <B>removeQTClientListener</B>(java.awt.event.ComponentListener e)</PRE><DL><DD>Remove a previously registered ComponentListener that is listening to events that occur with the QTCanvas' QTDrawable client.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>e</CODE> - the ComponentListener<DT><B>See Also: </B><DD><CODE>addQTClientListener</CODE></DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/JQTCanvas.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../quicktime/app/display/GroupMember.html"><B>PREV CLASS</B></A> <A HREF="../../../quicktime/app/display/QTCanvas.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="JQTCanvas.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: <A HREF="#inner_classes_inherited_from_class_javax.swing.JComponent">INNER</A> | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -