generalpath.html
来自「API資料大全」· HTML 代码 · 共 1,030 行 · 第 1/4 页
HTML
1,030 行
<CODE> <A HREF="../../../java/awt/Shape.html">Shape</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/geom/GeneralPath.html#createTransformedShape(java.awt.geom.AffineTransform)">createTransformedShape</A></B>(<A HREF="../../../java/awt/geom/AffineTransform.html">AffineTransform</A> at)</CODE><BR> Returns a new transformed <code>Shape</code>.</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="../../../java/awt/geom/GeneralPath.html#curveTo(float, float, float, float, float, float)">curveTo</A></B>(float x1, float y1, float x2, float y2, float x3, float y3)</CODE><BR> Adds a curved segment, defined by three new points, to the path by drawing a Bézier curve that intersects both the current coordinates and the coordinates (x3, y3), using the specified points (x1, y1) and (x2, y2) as Bézier control points.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/Rectangle.html">Rectangle</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/geom/GeneralPath.html#getBounds()">getBounds</A></B>()</CODE><BR> Return the bounding box of the path.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/geom/Rectangle2D.html">Rectangle2D</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/geom/GeneralPath.html#getBounds2D()">getBounds2D</A></B>()</CODE><BR> Returns the bounding box of the path.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/geom/Point2D.html">Point2D</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/geom/GeneralPath.html#getCurrentPoint()">getCurrentPoint</A></B>()</CODE><BR> Returns the coordinates most recently added to the end of the path as a <A HREF="../../../java/awt/geom/Point2D.html"><CODE>Point2D</CODE></A> object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/geom/PathIterator.html">PathIterator</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/geom/GeneralPath.html#getPathIterator(java.awt.geom.AffineTransform)">getPathIterator</A></B>(<A HREF="../../../java/awt/geom/AffineTransform.html">AffineTransform</A> at)</CODE><BR> Returns a <code>PathIterator</code> object that iterates along the boundary of this <code>Shape</code> and provides access to the geometry of the outline of this <code>Shape</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/geom/PathIterator.html">PathIterator</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/geom/GeneralPath.html#getPathIterator(java.awt.geom.AffineTransform, double)">getPathIterator</A></B>(<A HREF="../../../java/awt/geom/AffineTransform.html">AffineTransform</A> at, double flatness)</CODE><BR> Returns a <code>PathIterator</code> object that iterates along the boundary of the flattened <code>Shape</code> and provides access to the geometry of the outline of the <code>Shape</code>.</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="../../../java/awt/geom/GeneralPath.html#getWindingRule()">getWindingRule</A></B>()</CODE><BR> Returns the fill style winding rule.</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="../../../java/awt/geom/GeneralPath.html#intersects(double, double, double, double)">intersects</A></B>(double x, double y, double w, double h)</CODE><BR> Tests if the interior of this <code>Shape</code> intersects the interior of a specified set of rectangular coordinates.</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="../../../java/awt/geom/GeneralPath.html#intersects(java.awt.geom.Rectangle2D)">intersects</A></B>(<A HREF="../../../java/awt/geom/Rectangle2D.html">Rectangle2D</A> r)</CODE><BR> Tests if the interior of this <code>Shape</code> intersects the interior of a specified <code>Rectangle2D</code>.</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="../../../java/awt/geom/GeneralPath.html#lineTo(float, float)">lineTo</A></B>(float x, float y)</CODE><BR> Adds a point to the path by drawing a straight line from the current coordinates to the new specified coordinates.</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="../../../java/awt/geom/GeneralPath.html#moveTo(float, float)">moveTo</A></B>(float x, float y)</CODE><BR> Adds a point to the path by moving to the specified coordinates.</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="../../../java/awt/geom/GeneralPath.html#quadTo(float, float, float, float)">quadTo</A></B>(float x1, float y1, float x2, float y2)</CODE><BR> Adds a curved segment, defined by two new points, to the path by drawing a Quadratic curve that intersects both the current coordinates and the coordinates (x2, y2), using the specified point (x1, y1) as a quadratic parametric control 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="../../../java/awt/geom/GeneralPath.html#reset()">reset</A></B>()</CODE><BR> Resets the path to 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="../../../java/awt/geom/GeneralPath.html#setWindingRule(int)">setWindingRule</A></B>(int rule)</CODE><BR> Sets the winding rule for this path to the specified value.</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="../../../java/awt/geom/GeneralPath.html#transform(java.awt.geom.AffineTransform)">transform</A></B>(<A HREF="../../../java/awt/geom/AffineTransform.html">AffineTransform</A> at)</CODE><BR> Transforms the geometry of this path using the specified <A HREF="../../../java/awt/geom/AffineTransform.html"><CODE>AffineTransform</CODE></A>.</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.<A HREF="../../../java/lang/Object.html">Object</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../java/lang/Object.html#equals(java.lang.Object)">equals</A>, <A HREF="../../../java/lang/Object.html#finalize()">finalize</A>, <A HREF="../../../java/lang/Object.html#getClass()">getClass</A>, <A HREF="../../../java/lang/Object.html#hashCode()">hashCode</A>, <A HREF="../../../java/lang/Object.html#notify()">notify</A>, <A HREF="../../../java/lang/Object.html#notifyAll()">notifyAll</A>, <A HREF="../../../java/lang/Object.html#toString()">toString</A>, <A HREF="../../../java/lang/Object.html#wait()">wait</A>, <A HREF="../../../java/lang/Object.html#wait(long)">wait</A>, <A HREF="../../../java/lang/Object.html#wait(long, int)">wait</A></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="WIND_EVEN_ODD"><!-- --></A><H3>WIND_EVEN_ODD</H3><PRE>public static final int <B>WIND_EVEN_ODD</B></PRE><DL><DD>An even-odd winding rule for determining the interior of a path.</DL><HR><A NAME="WIND_NON_ZERO"><!-- --></A><H3>WIND_NON_ZERO</H3><PRE>public static final int <B>WIND_NON_ZERO</B></PRE><DL><DD>A non-zero winding rule for determining the interior of a path.</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="GeneralPath()"><!-- --></A><H3>GeneralPath</H3><PRE>public <B>GeneralPath</B>()</PRE><DL><DD>Constructs a new <code>GeneralPath</code> object. If an operation performed on this path requires the interior of the path to be defined then the default NON_ZERO winding rule is used.<DD><DL><DT><B>See Also: </B><DD><A HREF="../../../java/awt/geom/GeneralPath.html#WIND_NON_ZERO"><CODE>WIND_NON_ZERO</CODE></A></DL></DD></DL><HR><A NAME="GeneralPath(int)"><!-- --></A><H3>GeneralPath</H3><PRE>public <B>GeneralPath</B>(int rule)</PRE><DL><DD>Constructs a new <code>GeneralPath</code> object with the specified winding rule to control operations that require the interior of the path to be defined.<DD><DL><DT><B>Parameters:</B><DD><CODE>rule</CODE> - the winding rule<DT><B>See Also: </B><DD><A HREF="../../../java/awt/geom/GeneralPath.html#WIND_EVEN_ODD"><CODE>WIND_EVEN_ODD</CODE></A>, <A HREF="../../../java/awt/geom/GeneralPath.html#WIND_NON_ZERO"><CODE>WIND_NON_ZERO</CODE></A></DL></DD></DL><HR><A NAME="GeneralPath(int, int)"><!-- --></A><H3>GeneralPath</H3><PRE>public <B>GeneralPath</B>(int rule, int initialCapacity)</PRE><DL><DD>Constructs a new <code>GeneralPath</code> object with the specified winding rule and the specified initial capacity to store path coordinates. This number is an initial guess as to how many path segments are in the path, but the storage is expanded as needed to store whatever path segments are added to this path.<DD><DL><DT><B>Parameters:</B><DD><CODE>rule</CODE> - the winding rule<DD><CODE>initialCapacity</CODE> - the estimate for the number of path segments in the path<DT><B>See Also: </B><DD><A HREF="../../../java/awt/geom/GeneralPath.html#WIND_EVEN_ODD"><CODE>WIND_EVEN_ODD</CODE></A>, <A HREF="../../../java/awt/geom/GeneralPath.html#WIND_NON_ZERO"><CODE>WIND_NON_ZERO</CODE></A></DL></DD></DL><HR><A NAME="GeneralPath(java.awt.Shape)"><!-- --></A><H3>GeneralPath</H3><PRE>public <B>GeneralPath</B>(<A HREF="../../../java/awt/Shape.html">Shape</A> s)</PRE>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?