arc2d.html

来自「API資料大全」· HTML 代码 · 共 1,037 行 · 第 1/4 页

HTML
1,037
字号
<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="Arc2D(int)"><!-- --></A><H3>Arc2D</H3><PRE>protected <B>Arc2D</B>(int&nbsp;type)</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>Parameters:</B><DD><CODE>type</CODE> - The closure type of this arc:  <A HREF="../../../java/awt/geom/Arc2D.html#OPEN"><CODE>OPEN</CODE></A>, <A HREF="../../../java/awt/geom/Arc2D.html#CHORD"><CODE>CHORD</CODE></A>, or <A HREF="../../../java/awt/geom/Arc2D.html#PIE"><CODE>PIE</CODE></A>.<DT><B>See Also: </B><DD><A HREF="../../../java/awt/geom/Arc2D.Float.html"><CODE>Arc2D.Float</CODE></A>, <A HREF="../../../java/awt/geom/Arc2D.Double.html"><CODE>Arc2D.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="getAngleStart()"><!-- --></A><H3>getAngleStart</H3><PRE>public abstract double <B>getAngleStart</B>()</PRE><DL><DD>Returns the starting angle of the arc.<DD><DL><DT><B>Returns:</B><DD>A double value that represents the starting angle  of the arc in degrees.</DL></DD></DL><HR><A NAME="getAngleExtent()"><!-- --></A><H3>getAngleExtent</H3><PRE>public abstract double <B>getAngleExtent</B>()</PRE><DL><DD>Returns the angular extent of the arc.<DD><DL><DT><B>Returns:</B><DD>A double value that represents the angular extent  of the arc in degrees.</DL></DD></DL><HR><A NAME="getArcType()"><!-- --></A><H3>getArcType</H3><PRE>public int <B>getArcType</B>()</PRE><DL><DD>Returns the arc closure type of the arc: <A HREF="../../../java/awt/geom/Arc2D.html#OPEN"><CODE>OPEN</CODE></A>,  <A HREF="../../../java/awt/geom/Arc2D.html#CHORD"><CODE>CHORD</CODE></A>, or <A HREF="../../../java/awt/geom/Arc2D.html#PIE"><CODE>PIE</CODE></A>.<DD><DL><DT><B>Returns:</B><DD>One of the integer constant closure types defined  in this class.</DL></DD></DL><HR><A NAME="getStartPoint()"><!-- --></A><H3>getStartPoint</H3><PRE>public <A HREF="../../../java/awt/geom/Point2D.html">Point2D</A> <B>getStartPoint</B>()</PRE><DL><DD>Returns the starting point of the arc.  This point is the intersection of the ray from the center defined by the starting angle and the elliptical boundary of the arc.<DD><DL><DT><B>Returns:</B><DD>A <CODE>Point2D</CODE> object representing the  x,y coordinates of the starting point of the arc.</DL></DD></DL><HR><A NAME="getEndPoint()"><!-- --></A><H3>getEndPoint</H3><PRE>public <A HREF="../../../java/awt/geom/Point2D.html">Point2D</A> <B>getEndPoint</B>()</PRE><DL><DD>Returns the ending point of the arc.  This point is the intersection of the ray from the center defined by the starting angle plus the angular extent of the arc and the elliptical boundary of the arc.<DD><DL><DT><B>Returns:</B><DD>A <CODE>Point2D</CODE> object representing the  x,y coordinates  of the ending point of the arc.</DL></DD></DL><HR><A NAME="setArc(double, double, double, double, double, double, int)"><!-- --></A><H3>setArc</H3><PRE>public abstract void <B>setArc</B>(double&nbsp;x,                            double&nbsp;y,                            double&nbsp;w,                            double&nbsp;h,                            double&nbsp;angSt,                            double&nbsp;angExt,                            int&nbsp;closure)</PRE><DL><DD>Sets the location, size, angular extents, and closure type of this arc to the specified double values.<DD><DL><DT><B>Parameters:</B><DD><CODE>x,&nbsp;y</CODE> - The coordinates of the upper left corner of  the arc.<DD><CODE>w</CODE> - The overall width of the full ellipse of which  this arc is a partial section.<DD><CODE>h</CODE> - The overall height of the full ellipse of which  this arc is a partial section.<DD><CODE>angSt</CODE> - The starting angle of the arc in degrees.<DD><CODE>angExt</CODE> - The angular extent of the arc in degrees.<DD><CODE>closure</CODE> - The closure type for the arc: <A HREF="../../../java/awt/geom/Arc2D.html#OPEN"><CODE>OPEN</CODE></A>, <A HREF="../../../java/awt/geom/Arc2D.html#CHORD"><CODE>CHORD</CODE></A>, or <A HREF="../../../java/awt/geom/Arc2D.html#PIE"><CODE>PIE</CODE></A>.</DL></DD></DL><HR><A NAME="setArc(java.awt.geom.Point2D, java.awt.geom.Dimension2D, double, double, int)"><!-- --></A><H3>setArc</H3><PRE>public void <B>setArc</B>(<A HREF="../../../java/awt/geom/Point2D.html">Point2D</A>&nbsp;loc,                   <A HREF="../../../java/awt/geom/Dimension2D.html">Dimension2D</A>&nbsp;size,                   double&nbsp;angSt,                   double&nbsp;angExt,                   int&nbsp;closure)</PRE><DL><DD>Sets the location, size, angular extents, and closure type of this arc to the specified values.<DD><DL><DT><B>Parameters:</B><DD><CODE>loc</CODE> - The <CODE>Point2D</CODE> representing the coordinates of  the upper left corner of the arc.<DD><CODE>size</CODE> - The <CODE>Dimension2D</CODE> representing the width  and height of the full ellipse of which this arc is  a partial section.<DD><CODE>angSt</CODE> - The starting angle of the arc in degrees.  (Specified in double precision.)<DD><CODE>angExt</CODE> - The angular extent of the arc in degrees.  (Specified in double precision.)<DD><CODE>closure</CODE> - The closure type for the arc: <A HREF="../../../java/awt/geom/Arc2D.html#OPEN"><CODE>OPEN</CODE></A>, <A HREF="../../../java/awt/geom/Arc2D.html#CHORD"><CODE>CHORD</CODE></A>, or <A HREF="../../../java/awt/geom/Arc2D.html#PIE"><CODE>PIE</CODE></A>.</DL></DD></DL><HR><A NAME="setArc(java.awt.geom.Rectangle2D, double, double, int)"><!-- --></A><H3>setArc</H3><PRE>public void <B>setArc</B>(<A HREF="../../../java/awt/geom/Rectangle2D.html">Rectangle2D</A>&nbsp;rect,                   double&nbsp;angSt,                   double&nbsp;angExt,                   int&nbsp;closure)</PRE><DL><DD>Sets the location, size, angular extents, and closure type of this arc to the specified values.<DD><DL><DT><B>Parameters:</B><DD><CODE>rect</CODE> - The bounding rectangle that defines the  outer boundary of the full ellipse of which this arc is a  partial section.<DD><CODE>angSt</CODE> - The starting angle of the arc in degrees.  (Specified in double precision.)<DD><CODE>angExt</CODE> - The angular extent of the arc in degrees.  (Specified in double precision.)<DD><CODE>closure</CODE> - The closure type for the arc: <A HREF="../../../java/awt/geom/Arc2D.html#OPEN"><CODE>OPEN</CODE></A>, <A HREF="../../../java/awt/geom/Arc2D.html#CHORD"><CODE>CHORD</CODE></A>, or <A HREF="../../../java/awt/geom/Arc2D.html#PIE"><CODE>PIE</CODE></A>.</DL></DD></DL><HR><A NAME="setArc(java.awt.geom.Arc2D)"><!-- --></A><H3>setArc</H3><PRE>public void <B>setArc</B>(<A HREF="../../../java/awt/geom/Arc2D.html">Arc2D</A>&nbsp;a)</PRE><DL><DD>Sets this arc to be the same as the specified arc.<DD><DL><DT><B>Parameters:</B><DD><CODE>a</CODE> - The <CODE>Arc2D</CODE> to use to set the arc's values.</DL></DD></DL><HR><A NAME="setArcByCenter(double, double, double, double, double, int)"><!-- --></A><H3>setArcByCenter</H3><PRE>public void <B>setArcByCenter</B>(double&nbsp;x,                           double&nbsp;y,                           double&nbsp;radius,                           double&nbsp;angSt,                           double&nbsp;angExt,                           int&nbsp;closure)</PRE><DL><DD>Sets the position, bounds, angular extents, and closure type of this arc to the specified values. The arc is defined by a center  point and a radius rather than a bounding box for the full ellipse.<DD><DL><DT><B>Parameters:</B><DD><CODE>x,&nbsp;y</CODE> - The coordinates of the center of the arc.  (Specified in double precision.)<DD><CODE>r</CODE> - The radius of the arc. (Specified in double precision.)<DD><CODE>angSt</CODE> - The starting angle of the arc in degrees. (Specified in double precision.)<DD><CODE>angExt</CODE> - The angular extent of the arc in degrees.  (Specified in double precision.)<DD><CODE>closure</CODE> - The closure type for the arc: <A HREF="../../../java/awt/geom/Arc2D.html#OPEN"><CODE>OPEN</CODE></A>, <A HREF="../../../java/awt/geom/Arc2D.html#CHORD"><CODE>CHORD</CODE></A>, or <A HREF="../../../java/awt/geom/Arc2D.html#PIE"><CODE>PIE</CODE></A>.</DL></DD></DL><HR><A NAME="setArcByTangent(java.awt.geom.Point2D, java.awt.geom.Point2D, java.awt.geom.Point2D, double)"><!-- --></A><H3>setArcByTangent</H3><PRE>public void <B>setArcByTangent</B>(<A HREF="../../../java/awt/geom/Point2D.html">Point2D</A>&nbsp;p1,                            <A HREF="../../../java/awt/geom/Point2D.html">Point2D</A>&nbsp;p2,                            <A HREF="../../../java/awt/geom/Point2D.html">Point2D</A>&nbsp;p3,                            double&nbsp;radius)</PRE><DL><DD>Sets the position, bounds, and angular extents of this arc to the  specified value. The starting angle of the arc is tangent to the  line specified by points (p1, p2), the ending angle is tangent to  the line specified by points (p2, p3), and the arc has the  specified radius.<DD><DL><DT><B>Parameters:</B><DD><CODE>p1</CODE> - The first point that defines the arc. The starting  angle of the arc is tangent to the line specified by points (p1, p2).<DD><CODE>p2</CODE> - The second point that defines the arc. The starting  angle of the arc is tangent to the line specified by points (p1, p2).  The ending angle of the arc is tangent to the line specified by  points (p2, p3).<DD><CODE>p3</CODE> - The third point that defines the arc. The ending angle  of the arc is tangent to the line specified by points (p2, p3).<DD><CODE>radius</CODE> - The radius of the arc. (Specified in double precision.)</DL></DD></DL><HR><A NAME="setAngleStart(double)"><!-- --></A><H3>setAngleStart</H3><PRE>public abstract void <B>setAngleStart</B>(double&nbsp;angSt)</PRE><DL><DD>Sets the starting angle of this arc to the specified double value.<DD><DL><DT><B>Parameters:</B><DD><CODE>angSt</CODE> - The starting angle of the arc in degrees.</DL></DD></DL><HR><A NAME="setAngleExtent(double)"><!-- --></A><H3>setAngleExtent</H3><PRE>public abstract void <B>setAngleExtent</B>(double&nbsp;angExt)</PRE><DL><DD>Sets the angular extent of this arc to the specified double value.<DD><DL><DT><B>Parameters:</B><DD><CODE>angExt</CODE> - The angular extent of the arc in degrees.</DL></DD></DL><HR><A NAME="setAngleStart(java.awt.geom.Point2D)"><!-- --></A><H3>setAngleStart</H3><PRE>public void <B>setAngleStart</B>(<A HREF="../../../java/awt/geom/Point2D.html">Point2D</A>&nbsp;p)</PRE><DL><DD>Sets the starting angle of this arc to the angle that the specified point defines relative to the center of this arc. The angular extent of the arc will remain the same.<DD><DL><DT><B>Parameters:</B><DD><CODE>p</CODE> - The <CODE>Point2D</CODE> that defines the starting angle.</DL></DD></DL><HR><A NAME="setAngles(double, double, double, double)"><!-- --></A><H3>setAngles</H3><PRE>public void <B>setAngles</B>(double&nbsp;x1,

⌨️ 快捷键说明

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