📄 imageviewer.html
字号:
QTCanvas calls this method when it needs to tell the client to adjust its location, width and/or height.</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/image/ImageViewer.html#setGraphicsMode(quicktime.std.image.GraphicsMode)">setGraphicsMode</A></B>(<A HREF="../../../quicktime/std/image/GraphicsMode.html">GraphicsMode</A> mode)</CODE><BR> This sets the GraphicsMode for the Compositor when it draws its composited contents to its destination QDGraphics (typically 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/image/ImageViewer.html#setGWorld(quicktime.qd.QDGraphics)">setGWorld</A></B>(<A HREF="../../../quicktime/qd/QDGraphics.html">QDGraphics</A> cgp)</CODE><BR> QTCanvas calls this method to give the client the QDGraphics object it should use to do its drawing.</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/image/ImageViewer.html#setImageData(quicktime.util.EncodedImage, quicktime.std.image.ImageDescription)">setImageData</A></B>(<A HREF="../../../quicktime/util/EncodedImage.html">EncodedImage</A> imageData, <A HREF="../../../quicktime/std/image/ImageDescription.html">ImageDescription</A> desc)</CODE><BR> This can be used by subclasses to change the Image that the viewer is presenting.</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/image/ImageViewer.html#setImages(quicktime.app.image.ImageSequencer)">setImages</A></B>(<A HREF="../../../quicktime/app/image/ImageSequencer.html">ImageSequencer</A> images)</CODE><BR> Sets a new sequence of images for the viewer to present.</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/image/ImageViewer.html#setLocation(int, int)">setLocation</A></B>(int x, int y)</CODE><BR> A convenience method to set the position of a QTDrawable 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/image/ImageViewer.html#setMatrix(quicktime.std.image.Matrix)">setMatrix</A></B>(<A HREF="../../../quicktime/std/image/Matrix.html">Matrix</A> matrix)</CODE><BR> This method sets the current matrix of the Transformable object to the new matrix.</TD></TR></TABLE> <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, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE> <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="imagePresenter"><!-- --></A><H3>imagePresenter</H3><PRE>protected <A HREF="../../../quicktime/app/image/ImagePresenter.html">ImagePresenter</A> <B>imagePresenter</B></PRE><DL><DD>This is the ImagePresenter object that presents the current image.</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="ImageViewer(quicktime.app.image.ImageSequencer)"><!-- --></A><H3>ImageViewer</H3><PRE>public <B>ImageViewer</B>(<A HREF="../../../quicktime/app/image/ImageSequencer.html">ImageSequencer</A> images) throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Creates a viewer for a sequence of images.</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></TABLE><A NAME="getImages()"><!-- --></A><H3>getImages</H3><PRE>public <A HREF="../../../quicktime/app/image/ImageSequencer.html">ImageSequencer</A> <B>getImages</B>()</PRE><DL><DD>Returns the current collection of images that the Viewer is presenting<DD><DL></DL></DD></DL><HR><A NAME="setImageData(quicktime.util.EncodedImage, quicktime.std.image.ImageDescription)"><!-- --></A><H3>setImageData</H3><PRE>public void <B>setImageData</B>(<A HREF="../../../quicktime/util/EncodedImage.html">EncodedImage</A> imageData, <A HREF="../../../quicktime/std/image/ImageDescription.html">ImageDescription</A> desc) throws <A HREF="../../../quicktime/QTException.html">QTException</A>, <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>This can be used by subclasses to change the Image that the viewer is presenting.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/image/ImageSettable.html#setImageData(quicktime.util.EncodedImage, quicktime.std.image.ImageDescription)">setImageData</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/image/ImageSettable.html">ImageSettable</A></CODE></DL></DD><DD>Following copied from interface: <CODE>quicktime.app.image.ImageSettable</CODE></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>imageData</CODE> - the new image data that the object should make its current image.<DD><CODE>desc</CODE> - this is the description that describes the image data</DL></DD></DL><HR><A NAME="setImages(quicktime.app.image.ImageSequencer)"><!-- --></A><H3>setImages</H3><PRE>public void <B>setImages</B>(<A HREF="../../../quicktime/app/image/ImageSequencer.html">ImageSequencer</A> images) throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Sets a new sequence of images for the viewer to present. The viewer will always display the currentImage, so if you want to have a particular setting for this a subclass can overide this method, set the currentImage on the incoming images and then call super.setImages(images).<DD><DL></DL></DD></DL><HR><A NAME="addedTo(java.lang.Object)"><!-- --></A><H3>addedTo</H3><PRE>public void <B>addedTo</B>(java.lang.Object 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. In this class it does nothing.<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 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. In this class it does nothing.<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="setGWorld(quicktime.qd.QDGraphics)"><!-- --></A><H3>setGWorld</H3><PRE>public void <B>setGWorld</B>(<A HREF="../../../quicktime/qd/QDGraphics.html">QDGraphics</A> cgp) throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>QTCanvas calls this method to give the client the QDGraphics object it should use to do its drawing. If the incoming QDGraphics is the QDGraphics.scratch then the drawable will not be visible and can disable itself. If a client is unable to set the graphics world it should throw an exception. <br><DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/display/QTDrawable.html#setGWorld(quicktime.qd.QDGraphics)">setGWorld</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/display/QTDrawable.html">QTDrawable</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>cgp</CODE> - a QDGraphics object</DL></DD></DL><HR><A NAME="getGWorld()"><!-- --></A><H3>getGWorld</H3><PRE>public <A HREF="../../../quicktime/qd/QDGraphics.html">QDGraphics</A> <B>getGWorld</B>()</PRE><DL><DD>QTCanvas calls this method to get the destination QDGraphics of its client.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/display/QTDrawable.html#getGWorld()">getGWorld</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/display/QTDrawable.html">QTDrawable</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>a QDGraphics object or null</DL></DD></DL><HR><A NAME="setDisplayBounds(quicktime.qd.QDRect)"><!-- --></A><H3>setDisplayBounds</H3><PRE>public void <B>setDisplayBounds</B>(<A HREF="../../../quicktime/qd/QDRect.html">QDRect</A> bounds) throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>QTCanvas calls this method when it needs to tell the client to adjust its location, width and/or height. All values are in pixels. <br><DD><DL>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -