Example #1
0
 /**
  * Set the size to match the specified size. This method is included for completeness, to parallel
  * the getSize method of <code>Component</code>.
  *
  * @param d the new size
  */
 public void setSize(Dimension2D d) {
   setSize(d.getWidth(), d.getHeight());
 }
Example #2
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);
 }