📄 qdrect.html
字号:
<DT><B>Parameters:</B><DD><CODE>origin</CODE> - the origin point of the QDRect<DT><B>See Also: </B><DD><A HREF="../../quicktime/qd/QDRect.html#QDRect(quicktime.qd.QDPoint)"><CODE>QDRect( QDPoint )</CODE></A></DL></DD></DL><HR><A NAME="QDRect(quicktime.qd.QDDimension)"><!-- --></A><H3>QDRect</H3><PRE>public <B>QDRect</B>(<A HREF="../../quicktime/qd/QDDimension.html">QDDimension</A> size)</PRE><DL><DD>Constructs a QDRect with an origin of 0,0 and specified size.<DD><DL><DT><B>Parameters:</B><DD><CODE>size</CODE> - the size of the QDRect.</DL></DD></DL><HR><A NAME="QDRect(java.awt.Dimension)"><!-- --></A><H3>QDRect</H3><PRE>public <B>QDRect</B>(java.awt.Dimension size)</PRE><DL><DD><B>Deprecated.</B> <I>since QTJava 4.0</I><P><DD>Constructs a QDRect with an origin of 0,0 and specified size.<DD><DL><DT><B>Parameters:</B><DD><CODE>size</CODE> - the size of the QDRect.<DT><B>See Also: </B><DD><A HREF="../../quicktime/qd/QDRect.html#QDRect(quicktime.qd.QDDimension)"><CODE>QDRect(QDDimension)</CODE></A></DL></DD></DL><HR><A NAME="QDRect(java.awt.Rectangle)"><!-- --></A><H3>QDRect</H3><PRE>public <B>QDRect</B>(java.awt.Rectangle rect)</PRE><DL><DD><B>Deprecated.</B> <I>since QTJava 4.0</I><P><DD>Constructs a QDRect with an origin of 0,0 and specified size. NOTE: This method is deprecated. There is no direct method replacement<DD><DL><DT><B>Parameters:</B><DD><CODE>rect</CODE> - the Rectangle</DL></DD></DL><HR><A NAME="QDRect(quicktime.qd.QDPoint, quicktime.qd.QDDimension)"><!-- --></A><H3>QDRect</H3><PRE>public <B>QDRect</B>(<A HREF="../../quicktime/qd/QDPoint.html">QDPoint</A> origin, <A HREF="../../quicktime/qd/QDDimension.html">QDDimension</A> size)</PRE><DL><DD>Constructs a QDRect with an origin and size specified.<DD><DL><DT><B>Parameters:</B><DD><CODE>origin</CODE> - the origin point of the QDRect<DD><CODE>size</CODE> - the size of the QDRect.</DL></DD></DL><HR><A NAME="QDRect(java.awt.Point, java.awt.Dimension)"><!-- --></A><H3>QDRect</H3><PRE>public <B>QDRect</B>(java.awt.Point origin, java.awt.Dimension size)</PRE><DL><DD><B>Deprecated.</B> <I>since QTJava 4.0</I><P><DD>Constructs a QDRect with an origin and size specified.<DD><DL><DT><B>Parameters:</B><DD><CODE>origin</CODE> - the origin point of the QDRect<DD><CODE>size</CODE> - the size of the QDRect.<DT><B>See Also: </B><DD><A HREF="../../quicktime/qd/QDRect.html#QDRect(quicktime.qd.QDPoint, quicktime.qd.QDDimension)"><CODE>QDRect(QDPoint, QDDimension)</CODE></A></DL></DD></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="getEndianDescriptorFixedRect()"><!-- --></A><H3>getEndianDescriptorFixedRect</H3><PRE>public static final <A HREF="../../quicktime/util/EndianDescriptor.html">EndianDescriptor</A> <B>getEndianDescriptorFixedRect</B>()</PRE><DL><DD>Returns the EndianDescriptor for FixedRect Rect.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>an EndianDescriptor</DL></DD></DL><HR><A NAME="getEndianDescriptorRect()"><!-- --></A><H3>getEndianDescriptorRect</H3><PRE>public static final <A HREF="../../quicktime/util/EndianDescriptor.html">EndianDescriptor</A> <B>getEndianDescriptorRect</B>()</PRE><DL><DD>Returns the EndianDescriptor for QDRect Rect.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>an EndianDescriptor</DL></DD></DL><HR><A NAME="fromArray(byte[], int)"><!-- --></A><H3>fromArray</H3><PRE>public static <A HREF="../../quicktime/qd/QDRect.html">QDRect</A> <B>fromArray</B>(byte[] rectBytes, int flag)</PRE><DL><DD>Creates a QDRect from an array of bytes. The minimum length of the array must equate to the requirements of the size of the native structure to store the result. <UL> <LI>kIsRect, length == 8, top, left, right, bottom of 2 bytes each <LI>kIsFixedRect, length == 16, left, top, right, bottom of 4 bytes each (fixed format 16.16) </UL><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>rectBytes</CODE> - the byte array containing the rect values<DD><CODE>flag</CODE> - flag that describes the format of the byte array<DT><B>Returns:</B><DD>a QDRect<DT><B>Throws:</B><DD><CODE>java.lang.IllegalArgumentException</CODE> - if mismatch between minimum length of byte array and format flag</DL></DD></DL><HR><A NAME="getRect()"><!-- --></A><H3>getRect</H3><PRE>public byte[] <B>getRect</B>()</PRE><DL><DD>Returns the bytes for the QDRect<DD><DL></DL></DD></DL><HR><A NAME="getFixedRect()"><!-- --></A><H3>getFixedRect</H3><PRE>public byte[] <B>getFixedRect</B>()</PRE><DL><DD>Returns the bytes for the FixedRect<DD><DL></DL></DD></DL><HR><A NAME="getX()"><!-- --></A><H3>getX</H3><PRE>public int <B>getX</B>()</PRE><DL><DD>Get the x location of the rect.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the current x location</DL></DD></DL><HR><A NAME="getXF()"><!-- --></A><H3>getXF</H3><PRE>public float <B>getXF</B>()</PRE><DL><DD>Get the x location of the rect.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the current x location</DL></DD></DL><HR><A NAME="setX(int)"><!-- --></A><H3>setX</H3><PRE>public void <B>setX</B>(int x)</PRE><DL><DD>Set the x location of the rect.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>x</CODE> - the new x location</DL></DD></DL><HR><A NAME="setX(float)"><!-- --></A><H3>setX</H3><PRE>public void <B>setX</B>(float x)</PRE><DL><DD>Set the x location of the rect.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>x</CODE> - the new x location</DL></DD></DL><HR><A NAME="getY()"><!-- --></A><H3>getY</H3><PRE>public int <B>getY</B>()</PRE><DL><DD>Get the y location of the rect.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the current y location</DL></DD></DL><HR><A NAME="getYF()"><!-- --></A><H3>getYF</H3><PRE>public float <B>getYF</B>()</PRE><DL><DD>Get the y location of the rect.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the current y location</DL></DD></DL><HR><A NAME="setY(int)"><!-- --></A><H3>setY</H3><PRE>public void <B>setY</B>(int y)</PRE><DL><DD>Set the y location of the rect.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>y</CODE> - the new y location</DL></DD></DL><HR><A NAME="setY(float)"><!-- --></A><H3>setY</H3><PRE>public void <B>setY</B>(float y)</PRE><DL><DD>Set the y location of the rect.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>y</CODE> - the new y location</DL></DD></DL><HR><A NAME="isDifferentSize(quicktime.qd.QDRect)"><!-- --></A><H3>isDifferentSize</H3><PRE>public boolean <B>isDifferentSize</B>(<A HREF="../../quicktime/qd/QDRect.html">QDRect</A> rect)</PRE><DL><DD>Returns true if the QDRect argument is a different size.<DD><DL></DL></DD></DL><HR><A NAME="isDifferentOrigin(quicktime.qd.QDRect)"><!-- --></A><H3>isDifferentOrigin</H3><PRE>public boolean <B>isDifferentOrigin</B>(<A HREF="../../quicktime/qd/QDRect.html">QDRect</A> rect)</PRE><DL><DD>Returns true if the QDRect argument has a different origin.<DD><DL></DL></DD></DL><HR><A NAME="getWidth()"><!-- --></A><H3>getWidth</H3><PRE>public int <B>getWidth</B>()</PRE><DL><DD>Get the width of the QDRect.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the current width</DL></DD></DL><HR><A NAME="getWidthF()"><!-- --></A><H3>getWidthF</H3><PRE>public float <B>getWidthF</B>()</PRE><DL><DD>Get the width of the QDRect.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the current width</DL></DD></DL><HR><A NAME="setWidth(int)"><!-- --></A><H3>setWidth</H3><PRE>public void <B>setWidth</B>(int width)</PRE><DL><DD>Set the width of the QDRect.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>width</CODE> - the new width</DL></DD></DL><HR><A NAME="setWidth(float)"><!-- --></A><H3>setWidth</H3><PRE>public void <B>setWidth</B>(float width)</PRE><DL><DD>Set the width of the QDRect.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>width</CODE> - the new width</DL></DD></DL><HR><A NAME="getHeight()"><!-- --></A><H3>getHeight</H3><PRE>public int <B>getHeight</B>()</PRE><DL><DD>Get the height of the QDRect.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the current height</DL></DD></DL><HR><A NAME="getHeightF()"><!-- --></A><H3>getHeightF</H3><PRE>public float <B>getHeightF</B>()</PRE><DL><DD>Get the height of the QDRect.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the current height</DL></DD></DL><HR><A NAME="setHeight(int)"><!-- --></A><H3>setHeight</H3><PRE>public void <B>setHeight</B>(int height)</PRE><DL><DD>Set the height of the QDRect.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>height</CODE> - the new height</DL></DD></DL><HR><A NAME="setHeight(float)"><!-- --></A><H3>setHeight</H3><PRE>public void <B>setHeight</B>(float height)</PRE><DL><DD>Set the height of the QDRect.<DD><DL>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -