Esempio n. 1
0
 /**
  * Sets the starting angle and angular extent of this arc using two points. The first point is
  * used to determine the angle of the starting point relative to the arc's center. The second
  * point is used to determine the angle of the end point relative to the arc's center. The arc
  * will always be non-empty and extend counterclockwise from the first point around to the second
  * point.
  *
  * @param p1 The <CODE>Point2D</CODE> that defines the arc's starting point.
  * @param p2 The <CODE>Point2D</CODE> that defines the arc's ending point.
  * @since 1.2
  */
 public void setAngles(Point2D p1, Point2D p2) {
   setAngles(p1.getX(), p1.getY(), p2.getX(), p2.getY());
 }