qthandleref.html
来自「这个是java的quicktime for java 的详细使用文档」· HTML 代码 · 共 913 行 · 第 1/3 页
HTML
913 行
<!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:51:03 PDT 2002 --><TITLE>: Class QTHandleRef</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> </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/QTHandleRef.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/util/QTHandle.html"><B>PREV CLASS</B></A> <A HREF="../../quicktime/util/QTPointer.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="QTHandleRef.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">quicktime.util</FONT><BR>Class QTHandleRef</H2><PRE>java.lang.Object | +--<A HREF="../../quicktime/QTObject.html">quicktime.QTObject</A> | +--<B>quicktime.util.QTHandleRef</B></PRE><DL><DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../quicktime/jdirect/InterfaceLib.html">InterfaceLib</A>, <A HREF="../../quicktime/jdirect/PrimitivesLib.html">PrimitivesLib</A>, <A HREF="../../quicktime/jdirect/QuickTimeLib.html">QuickTimeLib</A>, <A HREF="../../quicktime/jdirect/SharedLibrary.html">SharedLibrary</A>, com.apple.jdirect.SharedLibrary</DD></DL><DL><DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../quicktime/io/AliasHandle.html">AliasHandle</A>, <A HREF="../../quicktime/std/movies/AtomContainer.html">AtomContainer</A>, <A HREF="../../quicktime/qd/ColorTable.html">ColorTable</A>, <A HREF="../../quicktime/qd/GDevice.html">GDevice</A>, <A HREF="../../quicktime/qd/Pict.html">Pict</A>, <A HREF="../../quicktime/qd/PixMap.html">PixMap</A>, <A HREF="../../quicktime/qd/Polygon.html">Polygon</A>, <A HREF="../../quicktime/util/QTHandle.html">QTHandle</A>, <A HREF="../../quicktime/std/music/QTMIDIPortList.html">QTMIDIPortList</A>, <A HREF="../../quicktime/qd/Region.html">Region</A>, <A HREF="../../quicktime/std/movies/media/SampleDescription.html">SampleDescription</A>, <A HREF="../../quicktime/std/sg/SGDeviceList.html">SGDeviceList</A>, <A HREF="../../quicktime/std/music/SoundLocalization.html">SoundLocalization</A>, <A HREF="../../quicktime/util/StringHandle.html">StringHandle</A></DD></DL><HR><DL><DT>public class <B>QTHandleRef</B><DT>extends <A HREF="../../quicktime/QTObject.html">QTObject</A><DT>implements <A HREF="../../quicktime/jdirect/QuickTimeLib.html">QuickTimeLib</A>, <A HREF="../../quicktime/jdirect/PrimitivesLib.html">PrimitivesLib</A>, <A HREF="../../quicktime/jdirect/InterfaceLib.html">InterfaceLib</A></DL><P>A QTHandleRef is a "smart" handle in that it can be either a Reference to a handle which is not disposable, or it can be a real "independent" handle which is automatically disposed on finalization. This class is used as a generic base class for handle based objects. See QTHandle for a user-level handle object. <P> The default setting is for the Handle to be disposable - subclasses must use the QTHandleRef(int, Object) constructor to create a non-disposable reference For non-disposable handles there are two situations to look out for:<BR> (1) Upon finalization the handle should NOT be disposed - it belongs to a parent struct<BR> (2) The parent object from which the handle is obtained should not be allowed to go away whilst the reference object is alive. <BR> In both situations we must maintain a reference to the parent or owner object. When defining a clone operation subclasses should define it as:<BR> public Object clone() { return new QTHandleSubclass (makeAndCopyHandle (), null); }<BR><P><HR><P><!-- ======== INNER CLASS SUMMARY ======== --><!-- =========== FIELD SUMMARY =========== --><A NAME="fields_inherited_from_class_quicktime.jdirect.QuickTimeLib"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Fields inherited from interface quicktime.jdirect.<A HREF="../../quicktime/jdirect/QuickTimeLib.html">QuickTimeLib</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../quicktime/jdirect/QuickTimeLib.html#JDirect_MacOSX">JDirect_MacOSX</A>, <A HREF="../../quicktime/jdirect/QuickTimeLib.html#libraryInstance">libraryInstance</A>, <A HREF="../../quicktime/jdirect/QuickTimeLib.html#name">name</A></CODE></TD></TR></TABLE> <!-- ======== CONSTRUCTOR SUMMARY ======== --><!-- ========== 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> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/util/QTHandleRef.html#copyFromArray(int, byte[], int, int)">copyFromArray</A></B>(int handleOffset, byte[] srcArray, int srcOffset, int length)</CODE><BR> An efficient byte[] copy that copies length bytes from the byte array to the handle.</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/util/QTHandleRef.html#copyFromArray(int, char[], int, int)">copyFromArray</A></B>(int handleOffset, char[] srcArray, int srcOffset, int length)</CODE><BR> An efficient char[] copy that copies length chars from the byte array to the handle.</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/util/QTHandleRef.html#copyFromArray(int, double[], int, int)">copyFromArray</A></B>(int handleOffset, double[] srcArray, int srcOffset, int length)</CODE><BR> An efficient double[] copy that copies length doubles from the byte array to the handle.</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/util/QTHandleRef.html#copyFromArray(int, float[], int, int)">copyFromArray</A></B>(int handleOffset, float[] srcArray, int srcOffset, int length)</CODE><BR> An efficient float[] copy that copies length floats from the byte array to the handle.</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/util/QTHandleRef.html#copyFromArray(int, int[], int, int)">copyFromArray</A></B>(int handleOffset, int[] srcArray, int srcOffset, int length)</CODE><BR> An efficient int[] copy that copies length ints from the byte array to the handle.</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/util/QTHandleRef.html#copyFromArray(int, long[], int, int)">copyFromArray</A></B>(int handleOffset, long[] srcArray, int srcOffset, int length)</CODE><BR> An efficient long[] copy that copies length longs from the byte array to the handle.</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/util/QTHandleRef.html#copyFromArray(int, short[], int, int)">copyFromArray</A></B>(int handleOffset, short[] srcArray, int srcOffset, int length)</CODE><BR> An efficient short[] copy that copies length shorts from the byte array to the handle.</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/util/QTHandleRef.html#copyToArray(int, byte[], int, int)">copyToArray</A></B>(int handleOffset, byte[] destArray, int destOffset, int length)</CODE><BR> An efficient byte[] copy that copies length bytes from the handle to the byte array.</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/util/QTHandleRef.html#copyToArray(int, char[], int, int)">copyToArray</A></B>(int handleOffset, char[] destArray, int destOffset, int length)</CODE><BR> An efficient char[] copy that copies length chars from the handle to the char array.</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/util/QTHandleRef.html#copyToArray(int, double[], int, int)">copyToArray</A></B>(int handleOffset, double[] destArray, int destOffset, int length)</CODE><BR> An efficient double[] copy that copies length doubles from the handle to the double array.</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/util/QTHandleRef.html#copyToArray(int, float[], int, int)">copyToArray</A></B>(int handleOffset, float[] destArray, int destOffset, int length)</CODE><BR> An efficient float[] copy that copies length floats from the handle to the float array.</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/util/QTHandleRef.html#copyToArray(int, int[], int, int)">copyToArray</A></B>(int handleOffset, int[] destArray, int destOffset, int length)</CODE><BR> An efficient int[] copy that copies length ints from the handle to the int array.</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/util/QTHandleRef.html#copyToArray(int, long[], int, int)">copyToArray</A></B>(int handleOffset, long[] destArray, int destOffset, int length)</CODE><BR> An efficient long[] copy that copies length longs from the handle to the long array.</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/util/QTHandleRef.html#copyToArray(int, short[], int, int)">copyToArray</A></B>(int handleOffset, short[] destArray, int destOffset, int length)</CODE><BR> An efficient short[] copy that copies length shorts from the handle to the short array.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../quicktime/util/QTHandleRef.html">QTHandleRef</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/util/QTHandleRef.html#fromCompressionDialogState(quicktime.std.qtcomponents.CompressionDialog)">fromCompressionDialogState</A></B>(<A HREF="../../quicktime/std/qtcomponents/CompressionDialog.html">CompressionDialog</A> cd)</CODE><BR> Retrieves all of the settings for a dialog.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../quicktime/std/qtcomponents/SCInfo.html">SCInfo</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/util/QTHandleRef.html#fromSCSequence(quicktime.std.qtcomponents.SCSequence, quicktime.qd.QDGraphics, quicktime.qd.QDRect)">fromSCSequence</A></B>(<A HREF="../../quicktime/std/qtcomponents/SCSequence.html">SCSequence</A> sc, <A HREF="../../quicktime/qd/QDGraphics.html">QDGraphics</A> src, <A HREF="../../quicktime/qd/QDRect.html">QDRect</A> srcRect)</CODE>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?