📄 qdrect.html
字号:
<!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:50:47 PDT 2002 --><TITLE>: Class QDRect</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/QDRect.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/qd/QDPoint.html"><B>PREV CLASS</B></A> <A HREF="../../quicktime/qd/Region.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="QDRect.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">quicktime.qd</FONT><BR>Class QDRect</H2><PRE>java.lang.Object | +--<A HREF="../../quicktime/util/QTByteObject.html">quicktime.util.QTByteObject</A> | +--<B>quicktime.qd.QDRect</B></PRE><DL><DT><B>All Implemented Interfaces:</B> <DD>java.lang.Cloneable, <A HREF="../../quicktime/jdirect/PrimitivesLib.html">PrimitivesLib</A>, java.io.Serializable, <A HREF="../../quicktime/jdirect/SharedLibrary.html">SharedLibrary</A>, com.apple.jdirect.SharedLibrary</DD></DL><HR><DL><DT>public final class <B>QDRect</B><DT>extends <A HREF="../../quicktime/util/QTByteObject.html">QTByteObject</A><DT>implements <A HREF="../../quicktime/jdirect/PrimitivesLib.html">PrimitivesLib</A>, java.lang.Cloneable</DL><P>This class corresponds to the Rect and FixedRect Data structures. It has a current limitation of x and y < 32767 and x+width, y+height < 32767. <P> The width and height values are the number of pixels that will be seen - thus if x == 1 and width is 3, the pixels drawn will be pixels at 1, 2, 3.<P><DL><DT><B>See Also: </B><DD><A HREF="../../serialized-form.html#quicktime.qd.QDRect">Serialized Form</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>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/qd/QDRect.html#kIsFixedRect">kIsFixedRect</A></B></CODE><BR> These constants are used in the fromArray call to indicate which of the 2 formats the byte array is encoded in.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/qd/QDRect.html#kIsRect">kIsRect</A></B></CODE><BR> These constants are used in the fromArray call to indicate which of the 2 formats the byte array is encoded in.</TD></TR></TABLE> <A NAME="fields_inherited_from_class_quicktime.jdirect.PrimitivesLib"><!-- --></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/PrimitivesLib.html">PrimitivesLib</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../quicktime/jdirect/PrimitivesLib.html#JDirect_MacOSX">JDirect_MacOSX</A>, <A HREF="../../quicktime/jdirect/PrimitivesLib.html#libraryInstance">libraryInstance</A></CODE></TD></TR></TABLE> <!-- ======== 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/qd/QDRect.html#QDRect()">QDRect</A></B>()</CODE><BR> Constructs a new rectangle, with (0, 0) origin and 0 width and height</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../quicktime/qd/QDRect.html#QDRect(java.awt.Dimension)">QDRect</A></B>(java.awt.Dimension size)</CODE><BR> <B>Deprecated.</B> <I>since QTJava 4.0</I></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../quicktime/qd/QDRect.html#QDRect(float, float)">QDRect</A></B>(float width, float height)</CODE><BR> Constructs a rectangle and initializes it with the specified width and height parameters.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../quicktime/qd/QDRect.html#QDRect(float, float, float, float)">QDRect</A></B>(float x, float y, float width, float height)</CODE><BR> Constructs and initializes a rectangle with the specified parameters.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../quicktime/qd/QDRect.html#QDRect(int, int)">QDRect</A></B>(int width, int height)</CODE><BR> Constructs a rectangle and initializes it with the specified width and height parameters.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../quicktime/qd/QDRect.html#QDRect(int, int, int, int)">QDRect</A></B>(int x, int y, int width, int height)</CODE><BR> Constructs and initializes a rectangle with the specified parameters.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../quicktime/qd/QDRect.html#QDRect(java.awt.Point)">QDRect</A></B>(java.awt.Point origin)</CODE><BR> <B>Deprecated.</B> <I>since QTJava 4.0</I></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../quicktime/qd/QDRect.html#QDRect(java.awt.Point, java.awt.Dimension)">QDRect</A></B>(java.awt.Point origin, java.awt.Dimension size)</CODE><BR> <B>Deprecated.</B> <I>since QTJava 4.0</I></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../quicktime/qd/QDRect.html#QDRect(quicktime.qd.QDDimension)">QDRect</A></B>(<A HREF="../../quicktime/qd/QDDimension.html">QDDimension</A> size)</CODE><BR> Constructs a QDRect with an origin of 0,0 and specified size.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../quicktime/qd/QDRect.html#QDRect(quicktime.qd.QDPoint)">QDRect</A></B>(<A HREF="../../quicktime/qd/QDPoint.html">QDPoint</A> origin)</CODE><BR> Constructs a QDRect with an origin specified and 0 width and height.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../quicktime/qd/QDRect.html#QDRect(quicktime.qd.QDPoint, quicktime.qd.QDDimension)">QDRect</A></B>(<A HREF="../../quicktime/qd/QDPoint.html">QDPoint</A> origin, <A HREF="../../quicktime/qd/QDDimension.html">QDDimension</A> size)</CODE><BR> Constructs a QDRect with an origin and size specified.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../quicktime/qd/QDRect.html#QDRect(java.awt.Rectangle)">QDRect</A></B>(java.awt.Rectangle rect)</CODE><BR> <B>Deprecated.</B> <I>since QTJava 4.0</I></TD></TR></TABLE> <!-- ========== 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/qd/QDRect.html#add(float, float)">add</A></B>(float newX, float newY)</CODE><BR> Adds a point to the QDRect.</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/qd/QDRect.html#add(int, int)">add</A></B>(int newX, int newY)</CODE><BR> Adds a point to the QDRect.</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/qd/QDRect.html#add(java.awt.Point)">add</A></B>(java.awt.Point pt)</CODE><BR> <B>Deprecated.</B> <I>as of QTJava 4.0</I></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/qd/QDRect.html#add(quicktime.qd.QDPoint)">add</A></B>(<A HREF="../../quicktime/qd/QDPoint.html">QDPoint</A> pt)</CODE><BR> Adds a QDPoint to the QDRect.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.lang.Object</CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/qd/QDRect.html#clone()">clone</A></B>()</CODE><BR> Return a copy of the QDRect</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../quicktime/qd/QDRect.html">QDRect</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/qd/QDRect.html#copy()">copy</A></B>()</CODE><BR> Returns a copy of the QDRect with the correct return type.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/qd/QDRect.html#equals(java.lang.Object)">equals</A></B>(java.lang.Object obj)</CODE><BR> Checks whether two QDRects are equal.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../quicktime/qd/QDRect.html">QDRect</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/qd/QDRect.html#fromArray(byte[], int)">fromArray</A></B>(byte[] rectBytes, int flag)</CODE><BR> Creates a QDRect from an array of bytes.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../quicktime/util/EndianDescriptor.html">EndianDescriptor</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/qd/QDRect.html#getEndianDescriptorFixedRect()">getEndianDescriptorFixedRect</A></B>()</CODE><BR> Returns the EndianDescriptor for FixedRect Rect.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../quicktime/util/EndianDescriptor.html">EndianDescriptor</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/qd/QDRect.html#getEndianDescriptorRect()">getEndianDescriptorRect</A></B>()</CODE><BR> Returns the EndianDescriptor for QDRect Rect.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> byte[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/qd/QDRect.html#getFixedRect()">getFixedRect</A></B>()</CODE><BR> Returns the bytes for the FixedRect</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/qd/QDRect.html#getHeight()">getHeight</A></B>()</CODE><BR> Get the height of the QDRect.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> float</CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/qd/QDRect.html#getHeightF()">getHeightF</A></B>()</CODE><BR> Get the height of the QDRect.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> byte[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/qd/QDRect.html#getRect()">getRect</A></B>()</CODE><BR> Returns the bytes for the QDRect</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/qd/QDRect.html#getWidth()">getWidth</A></B>()</CODE><BR> Get the width of the QDRect.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> float</CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/qd/QDRect.html#getWidthF()">getWidthF</A></B>()</CODE><BR> Get the width of the QDRect.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/qd/QDRect.html#getX()">getX</A></B>()</CODE><BR> Get the x location of the rect.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> float</CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/qd/QDRect.html#getXF()">getXF</A></B>()</CODE><BR> Get the x location of the rect.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/qd/QDRect.html#getY()">getY</A></B>()</CODE><BR> Get the y location of the rect.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> float</CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/qd/QDRect.html#getYF()">getYF</A></B>()</CODE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -