Esempio n. 1
0
 /**
  * Sets this arc to be the same as the specified arc.
  *
  * @param a The <CODE>Arc2D</CODE> to use to set the arc's values.
  * @since 1.2
  */
 public void setArc(Arc2D a) {
   setArc(
       a.getX(),
       a.getY(),
       a.getWidth(),
       a.getHeight(),
       a.getAngleStart(),
       a.getAngleExtent(),
       a.type);
 }
Esempio n. 2
0
 /**
  * {@inheritDoc} Note that the arc <a href="Arc2D.html#inscribes">partially inscribes</a> the
  * framing rectangle of this {@code RectangularShape}.
  *
  * @since 1.2
  */
 public void setFrame(double x, double y, double w, double h) {
   setArc(x, y, w, h, getAngleStart(), getAngleExtent(), type);
 }
Esempio n. 3
0
 /**
  * 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 framing rectangle for
  * the full ellipse.
  *
  * @param x The X coordinate of the center of the arc.
  * @param y The Y coordinate of the center of the arc.
  * @param radius The radius of the arc.
  * @param angSt The starting angle of the arc in degrees.
  * @param angExt The angular extent of the arc in degrees.
  * @param closure The closure type for the arc: {@link #OPEN}, {@link #CHORD}, or {@link #PIE}.
  * @since 1.2
  */
 public void setArcByCenter(
     double x, double y, double radius, double angSt, double angExt, int closure) {
   setArc(x - radius, y - radius, radius * 2.0, radius * 2.0, angSt, angExt, closure);
 }
Esempio n. 4
0
 /**
  * Sets the location, size, angular extents, and closure type of this arc to the specified values.
  *
  * @param rect The framing rectangle that defines the outer boundary of the full ellipse of which
  *     this arc is a partial section.
  * @param angSt The starting angle of the arc in degrees.
  * @param angExt The angular extent of the arc in degrees.
  * @param closure The closure type for the arc: {@link #OPEN}, {@link #CHORD}, or {@link #PIE}.
  * @since 1.2
  */
 public void setArc(Rectangle2D rect, double angSt, double angExt, int closure) {
   setArc(rect.getX(), rect.getY(), rect.getWidth(), rect.getHeight(), angSt, angExt, closure);
 }
Esempio n. 5
0
 /**
  * Sets the location, size, angular extents, and closure type of this arc to the specified values.
  *
  * @param loc The <CODE>Point2D</CODE> representing the coordinates of the upper-left corner of
  *     the arc.
  * @param size The <CODE>Dimension2D</CODE> representing the width and height of the full ellipse
  *     of which this arc is a partial section.
  * @param angSt The starting angle of the arc in degrees.
  * @param angExt The angular extent of the arc in degrees.
  * @param closure The closure type for the arc: {@link #OPEN}, {@link #CHORD}, or {@link #PIE}.
  * @since 1.2
  */
 public void setArc(Point2D loc, Dimension2D size, double angSt, double angExt, int closure) {
   setArc(loc.getX(), loc.getY(), size.getWidth(), size.getHeight(), angSt, angExt, closure);
 }