flatteningpathiterator.html

来自「API資料大全」· HTML 代码 · 共 443 行 · 第 1/2 页

HTML
443
字号
                              double&nbsp;flatness)</PRE><DL><DD>Constructs a new <code>FlatteningPathIterator</code> object that  flattens a path as it iterates over it.  The iterator does not  subdivide any curve read from the source iterator to more than  10 levels of subdivision which yields a maximum of 1024 line  segments per curve.<DD><DL><DT><B>Parameters:</B><DD><CODE>src</CODE> - the original unflattened path being iterated over<DD><CODE>flatness</CODE> - the maximum allowable distance between the control points and the flattened curve</DL></DD></DL><HR><A NAME="FlatteningPathIterator(java.awt.geom.PathIterator, double, int)"><!-- --></A><H3>FlatteningPathIterator</H3><PRE>public <B>FlatteningPathIterator</B>(<A HREF="../../../java/awt/geom/PathIterator.html">PathIterator</A>&nbsp;src,                              double&nbsp;flatness,                              int&nbsp;limit)</PRE><DL><DD>Constructs a new <code>FlatteningPathIterator</code> object  that flattens a path as it iterates over it. The <code>limit</code> parameter allows you to control the maximum number of recursive subdivisions that the iterator can make before it assumes that the curve is flat enough without measuring against the <code>flatness</code> parameter. The flattened iteration therefore never generates more than a maximum of <code>(2^limit)</code> line segments per curve.<DD><DL><DT><B>Parameters:</B><DD><CODE>src</CODE> - the original unflattened path being iterated over<DD><CODE>flatness</CODE> - the maximum allowable distance between the control points and the flattened curve<DD><CODE>limit</CODE> - the maximum number of recursive subdivisions allowed for any curved segment<DT><B>Throws:</B><DD><CODE><code>IllegalArgumentException</code></CODE> - if  		<code>flatness</code> or <code>limit</code>		is less than zero</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="getFlatness()"><!-- --></A><H3>getFlatness</H3><PRE>public double <B>getFlatness</B>()</PRE><DL><DD>Returns the flatness of this iterator.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the flatness of this <code>FlatteningPathIterator</code>.</DL></DD></DL><HR><A NAME="getRecursionLimit()"><!-- --></A><H3>getRecursionLimit</H3><PRE>public int <B>getRecursionLimit</B>()</PRE><DL><DD>Returns the recursion limit of this iterator.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the recursion limit of this  <code>FlatteningPathIterator</code>.</DL></DD></DL><HR><A NAME="getWindingRule()"><!-- --></A><H3>getWindingRule</H3><PRE>public int <B>getWindingRule</B>()</PRE><DL><DD>Returns the winding rule for determining the interior of the path.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../java/awt/geom/PathIterator.html#getWindingRule()">getWindingRule</A></CODE> in interface <CODE><A HREF="../../../java/awt/geom/PathIterator.html">PathIterator</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the winding rule of the original unflattened path being iterated over.<DT><B>See Also: </B><DD><A HREF="../../../java/awt/geom/PathIterator.html#WIND_EVEN_ODD"><CODE>PathIterator.WIND_EVEN_ODD</CODE></A>, <A HREF="../../../java/awt/geom/PathIterator.html#WIND_NON_ZERO"><CODE>PathIterator.WIND_NON_ZERO</CODE></A></DL></DD></DL><HR><A NAME="isDone()"><!-- --></A><H3>isDone</H3><PRE>public boolean <B>isDone</B>()</PRE><DL><DD>Tests if the iteration is complete.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../java/awt/geom/PathIterator.html#isDone()">isDone</A></CODE> in interface <CODE><A HREF="../../../java/awt/geom/PathIterator.html">PathIterator</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD><code>true</code> if all the segments have been read; <code>false</code> otherwise.</DL></DD></DL><HR><A NAME="next()"><!-- --></A><H3>next</H3><PRE>public void <B>next</B>()</PRE><DL><DD>Moves the iterator to the next segment of the path forwards along the primary direction of traversal as long as there are more points in that direction.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../java/awt/geom/PathIterator.html#next()">next</A></CODE> in interface <CODE><A HREF="../../../java/awt/geom/PathIterator.html">PathIterator</A></CODE></DL></DD></DL><HR><A NAME="currentSegment(float[])"><!-- --></A><H3>currentSegment</H3><PRE>public int <B>currentSegment</B>(float[]&nbsp;coords)</PRE><DL><DD>Returns the coordinates and type of the current path segment in the iteration. The return value is the path segment type: SEG_MOVETO, SEG_LINETO, or SEG_CLOSE. A float array of length 6 must be passed in and can be used to store the coordinates of the point(s). Each point is stored as a pair of float x,y coordinates. SEG_MOVETO and SEG_LINETO types return one point, and SEG_CLOSE does not return any points.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../java/awt/geom/PathIterator.html#currentSegment(float[])">currentSegment</A></CODE> in interface <CODE><A HREF="../../../java/awt/geom/PathIterator.html">PathIterator</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>coords</CODE> - an array that holds the data returned from this method<DT><B>Returns:</B><DD>the path segment type of the current path segment.<DT><B>Throws:</B><DD><CODE><code>NoSuchElementException</code></CODE> - if there		are no more elements in the flattening path to be		returned.<DT><B>See Also: </B><DD><A HREF="../../../java/awt/geom/PathIterator.html#SEG_MOVETO"><CODE>PathIterator.SEG_MOVETO</CODE></A>, <A HREF="../../../java/awt/geom/PathIterator.html#SEG_LINETO"><CODE>PathIterator.SEG_LINETO</CODE></A>, <A HREF="../../../java/awt/geom/PathIterator.html#SEG_CLOSE"><CODE>PathIterator.SEG_CLOSE</CODE></A></DL></DD></DL><HR><A NAME="currentSegment(double[])"><!-- --></A><H3>currentSegment</H3><PRE>public int <B>currentSegment</B>(double[]&nbsp;coords)</PRE><DL><DD>Returns the coordinates and type of the current path segment in the iteration. The return value is the path segment type: SEG_MOVETO, SEG_LINETO, or SEG_CLOSE. A double array of length 6 must be passed in and can be used to store the coordinates of the point(s). Each point is stored as a pair of double x,y coordinates. SEG_MOVETO and SEG_LINETO types return one point, and SEG_CLOSE does not return any points.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../java/awt/geom/PathIterator.html#currentSegment(double[])">currentSegment</A></CODE> in interface <CODE><A HREF="../../../java/awt/geom/PathIterator.html">PathIterator</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>coords</CODE> - an array that holds the data returned from this method<DT><B>Returns:</B><DD>the path segment type of the current path segment.<DT><B>Throws:</B><DD><CODE><code>NoSuchElementException</code></CODE> - if there          are no more elements in the flattening path to be          returned.<DT><B>See Also: </B><DD><A HREF="../../../java/awt/geom/PathIterator.html#SEG_MOVETO"><CODE>PathIterator.SEG_MOVETO</CODE></A>, <A HREF="../../../java/awt/geom/PathIterator.html#SEG_LINETO"><CODE>PathIterator.SEG_LINETO</CODE></A>, <A HREF="../../../java/awt/geom/PathIterator.html#SEG_CLOSE"><CODE>PathIterator.SEG_CLOSE</CODE></A></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/FlatteningPathIterator.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-files/index-1.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><b>Java<sup><font size=-2>TM</font></sup>&nbsp;2&nbsp;Platform<br>Std.&nbsp;Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../java/awt/geom/Ellipse2D.Float.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../java/awt/geom/GeneralPath.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="FlatteningPathIterator.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><font size="-1"><a href="http://java.sun.com/cgi-bin/bugreport.cgi">Submit a bug or feature</a><br>For further API reference and developer documentation, see <a href="http://java.sun.com/products/jdk/1.3/devdocs-vs-specs.html">Java 2 SDK SE Developer Documentation</a>. That documentation  contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. <p>Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.<br>Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road<br>Palo Alto, California, 94303, U.S.A.  All Rights Reserved.</font></BODY></HTML>

⌨️ 快捷键说明

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