📄 qdrect.html
字号:
<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> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/qd/QDRect.html#grow(float, float)">grow</A></B>(float h, float v)</CODE><BR> Grows the QDRect horizontally and vertically.</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#grow(int, int)">grow</A></B>(int h, int v)</CODE><BR> Grows the QDRect horizontally and vertically.</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#hashCode()">hashCode</A></B>()</CODE><BR> Returns the hashcode for this Rectangle.</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#inside(float, float)">inside</A></B>(float x, float y)</CODE><BR> 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> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/qd/QDRect.html#inside(int, int)">inside</A></B>(int x, int y)</CODE><BR> 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> <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> r)</CODE><BR> 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> 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> r)</CODE><BR> Checks if two QDRects intersect.</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#isDifferentOrigin(quicktime.qd.QDRect)">isDifferentOrigin</A></B>(<A HREF="../../quicktime/qd/QDRect.html">QDRect</A> rect)</CODE><BR> 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> 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> rect)</CODE><BR> 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> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/qd/QDRect.html#isEmpty()">isEmpty</A></B>()</CODE><BR> Determines whether the QDRect is empty.</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#move(float, float)">move</A></B>(float x, float y)</CODE><BR> Moves the QDRect to x, y.</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#move(int, int)">move</A></B>(int x, int y)</CODE><BR> Moves the QDRect to x, y.</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#reshape(float, float, float, float)">reshape</A></B>(float x, float y, float width, float height)</CODE><BR> 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> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/qd/QDRect.html#reshape(int, int, int, int)">reshape</A></B>(int x, int y, int width, int height)</CODE><BR> 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> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/qd/QDRect.html#resize(float, float)">resize</A></B>(float width, float height)</CODE><BR> Resizes 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#resize(int, int)">resize</A></B>(int width, int height)</CODE><BR> Resizes 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#setHeight(float)">setHeight</A></B>(float height)</CODE><BR> Set the height of 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#setHeight(int)">setHeight</A></B>(int height)</CODE><BR> Set the height of 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#setWidth(float)">setWidth</A></B>(float width)</CODE><BR> Set the width of 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#setWidth(int)">setWidth</A></B>(int width)</CODE><BR> Set the width of 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#setX(float)">setX</A></B>(float x)</CODE><BR> 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> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/qd/QDRect.html#setX(int)">setX</A></B>(int x)</CODE><BR> 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> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/qd/QDRect.html#setY(float)">setY</A></B>(float y)</CODE><BR> 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> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/qd/QDRect.html#setY(int)">setY</A></B>(int y)</CODE><BR> 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> java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/qd/QDRect.html#toString()">toString</A></B>()</CODE><BR> 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> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/qd/QDRect.html#translate(float, float)">translate</A></B>(float deltaX, float deltaY)</CODE><BR> Translates the QDRect deltaX and deltaY.</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#translate(int, int)">translate</A></B>(int deltaX, int deltaY)</CODE><BR> Translates the QDRect deltaX and deltaY.</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#union(quicktime.qd.QDRect)">union</A></B>(<A HREF="../../quicktime/qd/QDRect.html">QDRect</A> r)</CODE><BR> Computes the union of two QDRects, returning the smallest Rect that is the union of the two QDRects.</TD></TR></TABLE> <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> <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> <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 x, int y, int width, int 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 x, float y, float width, float 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 width, int 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 width, float 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> 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 origin)</PRE><DL><DD><B>Deprecated.</B> <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 + -