quadcurve2d.html
来自「API資料大全」· HTML 代码 · 共 1,297 行 · 第 1/4 页
HTML
1,297 行
Returns an iteration object that defines the boundary of the shape of this <code>QuadCurve2D</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/QuadCurve2D.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 an iteration object that defines the boundary of the flattened shape of this <code>QuadCurve2D</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract double</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/geom/QuadCurve2D.html#getX1()">getX1</A></B>()</CODE><BR> Returns the x coordinate of the start point in <code>double</code> in precision.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract double</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/geom/QuadCurve2D.html#getX2()">getX2</A></B>()</CODE><BR> Returns the x coordinate of the end point in <code>double</code> precision.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract double</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/geom/QuadCurve2D.html#getY1()">getY1</A></B>()</CODE><BR> Returns the y coordinate of the start point in <code>double</code> precision.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract double</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/geom/QuadCurve2D.html#getY2()">getY2</A></B>()</CODE><BR> Returns the y coordinate of the end point in <code>double</code> precision.</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/QuadCurve2D.html#intersects(double, double, double, double)">intersects</A></B>(double x, double y, double w, double h)</CODE><BR> Tests if the shape of this <code>QuadCurve2D</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/QuadCurve2D.html#intersects(java.awt.geom.Rectangle2D)">intersects</A></B>(<A HREF="../../../java/awt/geom/Rectangle2D.html">Rectangle2D</A> r)</CODE><BR> Tests if the shape of this <code>QuadCurve2D</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/QuadCurve2D.html#setCurve(double[], int)">setCurve</A></B>(double[] coords, int offset)</CODE><BR> Sets the location of the endpoints and controlpoints of this <code>QuadCurve2D</code> to the <code>double</code> coordinates at the specified offset in the specified array.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/geom/QuadCurve2D.html#setCurve(double, double, double, double, double, double)">setCurve</A></B>(double x1, double y1, double ctrlx, double ctrly, double x2, double y2)</CODE><BR> Sets the location of the endpoints and controlpoint of this curve to the specified <code>double</code> 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/QuadCurve2D.html#setCurve(java.awt.geom.Point2D[], int)">setCurve</A></B>(<A HREF="../../../java/awt/geom/Point2D.html">Point2D</A>[] pts, int offset)</CODE><BR> Sets the location of the endpoints and controlpoints of this <code>QuadCurve2D</code> to the coordinates of the <code>Point2D</code> objects at the specified offset in the specified array.</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/QuadCurve2D.html#setCurve(java.awt.geom.Point2D, java.awt.geom.Point2D, java.awt.geom.Point2D)">setCurve</A></B>(<A HREF="../../../java/awt/geom/Point2D.html">Point2D</A> p1, <A HREF="../../../java/awt/geom/Point2D.html">Point2D</A> cp, <A HREF="../../../java/awt/geom/Point2D.html">Point2D</A> p2)</CODE><BR> Sets the location of the endpoints and controlpoint of this <code>QuadCurve2D</code> to the specified <code>Point2D</code> 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/QuadCurve2D.html#setCurve(java.awt.geom.QuadCurve2D)">setCurve</A></B>(<A HREF="../../../java/awt/geom/QuadCurve2D.html">QuadCurve2D</A> c)</CODE><BR> Sets the location of the endpoints and controlpoint of this <code>QuadCurve2D</code> to the same as those in the specified <code>QuadCurve2D</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/geom/QuadCurve2D.html#solveQuadratic(double[])">solveQuadratic</A></B>(double[] eqn)</CODE><BR> Solves the quadratic whose coefficients are in the <code>eqn</code> array and places the non-complex roots back into the same array, returning the number of roots.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/geom/QuadCurve2D.html#solveQuadratic(double[], double[])">solveQuadratic</A></B>(double[] eqn, double[] res)</CODE><BR> Solves the quadratic whose coefficients are in the <code>eqn</code> array and places the non-complex roots into the <code>res</code> array, returning the number of roots.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/geom/QuadCurve2D.html#subdivide(double[], int, double[], int, double[], int)">subdivide</A></B>(double[] src, int srcoff, double[] left, int leftoff, double[] right, int rightoff)</CODE><BR> Subdivides the quadratic curve specified by the coordinates stored in the <code>src</code> array at indices <code>srcoff</code> through <code>srcoff</code> + 5 and stores the resulting two subdivided curves into the two result arrays at the corresponding indices.</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/QuadCurve2D.html#subdivide(java.awt.geom.QuadCurve2D, java.awt.geom.QuadCurve2D)">subdivide</A></B>(<A HREF="../../../java/awt/geom/QuadCurve2D.html">QuadCurve2D</A> left, <A HREF="../../../java/awt/geom/QuadCurve2D.html">QuadCurve2D</A> right)</CODE><BR> Subdivides this <code>QuadCurve2D</code> and stores the resulting two subdivided curves into the <code>left</code> and <code>right</code> curve parameters.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/geom/QuadCurve2D.html#subdivide(java.awt.geom.QuadCurve2D, java.awt.geom.QuadCurve2D, java.awt.geom.QuadCurve2D)">subdivide</A></B>(<A HREF="../../../java/awt/geom/QuadCurve2D.html">QuadCurve2D</A> src, <A HREF="../../../java/awt/geom/QuadCurve2D.html">QuadCurve2D</A> left, <A HREF="../../../java/awt/geom/QuadCurve2D.html">QuadCurve2D</A> right)</CODE><BR> Subdivides the quadratic curve specified by the <code>src</code> parameter and stores the resulting two subdivided curves into the <code>left</code> and <code>right</code> curve parameters.</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> <A NAME="methods_inherited_from_class_java.awt.Shape"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from interface java.awt.<A HREF="../../../java/awt/Shape.html">Shape</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../java/awt/Shape.html#getBounds2D()">getBounds2D</A></CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><!-- ========= 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="QuadCurve2D()"><!-- --></A><H3>QuadCurve2D</H3><PRE>protected <B>QuadCurve2D</B>()</PRE><DL><DD>This is an abstract class that cannot be instantiated directly. Type-specific implementation subclasses are available for instantiation and provide a number of formats for storing the information necessary to satisfy the various accessor methods below.<DD><DL><DT><B>See Also: </B><DD><A HREF="../../../java/awt/geom/QuadCurve2D.Float.html"><CODE>QuadCurve2D.Float</CODE></A>, <A HREF="../../../java/awt/geom/QuadCurve2D.Double.html"><CODE>QuadCurve2D.Double</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="getX1()"><!-- --></A><H3>getX1</H3><PRE>public abstract double <B>getX1</B>()</PRE><DL><DD>Returns the x coordinate of the start point in <code>double</code> in precision.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the x coordinate of the start point.</DL></DD></DL><HR><A NAME="getY1()"><!-- --></A><H3>getY1</H3><PRE>public abstract double <B>getY1</B>()</PRE><DL><DD>Returns the y coordinate of the start point in <code>double</code> precision.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the y coordinate of the start point.</DL></DD></DL><HR><A NAME="getP1()"><!-- --></A><H3>getP1</H3><PRE>public abstract <A HREF="../../../java/awt/geom/Point2D.html">Point2D</A> <B>getP1</B>()</PRE><DL><DD>Returns the start point.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a <code>Point2D</code> that is the start point of this <code>QuadCurve2D</code>.</DL></DD></DL><HR><A NAME="getCtrlX()"><!-- --></A><H3>getCtrlX</H3><PRE>public abstract double <B>getCtrlX</B>()</PRE><DL><DD>Returns the x coordinate of the control point in <code>double</code> precision.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>x coordinate the control point</DL></DD></DL><HR><A NAME="getCtrlY()"><!-- --></A><H3>getCtrlY</H3><PRE>public abstract double <B>getCtrlY</B>()</PRE><DL><DD>Returns the y coordinate of the control point in <code>double</code> precision.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the y coordinate of the control point.</DL></DD></DL><HR>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?