qtbutton.html

来自「这个是java的quicktime for java 的详细使用文档」· HTML 代码 · 共 755 行 · 第 1/3 页

HTML
755
字号
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../quicktime/app/image/ImageSpec.html">ImageSpec</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/ui/QTButton.html#getPressedImage()">getPressedImage</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../quicktime/app/image/ImageSpec.html">ImageSpec</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/ui/QTButton.html#getReleasedImage()">getReleasedImage</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../quicktime/app/image/ImageSpec.html">ImageSpec</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/ui/QTButton.html#getRolloverImage()">getRolloverImage</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/ui/QTButton.html#isMouseInButton()">isMouseInButton</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/ui/QTButton.html#isPressed()">isPressed</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/ui/QTButton.html#pressed()">pressed</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Subclass provides the implementation for this method, though the subclass should ensure that super.pressed() is called.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/ui/QTButton.html#released()">released</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Subclass provides the implementation for this method, though the subclass should ensure that super.released() is called.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/ui/QTButton.html#removeActionListener(quicktime.app.event.QTActionListener)">removeActionListener</A></B>(<A HREF="../../../quicktime/app/event/QTActionListener.html">QTActionListener</A>&nbsp;l)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Remove an ActionListener from this button.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/ui/QTButton.html#removeMouseTargetListener(quicktime.app.event.MouseTargetListener)">removeMouseTargetListener</A></B>(<A HREF="../../../quicktime/app/event/MouseTargetListener.html">MouseTargetListener</A>&nbsp;l)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Remove a MouseTargetListener for this QTButton.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/ui/QTButton.html#setDeactiveImage(quicktime.app.image.ImageSpec)">setDeactiveImage</A></B>(<A HREF="../../../quicktime/app/image/ImageSpec.html">ImageSpec</A>&nbsp;image)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets a new image for the deactive state of the button.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/ui/QTButton.html#setPressedImage(quicktime.app.image.ImageSpec)">setPressedImage</A></B>(<A HREF="../../../quicktime/app/image/ImageSpec.html">ImageSpec</A>&nbsp;image)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets a new image for the pressed state of the button.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/ui/QTButton.html#setReleasedImage(quicktime.app.image.ImageSpec)">setReleasedImage</A></B>(<A HREF="../../../quicktime/app/image/ImageSpec.html">ImageSpec</A>&nbsp;image)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets a new image for the released state of the button.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/ui/QTButton.html#setRolloverImage(quicktime.app.image.ImageSpec)">setRolloverImage</A></B>(<A HREF="../../../quicktime/app/image/ImageSpec.html">ImageSpec</A>&nbsp;image)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets a new image for the rollover state of the button.</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_quicktime.app.ui.UIElement"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class quicktime.app.ui.<A HREF="../../../quicktime/app/ui/UIElement.html">UIElement</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../quicktime/app/ui/UIElement.html#addedToCompositor(quicktime.app.anim.SWCompositor, quicktime.app.anim.TwoDSprite)">addedToCompositor</A>, <A HREF="../../../quicktime/app/ui/UIElement.html#getBounds()">getBounds</A>, <A HREF="../../../quicktime/app/ui/UIElement.html#isActive()">isActive</A>, <A HREF="../../../quicktime/app/ui/UIElement.html#removedFromCompositor(quicktime.app.anim.SWCompositor)">removedFromCompositor</A>, <A HREF="../../../quicktime/app/ui/UIElement.html#setActive(boolean)">setActive</A>, <A HREF="../../../quicktime/app/ui/UIElement.html#setCurrentImage(quicktime.app.image.ImageSpec)">setCurrentImage</A>, <A HREF="../../../quicktime/app/ui/UIElement.html#setLocation(int, int)">setLocation</A>, <A HREF="../../../quicktime/app/ui/UIElement.html#setSize(quicktime.qd.QDDimension)">setSize</A></CODE></TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_quicktime.app.anim.TwoDSprite"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class quicktime.app.anim.<A HREF="../../../quicktime/app/anim/TwoDSprite.html">TwoDSprite</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../quicktime/app/anim/TwoDSprite.html#createSprite(quicktime.std.anim.SpriteWorld)">createSprite</A>, <A HREF="../../../quicktime/app/anim/TwoDSprite.html#equals(java.lang.Object)">equals</A>, <A HREF="../../../quicktime/app/anim/TwoDSprite.html#getDescription()">getDescription</A>, <A HREF="../../../quicktime/app/anim/TwoDSprite.html#getGraphicsMode()">getGraphicsMode</A>, <A HREF="../../../quicktime/app/anim/TwoDSprite.html#getImage()">getImage</A>, <A HREF="../../../quicktime/app/anim/TwoDSprite.html#getInitialSize()">getInitialSize</A>, <A HREF="../../../quicktime/app/anim/TwoDSprite.html#getLabel()">getLabel</A>, <A HREF="../../../quicktime/app/anim/TwoDSprite.html#getLayer()">getLayer</A>, <A HREF="../../../quicktime/app/anim/TwoDSprite.html#getMatrix()">getMatrix</A>, <A HREF="../../../quicktime/app/anim/TwoDSprite.html#getOriginalSize()">getOriginalSize</A>, <A HREF="../../../quicktime/app/anim/TwoDSprite.html#getParent()">getParent</A>, <A HREF="../../../quicktime/app/anim/TwoDSprite.html#getSpriteInfo()">getSpriteInfo</A>, <A HREF="../../../quicktime/app/anim/TwoDSprite.html#getVisible()">getVisible</A>, <A HREF="../../../quicktime/app/anim/TwoDSprite.html#hitTest(int, quicktime.qd.QDPoint)">hitTest</A>, <A HREF="../../../quicktime/app/anim/TwoDSprite.html#invalidate()">invalidate</A>, <A HREF="../../../quicktime/app/anim/TwoDSprite.html#isValid()">isValid</A>, <A HREF="../../../quicktime/app/anim/TwoDSprite.html#notifyComplete()">notifyComplete</A>, <A HREF="../../../quicktime/app/anim/TwoDSprite.html#remove()">remove</A>, <A HREF="../../../quicktime/app/anim/TwoDSprite.html#removeNotify()">removeNotify</A>, <A HREF="../../../quicktime/app/anim/TwoDSprite.html#setDescription(quicktime.std.image.ImageDescription)">setDescription</A>, <A HREF="../../../quicktime/app/anim/TwoDSprite.html#setGraphicsMode(quicktime.std.image.GraphicsMode)">setGraphicsMode</A>, <A HREF="../../../quicktime/app/anim/TwoDSprite.html#setImage(quicktime.util.EncodedImage)">setImage</A>, <A HREF="../../../quicktime/app/anim/TwoDSprite.html#setImageData(quicktime.util.EncodedImage, quicktime.std.image.ImageDescription)">setImageData</A>, <A HREF="../../../quicktime/app/anim/TwoDSprite.html#setLabel(java.lang.String)">setLabel</A>, <A HREF="../../../quicktime/app/anim/TwoDSprite.html#setLayer(int)">setLayer</A>, <A HREF="../../../quicktime/app/anim/TwoDSprite.html#setMatrix(quicktime.std.image.Matrix)">setMatrix</A>, <A HREF="../../../quicktime/app/anim/TwoDSprite.html#setNotifier(quicktime.app.actions.Notifier)">setNotifier</A>, <A HREF="../../../quicktime/app/anim/TwoDSprite.html#setVisible(boolean)">setVisible</A>, <A HREF="../../../quicktime/app/anim/TwoDSprite.html#toString()">toString</A></CODE></TD></TR></TABLE>&nbsp;<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, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_quicktime.app.image.Compositable"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from interface quicktime.app.image.<A HREF="../../../quicktime/app/image/Compositable.html">Compositable</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../quicktime/app/image/Compositable.html#getGraphicsMode()">getGraphicsMode</A>, <A HREF="../../../quicktime/app/image/Compositable.html#setGraphicsMode(quicktime.std.image.GraphicsMode)">setGraphicsMode</A></CODE></TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_quicktime.app.image.ImageSpec"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from interface quicktime.app.image.<A HREF="../../../quicktime/app/image/ImageSpec.html">ImageSpec</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../quicktime/app/image/ImageSpec.html#getDescription()">getDescription</A>, <A HREF="../../../quicktime/app/image/ImageSpec.html#getImage()">getImage</A></CODE></TD></TR></TABLE>&nbsp;<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="releasedImage"><!-- --></A><H3>releasedImage</H3><PRE>protected <A HREF="../../../quicktime/app/image/ImageSpec.html">ImageSpec</A> <B>releasedImage</B></PRE><DL><DD>The image presented by the QTButton when it is in a released state. If a rollover image is specified, then this is presented when the mouse is outside the button, and the rolloverImage is presented when the mouse is inside the button.</DL><HR><A NAME="rolloverImage"><!-- --></A><H3>rolloverImage</H3><PRE>protected <A HREF="../../../quicktime/app/image/ImageSpec.html">ImageSpec</A> <B>rolloverImage</B></PRE><DL><DD>If specified then the image presented by the QTButton when it is in a released state and the mouse is over the button.</DL><HR><A NAME="pressedImage"><!-- --></A><H3>pressedImage</H3><PRE>protected <A HREF="../../../quicktime/app/image/ImageSpec.html">ImageSpec</A> <B>pressedImage</B></PRE><DL><DD>The image presented by the QTButton when it is in a pressed state.</DL><HR><A NAME="actionListener"><!-- --></A><H3>actionListener</H3><PRE>protected <A HREF="../../../quicktime/app/event/QTActionListener.html">QTActionListener</A> <B>actionListener</B></PRE><DL><DD>The QTActionListeners that will be fired when the QTButton is activated.</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="QTButton(quicktime.app.image.ImageSpec, quicktime.app.image.ImageSpec, quicktime.app.image.ImageSpec, quicktime.app.image.ImageSpec)"><!-- --></A><H3>QTButton</H3><PRE>protected <B>QTButton</B>(<A HREF="../../../quicktime/app/image/ImageSpec.html">ImageSpec</A>&nbsp;releasedImage,                   <A HREF="../../../quicktime/app/image/ImageSpec.html">ImageSpec</A>&nbsp;pressedImage,                   <A HREF="../../../quicktime/app/image/ImageSpec.html">ImageSpec</A>&nbsp;deactiveImage,                   <A HREF="../../../quicktime/app/image/ImageSpec.html">ImageSpec</A>&nbsp;rolloverImage)            throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Sets the images of the UIElement as specified. The default location is 0,0, the default layer is 1 and there is no graphics mode assigned to the QTButton.<DD><DL><DT><B>Parameters:</B><DD><CODE>releasedImage</CODE> - will be the currentImage of the UIElement<DD><CODE>pressedImage</CODE> - will be the image shown when the QTButton is pressed<DD><CODE>deactiveImage</CODE> - will be the deactiveImage of the UIElement<DD><CODE>rolloverImage</CODE> - will be the releasedImage of the UIElement when the mouse is over the button</DL></DD></DL><HR><A NAME="QTButton(quicktime.app.image.ImageSpec, quicktime.app.image.ImageSpec, quicktime.app.image.ImageSpec, quicktime.app.image.ImageSpec, quicktime.std.image.Matrix, int, quicktime.std.image.GraphicsMode)"><!-- --></A><H3>QTButton</H3><PRE>protected <B>QTButton</B>(<A HREF="../../../quicktime/app/image/ImageSpec.html">ImageSpec</A>&nbsp;releasedImage,                   <A HREF="../../../quicktime/app/image/ImageSpec.html">ImageSpec</A>&nbsp;pressedImage,                   <A HREF="../../../quicktime/app/image/ImageSpec.html">ImageSpec</A>&nbsp;deactiveImage,                   <A HREF="../../../quicktime/app/image/ImageSpec.html">ImageSpec</A>&nbsp;rolloverImage,                   <A HREF="../../../quicktime/std/image/Matrix.html">Matrix</A>&nbsp;matrix,                   int&nbsp;layer,                   <A HREF="../../../quicktime/std/image/GraphicsMode.html">GraphicsMode</A>&nbsp;mode)            throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Sets the images and display characteristics of the UIElement as specified.<DD><DL><DT><B>Parameters:</B><DD><CODE>releasedImage</CODE> - will be the currentImage of the UIElement<DD><CODE>pressedImage</CODE> - will be the image shown when the QTButton is pressed<DD><CODE>deactiveImage</CODE> - will be the deactiveImage of the UIElement<DD><CODE>rolloverImage</CODE> - will be the releasedImage of the UIElement when the mouse is over the button<DD><CODE>matrix</CODE> - the display matrix properties of the UIElement<DD><CODE>layer</CODE> - the layer in which the UIElement will be presented<DD><CODE>mode</CODE> - the GraphicsMode of the UIElement.</DL></DD></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>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?