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

📄 qdrect.html

📁 这个是java的quicktime for java 的详细使用文档
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/qd/QDRect.html#grow(float, float)">grow</A></B>(float&nbsp;h,     float&nbsp;v)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Grows the QDRect horizontally and vertically.</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/qd/QDRect.html#grow(int, int)">grow</A></B>(int&nbsp;h,     int&nbsp;v)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Grows the QDRect horizontally and vertically.</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/qd/QDRect.html#hashCode()">hashCode</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the hashcode for this Rectangle.</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/qd/QDRect.html#inside(float, float)">inside</A></B>(float&nbsp;x,       float&nbsp;y)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Checks if the specified point lies inside a QDRect.</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/qd/QDRect.html#inside(int, int)">inside</A></B>(int&nbsp;x,       int&nbsp;y)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Checks if the specified point lies inside a QDRect.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../quicktime/qd/QDRect.html">QDRect</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/qd/QDRect.html#intersection(quicktime.qd.QDRect)">intersection</A></B>(<A HREF="../../quicktime/qd/QDRect.html">QDRect</A>&nbsp;r)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Computes the intersection of two QDRects, returning the  largets rect that encompasses both rects.</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/qd/QDRect.html#intersects(quicktime.qd.QDRect)">intersects</A></B>(<A HREF="../../quicktime/qd/QDRect.html">QDRect</A>&nbsp;r)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Checks if two QDRects intersect.</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/qd/QDRect.html#isDifferentOrigin(quicktime.qd.QDRect)">isDifferentOrigin</A></B>(<A HREF="../../quicktime/qd/QDRect.html">QDRect</A>&nbsp;rect)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if the QDRect argument has a different origin.</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/qd/QDRect.html#isDifferentSize(quicktime.qd.QDRect)">isDifferentSize</A></B>(<A HREF="../../quicktime/qd/QDRect.html">QDRect</A>&nbsp;rect)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if the QDRect argument is a different size.</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/qd/QDRect.html#isEmpty()">isEmpty</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Determines whether the QDRect is empty.</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/qd/QDRect.html#move(float, float)">move</A></B>(float&nbsp;x,     float&nbsp;y)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Moves the QDRect to x, y.</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/qd/QDRect.html#move(int, int)">move</A></B>(int&nbsp;x,     int&nbsp;y)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Moves the QDRect to x, y.</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/qd/QDRect.html#reshape(float, float, float, float)">reshape</A></B>(float&nbsp;x,        float&nbsp;y,        float&nbsp;width,        float&nbsp;height)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reshapes the QDRect to x, y, width and height.</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/qd/QDRect.html#reshape(int, int, int, int)">reshape</A></B>(int&nbsp;x,        int&nbsp;y,        int&nbsp;width,        int&nbsp;height)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reshapes the QDRect to x, y, width and height.</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/qd/QDRect.html#resize(float, float)">resize</A></B>(float&nbsp;width,       float&nbsp;height)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Resizes the QDRect.</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/qd/QDRect.html#resize(int, int)">resize</A></B>(int&nbsp;width,       int&nbsp;height)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Resizes the QDRect.</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/qd/QDRect.html#setHeight(float)">setHeight</A></B>(float&nbsp;height)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the height of the QDRect.</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/qd/QDRect.html#setHeight(int)">setHeight</A></B>(int&nbsp;height)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the height of the QDRect.</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/qd/QDRect.html#setWidth(float)">setWidth</A></B>(float&nbsp;width)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the width of the QDRect.</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/qd/QDRect.html#setWidth(int)">setWidth</A></B>(int&nbsp;width)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the width of the QDRect.</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/qd/QDRect.html#setX(float)">setX</A></B>(float&nbsp;x)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the x location of the rect.</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/qd/QDRect.html#setX(int)">setX</A></B>(int&nbsp;x)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the x location of the rect.</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/qd/QDRect.html#setY(float)">setY</A></B>(float&nbsp;y)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the y location of the rect.</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/qd/QDRect.html#setY(int)">setY</A></B>(int&nbsp;y)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the y location of the rect.</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/qd/QDRect.html#toString()">toString</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the String representation of this QDRect's values.</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/qd/QDRect.html#translate(float, float)">translate</A></B>(float&nbsp;deltaX,          float&nbsp;deltaY)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Translates the QDRect deltaX and deltaY.</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/qd/QDRect.html#translate(int, int)">translate</A></B>(int&nbsp;deltaX,          int&nbsp;deltaY)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Translates the QDRect deltaX and deltaY.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../quicktime/qd/QDRect.html">QDRect</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/qd/QDRect.html#union(quicktime.qd.QDRect)">union</A></B>(<A HREF="../../quicktime/qd/QDRect.html">QDRect</A>&nbsp;r)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Computes the union of two QDRects, returning the smallest Rect that is the union of the two QDRects.</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_quicktime.util.QTByteObject"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class quicktime.util.<A HREF="../../quicktime/util/QTByteObject.html">QTByteObject</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../quicktime/util/QTByteObject.html#fromArray(byte[])">fromArray</A>, <A HREF="../../quicktime/util/QTByteObject.html#getBytes()">getBytes</A>, <A HREF="../../quicktime/util/QTByteObject.html#getSize()">getSize</A></CODE></TD></TR></TABLE>&nbsp;<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>getClass, notify, notifyAll, wait, wait, wait</CODE></TD></TR></TABLE>&nbsp;<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="kIsRect"><!-- --></A><H3>kIsRect</H3><PRE>public static final int <B>kIsRect</B></PRE><DL><DD>These constants are used in the fromArray call to indicate which of the 2 formats the byte array is encoded in.</DL><HR><A NAME="kIsFixedRect"><!-- --></A><H3>kIsFixedRect</H3><PRE>public static final int <B>kIsFixedRect</B></PRE><DL><DD>These constants are used in the fromArray call to indicate which of the 2 formats the byte array is encoded in.</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="QDRect()"><!-- --></A><H3>QDRect</H3><PRE>public <B>QDRect</B>()</PRE><DL><DD>Constructs a new rectangle, with (0, 0) origin and 0 width and height</DL><HR><A NAME="QDRect(int, int, int, int)"><!-- --></A><H3>QDRect</H3><PRE>public <B>QDRect</B>(int&nbsp;x,              int&nbsp;y,              int&nbsp;width,              int&nbsp;height)</PRE><DL><DD>Constructs and initializes a rectangle with the specified parameters. Int values will be cast to shorts.<DD><DL><DT><B>Parameters:</B><DD><CODE>x</CODE> - the x coordinate<DD><CODE>y</CODE> - the y coordinate<DD><CODE>width</CODE> - the width of the rectangle<DD><CODE>height</CODE> - the height of the rectangle</DL></DD></DL><HR><A NAME="QDRect(float, float, float, float)"><!-- --></A><H3>QDRect</H3><PRE>public <B>QDRect</B>(float&nbsp;x,              float&nbsp;y,              float&nbsp;width,              float&nbsp;height)</PRE><DL><DD>Constructs and initializes a rectangle with the specified parameters.<DD><DL><DT><B>Parameters:</B><DD><CODE>x</CODE> - the x coordinate<DD><CODE>y</CODE> - the y coordinate<DD><CODE>width</CODE> - the width of the rectangle<DD><CODE>height</CODE> - the height of the rectangle</DL></DD></DL><HR><A NAME="QDRect(int, int)"><!-- --></A><H3>QDRect</H3><PRE>public <B>QDRect</B>(int&nbsp;width,              int&nbsp;height)</PRE><DL><DD>Constructs a rectangle and initializes it with the specified width and  height parameters.<DD><DL><DT><B>Parameters:</B><DD><CODE>width</CODE> - the width of the rectangle<DD><CODE>height</CODE> - the height of the rectangle</DL></DD></DL><HR><A NAME="QDRect(float, float)"><!-- --></A><H3>QDRect</H3><PRE>public <B>QDRect</B>(float&nbsp;width,              float&nbsp;height)</PRE><DL><DD>Constructs a rectangle and initializes it with the specified width and  height parameters.<DD><DL><DT><B>Parameters:</B><DD><CODE>width</CODE> - the width of the rectangle<DD><CODE>height</CODE> - the height of the rectangle</DL></DD></DL><HR><A NAME="QDRect(quicktime.qd.QDPoint)"><!-- --></A><H3>QDRect</H3><PRE>public <B>QDRect</B>(<A HREF="../../quicktime/qd/QDPoint.html">QDPoint</A>&nbsp;origin)</PRE><DL><DD>Constructs a QDRect with an origin specified and 0 width and height.<DD><DL><DT><B>Parameters:</B><DD><CODE>origin</CODE> - the origin point of the QDRect</DL></DD></DL><HR><A NAME="QDRect(java.awt.Point)"><!-- --></A><H3>QDRect</H3><PRE>public <B>QDRect</B>(java.awt.Point&nbsp;origin)</PRE><DL><DD><B>Deprecated.</B>&nbsp;<I>since QTJava 4.0</I><P><DD>Constructs a QDRect with an origin specified and 0 width and height.<DD><DL>

⌨️ 快捷键说明

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