⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 twodsprite.html

📁 这个是java的quicktime for java 的详细使用文档
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc on Mon Jul 15 11:49:46 PDT 2002 --><TITLE>: Class  TwoDSprite</TITLE><LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style"></HEAD><BODY BGCOLOR="white"><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_top"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_top_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>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/TwoDSprite.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../quicktime/app/anim/SWController.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../quicktime/app/anim/TwoDSpriteInfo.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>  &nbsp;&nbsp;<A HREF="TwoDSprite.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: &nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">quicktime.app.anim</FONT><BR>Class  TwoDSprite</H2><PRE>java.lang.Object  |  +--<B>quicktime.app.anim.TwoDSprite</B></PRE><DL><DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../quicktime/app/image/Compositable.html">Compositable</A>, <A HREF="../../../quicktime/app/image/ImageSettable.html">ImageSettable</A>, <A HREF="../../../quicktime/app/image/ImageSpec.html">ImageSpec</A>, <A HREF="../../../quicktime/app/display/Layerable.html">Layerable</A>, <A HREF="../../../quicktime/app/actions/NotifyListener.html">NotifyListener</A>, <A HREF="../../../quicktime/app/image/Transformable.html">Transformable</A></DD></DL><DL><DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../quicktime/app/ui/UIElement.html">UIElement</A></DD></DL><HR><DL><DT>public class <B>TwoDSprite</B><DT>extends java.lang.Object<DT>implements <A HREF="../../../quicktime/app/actions/NotifyListener.html">NotifyListener</A>, <A HREF="../../../quicktime/app/image/Transformable.html">Transformable</A>, <A HREF="../../../quicktime/app/display/Layerable.html">Layerable</A>, <A HREF="../../../quicktime/app/image/ImageSettable.html">ImageSettable</A>, <A HREF="../../../quicktime/app/image/Compositable.html">Compositable</A></DL><P>A TwoDSprite is a specialised presenter for image data within the context of a SpriteWorld. It contains information also about the layer within the SpriteWorld that the image presented by the Sprite is drawn. It also contains information about visibility and Matrix transformations and GraphicsMode drawing transformations that are applied to the image data when the Sprite is drawn in the SpriteWorld. <P> Typically an application will provide the image data and presentation characteristics and the SWCompositor assumes the responsibility of creating the actual TwoDSprite's Sprite that is used to present this data in the internal SpriteWorld that the SWCompositor uses to render and construct its image. The TwoDSprite uses the quicktime.std.anim.Sprite class to draw the image in a quicktime.std.anim.SpriteWorld. <P><P><DL><DT><B>See Also: </B><DD><CODE>quicktime.app.display.Compositor</CODE>, <A HREF="../../../quicktime/app/anim/TwoDSpriteInfo.html"><CODE>TwoDSpriteInfo</CODE></A></DL><HR><P><!-- ======== INNER CLASS SUMMARY ======== --><!-- =========== FIELD SUMMARY =========== --><A NAME="field_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Field Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/anim/TwoDSprite.html#label">label</A></B></CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The actionCommand string that is presented to the QTActionListeners of the QTButton.</TD></TR></TABLE>&nbsp;<A NAME="fields_inherited_from_class_quicktime.app.display.Layerable"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Fields inherited from interface quicktime.app.display.<A HREF="../../../quicktime/app/display/Layerable.html">Layerable</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../quicktime/app/display/Layerable.html#kBackMostLayer">kBackMostLayer</A></CODE></TD></TR></TABLE>&nbsp;<!-- ======== CONSTRUCTOR SUMMARY ======== --><A NAME="constructor_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Constructor Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../quicktime/app/anim/TwoDSprite.html#TwoDSprite()">TwoDSprite</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create a sprite that will use a hidden image, visibility set to false and an Identity matrix.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../quicktime/app/anim/TwoDSprite.html#TwoDSprite(quicktime.app.image.ImageDataSequence, int, quicktime.std.image.Matrix, boolean, int)">TwoDSprite</A></B>(<A HREF="../../../quicktime/app/image/ImageDataSequence.html">ImageDataSequence</A>&nbsp;images,           int&nbsp;frame,           <A HREF="../../../quicktime/std/image/Matrix.html">Matrix</A>&nbsp;matrix,           boolean&nbsp;visibility,           int&nbsp;layer)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This constructor provides all of the state which will be used by the TwoDSprite object to create itself when it is attached to a SpriteWorld.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../quicktime/app/anim/TwoDSprite.html#TwoDSprite(quicktime.app.image.ImageDataSequence, int, quicktime.std.image.Matrix, boolean, int, quicktime.std.image.GraphicsMode)">TwoDSprite</A></B>(<A HREF="../../../quicktime/app/image/ImageDataSequence.html">ImageDataSequence</A>&nbsp;images,           int&nbsp;frame,           <A HREF="../../../quicktime/std/image/Matrix.html">Matrix</A>&nbsp;matrix,           boolean&nbsp;visibility,           int&nbsp;layer,           <A HREF="../../../quicktime/std/image/GraphicsMode.html">GraphicsMode</A>&nbsp;graphicsMode)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This constructor provides all of the state which will be used by the TwoDSprite object to create itself when it is attached to a SpriteWorld.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../quicktime/app/anim/TwoDSprite.html#TwoDSprite(quicktime.app.image.ImageSpec, quicktime.std.image.Matrix, boolean, int)">TwoDSprite</A></B>(<A HREF="../../../quicktime/app/image/ImageSpec.html">ImageSpec</A>&nbsp;image,           <A HREF="../../../quicktime/std/image/Matrix.html">Matrix</A>&nbsp;matrix,           boolean&nbsp;visibility,           int&nbsp;layer)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This constructor provides all of the state which will be used by the TwoDSprite object to create itself when it is attached to a SpriteWorld.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../quicktime/app/anim/TwoDSprite.html#TwoDSprite(quicktime.app.image.ImageSpec, quicktime.std.image.Matrix, boolean, int, quicktime.std.image.GraphicsMode)">TwoDSprite</A></B>(<A HREF="../../../quicktime/app/image/ImageSpec.html">ImageSpec</A>&nbsp;image,           <A HREF="../../../quicktime/std/image/Matrix.html">Matrix</A>&nbsp;matrix,           boolean&nbsp;visibility,           int&nbsp;layer,           <A HREF="../../../quicktime/std/image/GraphicsMode.html">GraphicsMode</A>&nbsp;graphicsMode)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This constructor provides all of the state which will be used by the TwoDSprite object to create itself when it is attached to a SpriteWorld.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../quicktime/app/anim/TwoDSprite.html#TwoDSprite(quicktime.std.image.Matrix, int, quicktime.std.image.GraphicsMode)">TwoDSprite</A></B>(<A HREF="../../../quicktime/std/image/Matrix.html">Matrix</A>&nbsp;matrix,           int&nbsp;layer,           <A HREF="../../../quicktime/std/image/GraphicsMode.html">GraphicsMode</A>&nbsp;graphicsMode)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create a sprite that will use a hidden image and visibility set to false.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../quicktime/app/anim/TwoDSprite.html#TwoDSprite(quicktime.app.anim.TwoDSpriteInfo)">TwoDSprite</A></B>(<A HREF="../../../quicktime/app/anim/TwoDSpriteInfo.html">TwoDSpriteInfo</A>&nbsp;spriteInfo)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create a sprite when the final destination of the sprite is not known.</TD></TR></TABLE>&nbsp;<!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Method Summary</B></FONT></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/anim/TwoDSprite.html#createSprite(quicktime.std.anim.SpriteWorld)">createSprite</A></B>(<A HREF="../../../quicktime/std/anim/SpriteWorld.html">SpriteWorld</A>&nbsp;sw)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This will create a sprite object that presents the specified image and display options as specified in the contained info object.</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/anim/TwoDSprite.html#equals(java.lang.Object)">equals</A></B>(java.lang.Object&nbsp;obj)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if the TwoDSprite represents the same Sprite object</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../quicktime/std/image/ImageDescription.html">ImageDescription</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/anim/TwoDSprite.html#getDescription()">getDescription</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method gets the image description property of this sprite.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../quicktime/std/image/GraphicsMode.html">GraphicsMode</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/anim/TwoDSprite.html#getGraphicsMode()">getGraphicsMode</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method gets the graphics mode property of this sprite.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../quicktime/util/EncodedImage.html">EncodedImage</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/anim/TwoDSprite.html#getImage()">getImage</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method returns the actual image data.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.awt.Dimension</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/anim/TwoDSprite.html#getInitialSize()">getInitialSize</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>since QTJava 4.0</I></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/anim/TwoDSprite.html#getLabel()">getLabel</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;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/anim/TwoDSprite.html#getLayer()">getLayer</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method gets the layer property of this sprite.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">

⌨️ 快捷键说明

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