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

📄 qtimagedrawer.html

📁 这个是java的quicktime for java 的详细使用文档
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<DD>QTCanvas calls this method when it needs to ask the client for its boundary. All values are in pixels. <br><DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/display/Drawable.html#getDisplayBounds()">getDisplayBounds</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/display/Drawable.html">Drawable</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the boundary of the client</DL></DD></DL><HR><A NAME="redraw(quicktime.qd.Region)"><!-- --></A><H3>redraw</H3><PRE>public void <B>redraw</B>(<A HREF="../../../quicktime/qd/Region.html">Region</A>&nbsp;invalidRgn)            throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>QTCanvas calls this method when the client should redraw itself. If the canvas is able to discern that only a part of the client's  drawing area needs to be redrawn - then this area shall be passed in using the invalidRgn. Otherwise this will be null in which case the client should redraw itself entirely. <P> This call will just redraw the current image. If you want to have the Paintable client repaint itself then you must set the  redrawing flag to true.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/display/Drawable.html#redraw(quicktime.qd.Region)">redraw</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/display/Drawable.html">Drawable</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>invalidRgn</CODE> - the invalidRgn that the client should redraw<DT><B>See Also: </B><DD><A HREF="../../../quicktime/app/image/QTImageDrawer.html#setRedrawing(boolean)"><CODE>setRedrawing(boolean)</CODE></A></DL></DD></DL><HR><A NAME="setRedrawing(boolean)"><!-- --></A><H3>setRedrawing</H3><PRE>public void <B>setRedrawing</B>(boolean&nbsp;redrawFlag)</PRE><DL><DD>If true then the redraw method of the object will fetch new image data from its image source.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/image/Redrawable.html#setRedrawing(boolean)">setRedrawing</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/image/Redrawable.html">Redrawable</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>redrawFlag</CODE> - boolean determining whether the current image is redrawn (false) of fresh or updated image data is first retrieved (true).</DL></DD></DL><HR><A NAME="isSingleFrame()"><!-- --></A><H3>isSingleFrame</H3><PRE>public boolean <B>isSingleFrame</B>()</PRE><DL><DD>Returns true if the Redrawable only has a single frame to render and thus will never need to re-acquire or redraw its image. Certain Redrawable objects are able to optimise their resources knowing this constraint.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/image/Redrawable.html#isSingleFrame()">isSingleFrame</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/image/Redrawable.html">Redrawable</A></CODE></DL></DD><DD>Following copied from interface: <CODE>quicktime.app.image.Redrawable</CODE></DD><DD><DL><DT><B>Returns:</B><DD>a boolean</DL></DD></DL><HR><A NAME="isRedrawing()"><!-- --></A><H3>isRedrawing</H3><PRE>public boolean <B>isRedrawing</B>()</PRE><DL><DD>Returns true if the image data may be altered or different upon different calls of the redraw method of the QTDrawable interface<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/image/Redrawable.html#isRedrawing()">isRedrawing</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/image/Redrawable.html">Redrawable</A></CODE></DL></DD></DL><HR><A NAME="prepaint()"><!-- --></A><H3>prepaint</H3><PRE>public <A HREF="../../../quicktime/qd/Region.html">Region</A> <B>prepaint</B>()                throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>This method is used to paint the painter object's image and to grab the resulting pixels into a format that the QTImageDrawer can then draw using the quicktime drawing commands. It returns a Region that defins the areas of the pixel data that were changed from the call. It will call the Paintable's paint method.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a Region or null if the QTImageDrawer does not yet have an offscreen java.awt.Image object to paint too.</DL></DD></DL><HR><A NAME="setGraphicsMode(quicktime.std.image.GraphicsMode)"><!-- --></A><H3>setGraphicsMode</H3><PRE>public void <B>setGraphicsMode</B>(<A HREF="../../../quicktime/std/image/GraphicsMode.html">GraphicsMode</A>&nbsp;mode)                     throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>This sets the GraphicsMode for the Compositor when it draws its composited  contents to its destination QDGraphics (typically the QTCanvas).<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/image/Compositable.html#setGraphicsMode(quicktime.std.image.GraphicsMode)">setGraphicsMode</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/image/Compositable.html">Compositable</A></CODE></DL></DD><DD>Following copied from interface: <CODE>quicktime.app.image.Compositable</CODE></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>gMode</CODE> - Specifies the graphics mode.</DL></DD></DL><HR><A NAME="getGraphicsMode()"><!-- --></A><H3>getGraphicsMode</H3><PRE>public <A HREF="../../../quicktime/std/image/GraphicsMode.html">GraphicsMode</A> <B>getGraphicsMode</B>()</PRE><DL><DD>This gets the current GraphicsMode for the compositor.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/image/Compositable.html#getGraphicsMode()">getGraphicsMode</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/image/Compositable.html">Compositable</A></CODE></DL></DD><DD>Following copied from interface: <CODE>quicktime.app.image.Compositable</CODE></DD><DD><DL><DT><B>Returns:</B><DD>a Graphics mode object</DL></DD></DL><HR><A NAME="addedToCompositor(quicktime.app.anim.SWCompositor, quicktime.app.anim.TwoDSprite)"><!-- --></A><H3>addedToCompositor</H3><PRE>public <A HREF="../../../quicktime/app/actions/Invalidator.html">Invalidator</A> <B>addedToCompositor</B>(<A HREF="../../../quicktime/app/anim/SWCompositor.html">SWCompositor</A>&nbsp;c,                                     <A HREF="../../../quicktime/app/anim/TwoDSprite.html">TwoDSprite</A>&nbsp;s)</PRE><DL><DD>Returns an object that invalidates a sprite. When a DynamicImage is a member of a SWompositor and the DynamicImage presents a changing image (for example a movie), the TwoDSprite that presents that image in the SWCompositor must be invalidated so that it will redraw the Sprites image in the next composit cycle. The Invalidator object is used to perform this function by the SWCompositor if the object itself cannot perform the invalidation. Can return null if the DynamicImage does not require the SWCompositor to invalidate it (or the object is in a state where its image won't change). <P> The Invalidators provided with objects that implement the DynamicImage interface will execute at the scale and period of the Compositor when they are created. <P> This call will not return an Invalidator if the QTImageDrawer is presenting a single frame image as the assumption is made that the image data is not changing.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/image/DynamicImage.html#addedToCompositor(quicktime.app.anim.SWCompositor, quicktime.app.anim.TwoDSprite)">addedToCompositor</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/image/DynamicImage.html">DynamicImage</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>c</CODE> - the Compositor in which the DynamicImage is a member<DD><CODE>s</CODE> - the TwoDSprite that is presenting the DynamicImage's image in the Compositor. This is the sprite that must be invalidated.<DT><B>Returns:</B><DD>an Invalidator or null if invalidation is not required<DT><B>See Also: </B><DD><CODE>quicktime.app.display.SWCompositor</CODE></DL></DD></DL><HR><A NAME="removedFromCompositor(quicktime.app.anim.SWCompositor)"><!-- --></A><H3>removedFromCompositor</H3><PRE>public void <B>removedFromCompositor</B>(<A HREF="../../../quicktime/app/anim/SWCompositor.html">SWCompositor</A>&nbsp;c)</PRE><DL><DD>When a dynamic image class is removed from a SWCompositor this method is called to allow the class to cleanup any of the invalidation processes it had established in the addedToCompositor call.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/image/DynamicImage.html#removedFromCompositor(quicktime.app.anim.SWCompositor)">removedFromCompositor</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/image/DynamicImage.html">DynamicImage</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>c</CODE> - the SWCompositor it is being removed from</DL></DD></DL><HR><A NAME="addedTo(java.lang.Object)"><!-- --></A><H3>addedTo</H3><PRE>public void <B>addedTo</B>(java.lang.Object&nbsp;interest)</PRE><DL><DD>This method is called by the specified object when the instance of  the class that implements this interface is added to the object that is the source of the interest. If the object is a kind of java.awt.Component then an offscreen image is created from this Component and this Image is used as the pixel resource for a java.awt.Graphics object that is passed to the attached Paintable object. If not nothing is done.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/spaces/Listener.html#addedTo(java.lang.Object)">addedTo</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/spaces/Listener.html">Listener</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>interest</CODE> - the object that is to be the source of interest for the the object that implements this interface.</DL></DD></DL><HR><A NAME="removedFrom(java.lang.Object)"><!-- --></A><H3>removedFrom</H3><PRE>public void <B>removedFrom</B>(java.lang.Object&nbsp;interest)</PRE><DL><DD>This method is called by the specified object when the instance of  the class that implements this interface is removed from the object that is the source of the interest. If the object is a kind of java.awt.Component then the cached java.awt.Image object that was created in the addedTo method is disposed of.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/spaces/Listener.html#removedFrom(java.lang.Object)">removedFrom</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/spaces/Listener.html">Listener</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>interest</CODE> - the object that was the source of interest for the the object that implements this interface.</DL></DD></DL><HR><A NAME="addNotifyListener(quicktime.app.actions.NotifyListener)"><!-- --></A><H3>addNotifyListener</H3><PRE>public boolean <B>addNotifyListener</B>(<A HREF="../../../quicktime/app/actions/NotifyListener.html">NotifyListener</A>&nbsp;nl)</PRE><DL><DD>This registers the deferred listener.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/actions/Notifier.html#addNotifyListener(quicktime.app.actions.NotifyListener)">addNotifyListener</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/actions/Notifier.html">Notifier</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>dl</CODE> - the listener that the DeferredListener notifies when its listen source becomes valid</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>&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/QTImageDrawer.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/image/QTFilter.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../quicktime/app/image/QTImageProducer.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="QTImageDrawer.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></BODY></HTML>

⌨️ 快捷键说明

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