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

📄 gxpaths.html

📁 这个是java的quicktime for java 的详细使用文档
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<!-- ========= 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="GXPaths(quicktime.std.image.Curve, quicktime.std.image.GXPath[])"><!-- --></A><H3>GXPaths</H3><PRE>public <B>GXPaths</B>(<A HREF="../../../quicktime/std/image/Curve.html">Curve</A>&nbsp;curveComponent,               <A HREF="../../../quicktime/std/image/GXPath.html">GXPath</A>[]&nbsp;ar)</PRE><DL><DD>Creates a GXPaths object which corresponds to gxPaths object of QuickDrawGX It sets the total number of contours in the path equal to the total number of paths ie every path has one contour.<DD><DL><DT><B>Parameters:</B><DD><CODE>curveComponent</CODE> - the curve Component<DD><CODE>ar</CODE> - array of GXPath objects containing the geometries for the paths</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="getContours()"><!-- --></A><H3>getContours</H3><PRE>public int <B>getContours</B>()</PRE><DL><DD>Returns the no. of contours in the Paths object<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the total number of coutours</DL></DD></DL><HR><A NAME="countPointsInPath(int)"><!-- --></A><H3>countPointsInPath</H3><PRE>public int <B>countPointsInPath</B>(int&nbsp;contourIndex)                      throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>This method is used to count the points along either one of a path's contours or all of its contours.	 <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/refVectors.56.htm#refVec114">QuickTime::CurveCountPointsInPath</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>contourIndex</CODE> - the index of the contour to be counted.<DT><B>Returns:</B><DD>the number of points in the contour or path.</DL></DD></DL><HR><A NAME="setPathPoint(int, int, quicktime.qd.QDPoint, boolean)"><!-- --></A><H3>setPathPoint</H3><PRE>public void <B>setPathPoint</B>(int&nbsp;contourIndex,                         int&nbsp;pointIndex,                         <A HREF="../../../quicktime/qd/QDPoint.html">QDPoint</A>&nbsp;thePoint,                         boolean&nbsp;ptIsOnPath)                  throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>This method is best for adding a single point to a path rather than large numbers of points to a path.	 <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/refVectors.56.htm#refVec124">QuickTime::CurveSetPathPoint</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>contourIndex</CODE> - Specifies the index of the path contour to which to add the point.<DD><CODE>pointIndex</CODE> - Specifies the index of the point to add.<DD><CODE>ptIsOnPath</CODE> - If TRUE , specifies that the new point is to be on the path.</DL></DD></DL><HR><A NAME="getPathPoint(int, int)"><!-- --></A><H3>getPathPoint</H3><PRE>public <A HREF="../../../quicktime/std/image/PathPointInfo.html">PathPointInfo</A> <B>getPathPoint</B>(int&nbsp;contourIndex,                                  int&nbsp;pointIndex)                           throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>This method is used to get a point from a path and to find out if the point is on the curve.	 <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/refVectors.56.htm#refVec119">QuickTime::CurveGetPathPoint</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>contourIndex</CODE> - Specifies the index of the contour from which to get the point.<DD><CODE>pointIndex</CODE> - Specifies the index of the point to get.<DT><B>Returns:</B><DD>thePoint field that is to receive the point.</DL></DD></DL><HR><A NAME="lengthToPoint(int, int)"><!-- --></A><H3>lengthToPoint</H3><PRE>public <A HREF="../../../quicktime/qd/QDPoint.html">QDPoint</A>[] <B>lengthToPoint</B>(int&nbsp;index,                               int&nbsp;length)                        throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>This method is used to get the point at a specified distance along a curve.	 <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/refVectors.56.htm#refVec121">QuickTime::CurveLengthToPoint</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - Specifies the index of the path contour from which to get the point.<DD><CODE>length</CODE> - Specifies the distance along the curve at which to find the point.<DT><B>Returns:</B><DD>QDPoint[] array of two points containing the location (first element) and the tangent point (second element)</DL></DD></DL><HR><A NAME="getLength(int)"><!-- --></A><H3>getLength</H3><PRE>public long <B>getLength</B>(int&nbsp;index)               throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>This method is used to calculate the length of one of a path's contours or the sum of the lengths of all of its contours.	 <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/refVectors.56.htm#refVec117">QuickTime::CurveGetLength</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - Contains the index of the contour whose length is to be calculated or, if the value is 0 , specifies to calculate the lengths of all of the path's contours and return the sum of the lengths.<DT><B>Returns:</B><DD>wideLength Contains the length.</DL></DD></DL><HR><A NAME="getPathPointToLength(int, int, quicktime.qd.QDPoint)"><!-- --></A><H3>getPathPointToLength</H3><PRE>public float <B>getPathPointToLength</B>(int&nbsp;startDist,                                  int&nbsp;endDist,                                  <A HREF="../../../quicktime/qd/QDPoint.html">QDPoint</A>&nbsp;thePoint)                           throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>This method is used to to get the length of a path between specified starting and ending distances that is nearest a point.	 <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/refVectors.56.htm#refVec123">QuickTime::CurvePathPointToLength</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>startDist</CODE> - Specifies the distance along the path at which to start measuring the path's length.<DD><CODE>endDist</CODE> - Specifies the distance along the path at which to stop measuring the path's length.<DD><CODE>thePoint</CODE> - Contains a pointer to a point; the function measures the path closest to this point.<DT><B>Returns:</B><DD>the length of the specified part of the path.</DL></DD></DL><HR><A NAME="getNearestPathPoint(quicktime.qd.QDPoint)"><!-- --></A><H3>getNearestPathPoint</H3><PRE>public <A HREF="../../../quicktime/std/image/NearestPointInfo.html">NearestPointInfo</A> <B>getNearestPathPoint</B>(<A HREF="../../../quicktime/qd/QDPoint.html">QDPoint</A>&nbsp;thePoint)                                     throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>This method is used to to find the closest point on a path to a specified point. In programs where users directly manipulate curves, you can use this function to determine the closest control point to a given point.	 <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/refVectors.56.htm#refVec118">QuickTime::CurveGetNearestPathPoint</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>thePoint</CODE> - Contains a point for which to find the closest point on the path.<DT><B>Returns:</B><DD>information about the specified point</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_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>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/GXPaths.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../quicktime/std/image/GXPath.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../quicktime/std/image/ICMFrameTime.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>  &nbsp;&nbsp;<A HREF="GXPaths.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: &nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR></BODY></HTML>

⌨️ 快捷键说明

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