////////////////////////////////////////////////////////////////////////////
        //--------------------------------- REVISIONS ------------------------------
        // Date       Name                 Tracking #         Description
        // ---------  -------------------  -------------      ----------------------
        // 13JUN2009  James Shen                              Initial Creation
        ////////////////////////////////////////////////////////////////////////////

        /**
         * Sets this <code>RoundRectangle2D</code> to be the same as the
         * specified <code>RoundRectangle2D</code>.
         * @param rr the specified <code>RoundRectangle2D</code>
         */
        public void SetRoundRect(RoundRectangle rr)
        {
            X         = rr.GetX();
            Y         = rr.GetY();
            Width     = rr.GetWidth();
            Height    = rr.GetHeight();
            Arcwidth  = rr.GetArcWidth();
            Archeight = rr.GetArcHeight();
        }
 internal RoundRectIterator(RoundRectangle rr, AffineTransform at)
 {
     _x      = rr.GetX();
     _y      = rr.GetY();
     _w      = rr.GetWidth();
     _h      = rr.GetHeight();
     _aw     = Math.Min(_w, Math.Abs(rr.GetArcWidth()));
     _ah     = Math.Min(_h, Math.Abs(rr.GetArcHeight()));
     _affine = at;
     if (_aw < 0 || _ah < 0)
     {
         // Don't draw anything...
         _index = CTRLPTS.Length;
     }
 }
        ////////////////////////////////////////////////////////////////////////////
        //--------------------------------- REVISIONS ------------------------------
        // Date       Name                 Tracking #         Description
        // ---------  -------------------  -------------      ----------------------
        // 13JUN2009  James Shen                              Initial Creation
        ////////////////////////////////////////////////////////////////////////////

        /**
         * Determines whether or not the specified <code>Object</code> is
         * equal to this <code>RoundRectangle</code>.  The specified
         * <code>Object</code> is equal to this <code>RoundRectangle</code>
         * if it is an instance of <code>RoundRectangle</code> and if its
         * location, size, and corner arc dimensions are the same as this
         * <code>RoundRectangle</code>.
         * @param obj  an <code>Object</code> to be compared with this
         *             <code>RoundRectangle</code>.
         * @return  <code>true</code> if <code>obj</code> is an instance
         *          of <code>RoundRectangle</code> and has the same values;
         *          <code>false</code> otherwise.
         */
        public new bool Equals(Object obj)
        {
            if (obj == this)
            {
                return(true);
            }
            if (obj is RoundRectangle)
            {
                RoundRectangle rr2D = (RoundRectangle)obj;
                return((GetX() == rr2D.GetX()) &&
                       (GetY() == rr2D.GetY()) &&
                       (GetWidth() == rr2D.GetWidth()) &&
                       (GetHeight() == rr2D.GetHeight()) &&
                       (GetArcWidth() == rr2D.GetArcWidth()) &&
                       (GetArcHeight() == rr2D.GetArcHeight()));
            }
            return(false);
        }
 internal RoundRectIterator(RoundRectangle rr, AffineTransform at)
 {
     _x = rr.GetX();
     _y = rr.GetY();
     _w = rr.GetWidth();
     _h = rr.GetHeight();
     _aw = Math.Min(_w, Math.Abs(rr.GetArcWidth()));
     _ah = Math.Min(_h, Math.Abs(rr.GetArcHeight()));
     _affine = at;
     if (_aw < 0 || _ah < 0)
     {
         // Don't draw anything...
         _index = CTRLPTS.Length;
     }
 }
 ////////////////////////////////////////////////////////////////////////////
 //--------------------------------- REVISIONS ------------------------------
 // Date       Name                 Tracking #         Description
 // ---------  -------------------  -------------      ----------------------
 // 13JUN2009  James Shen                 	          Initial Creation
 ////////////////////////////////////////////////////////////////////////////
 /**
  * Sets this <code>RoundRectangle2D</code> to be the same as the
  * specified <code>RoundRectangle2D</code>.
  * @param rr the specified <code>RoundRectangle2D</code>
  */
 public void SetRoundRect(RoundRectangle rr)
 {
     X = rr.GetX();
     Y = rr.GetY();
     Width = rr.GetWidth();
     Height = rr.GetHeight();
     Arcwidth = rr.GetArcWidth();
     Archeight = rr.GetArcHeight();
 }