📄 qdpoint.html
字号:
<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/QDPoint.html#getY()">getY</A></B>()</CODE><BR> Get the y location of the point.</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/QDPoint.html#getYF()">getYF</A></B>()</CODE><BR> Get the y location of the point.</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/QDPoint.html#move(float, float)">move</A></B>(float x, float y)</CODE><BR> Moves the point, to coordinates 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/QDPoint.html#move(int, int)">move</A></B>(int x, int y)</CODE><BR> Moves the point, to coordinates 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/QDPoint.html#setX(float)">setX</A></B>(float x)</CODE><BR> Set the x location of the point.</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/QDPoint.html#setX(int)">setX</A></B>(int x)</CODE><BR> Set the x location of the point.</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/QDPoint.html#setY(float)">setY</A></B>(float y)</CODE><BR> Set the y location of the point.</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/QDPoint.html#setY(int)">setY</A></B>(int y)</CODE><BR> Set the y location of the point.</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/QDPoint.html#toString()">toString</A></B>()</CODE><BR> Returns the String representation of this QDPoint's coordinate.</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/QDPoint.html#translate(float, float)">translate</A></B>(float deltaX, float deltaY)</CODE><BR> Translates the point, by 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/QDPoint.html#translate(int, int)">translate</A></B>(int deltaX, int deltaY)</CODE><BR> Translates the point, by deltaX and deltaY.</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, hashCode, 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="kIsFixedPoint"><!-- --></A><H3>kIsFixedPoint</H3><PRE>public static final int <B>kIsFixedPoint</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="kIsGXPoint"><!-- --></A><H3>kIsGXPoint</H3><PRE>public static final int <B>kIsGXPoint</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="kIsQ3Point2D"><!-- --></A><H3>kIsQ3Point2D</H3><PRE>public static final int <B>kIsQ3Point2D</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="kIsQTVRFloatPoint"><!-- --></A><H3>kIsQTVRFloatPoint</H3><PRE>public static final int <B>kIsQTVRFloatPoint</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="QDPoint(int, int)"><!-- --></A><H3>QDPoint</H3><PRE>public <B>QDPoint</B>(int x, int y)</PRE><DL><DD>Create a QDPoint at specified location<DD><DL><DT><B>Parameters:</B><DD><CODE>x</CODE> - x location<DD><CODE>y</CODE> - y location</DL></DD></DL><HR><A NAME="QDPoint(float, float)"><!-- --></A><H3>QDPoint</H3><PRE>public <B>QDPoint</B>(float x, float y)</PRE><DL><DD>Create a QDPoint at specified location<DD><DL><DT><B>Parameters:</B><DD><CODE>x</CODE> - x location<DD><CODE>y</CODE> - y location</DL></DD></DL><HR><A NAME="QDPoint(java.awt.Point)"><!-- --></A><H3>QDPoint</H3><PRE>public <B>QDPoint</B>(java.awt.Point origin)</PRE><DL><DD><B>Deprecated.</B> <I>As of QTJava v 4.0</I><P><DD>Create a QDPoint at specified location<DD><DL><DT><B>Parameters:</B><DD><CODE>point</CODE> - location of point</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="getEndianDescriptorFixedPoint()"><!-- --></A><H3>getEndianDescriptorFixedPoint</H3><PRE>public static final <A HREF="../../quicktime/util/EndianDescriptor.html">EndianDescriptor</A> <B>getEndianDescriptorFixedPoint</B>()</PRE><DL><DD>Returns the EndianDescriptor for FixedPoint point.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>an EndianDescriptor</DL></DD></DL><HR><A NAME="getEndianDescriptorTQ3Point2D()"><!-- --></A><H3>getEndianDescriptorTQ3Point2D</H3><PRE>public static final <A HREF="../../quicktime/util/EndianDescriptor.html">EndianDescriptor</A> <B>getEndianDescriptorTQ3Point2D</B>()</PRE><DL><DD>Returns the EndianDescriptor for TQ3Point2D point.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>an EndianDescriptor</DL></DD></DL><HR><A NAME="getEndianDescriptorQTVRFloatPoint()"><!-- --></A><H3>getEndianDescriptorQTVRFloatPoint</H3><PRE>public static final <A HREF="../../quicktime/util/EndianDescriptor.html">EndianDescriptor</A> <B>getEndianDescriptorQTVRFloatPoint</B>()</PRE><DL><DD>Returns the EndianDescriptor for TQ3Point2D point.<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/QDPoint.html">QDPoint</A> <B>fromArray</B>(byte[] ptBytes, int ptType)</PRE><DL><DD>Creates a QDPoint from an array of bytes that represent a FixedPoint, so the byte array must be 8bytes long at least.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>ptBytes</CODE> - the byte array containing the packed point values<DD><CODE>ptType</CODE> - the type of point to be found in the array<DT><B>Returns:</B><DD>a QDPoint<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="fromArray(byte[], int, int)"><!-- --></A><H3>fromArray</H3><PRE>public static <A HREF="../../quicktime/qd/QDPoint.html">QDPoint</A> <B>fromArray</B>(byte[] ptBytes, int ptType, int offset)</PRE><DL><DD>Creates a QDPoint from an array of bytes that represent a FixedPoint, so the byte array must be 8bytes long at least.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>ptBytes</CODE> - the byte array containing the packed point values<DD><CODE>ptType</CODE> - the type of point to be found in the array<DD><CODE>offset</CODE> - the offset in the array where the point is to be found<DT><B>Returns:</B><DD>a QDPoint<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="getPoint()"><!-- --></A><H3>getPoint</H3><PRE>public int <B>getPoint</B>()</PRE><DL><DD>Returns the QDPoint packed into a 32bit integer<DD><DL></DL></DD></DL><HR><A NAME="getGXPoint()"><!-- --></A><H3>getGXPoint</H3><PRE>public byte[] <B>getGXPoint</B>()</PRE><DL>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -