Beispiel #1
0
 public override void setRect(Rectangle2D r)
 {
     this.x      = (float)r.getX();
     this.y      = (float)r.getY();
     this.width  = (float)r.getWidth();
     this.height = (float)r.getHeight();
 }
Beispiel #2
0
 /**
  * Constructs a new Rectangle2D.Iterator for given rectangle and transformation
  * @param r - the source Rectangle2D object
  * @param at - the AffineTransform object to apply rectangle path
  */
 internal Iterator(Rectangle2D r, AffineTransform at)
 {
     this.x      = r.getX();
     this.y      = r.getY();
     this.width  = r.getWidth();
     this.height = r.getHeight();
     this.t      = at;
     if (width < 0.0 || height < 0.0)
     {
         index = 6;
     }
 }
Beispiel #3
0
 public override bool Equals(Object obj)
 {
     if (obj == this)
     {
         return(true);
     }
     if (obj is Rectangle2D)
     {
         Rectangle2D r = (Rectangle2D)obj;
         return
             (getX() == r.getX() &&
              getY() == r.getY() &&
              getWidth() == r.getWidth() &&
              getHeight() == r.getHeight());
     }
     return(false);
 }
Beispiel #4
0
 public bool contains(Rectangle2D r)
 {
     return(contains(r.getX(), r.getY(), r.getWidth(), r.getHeight()));
 }
Beispiel #5
0
 public bool intersects(Rectangle2D r)
 {
     return(intersects(r.getX(), r.getY(), r.getWidth(), r.getHeight()));
 }
Beispiel #6
0
 public virtual void setRect(Rectangle2D r)
 {
     setRect(r.getX(), r.getY(), r.getWidth(), r.getHeight());
 }
 public bool contains(Rectangle2D r)
 {
     return contains(r.getX(), r.getY(), r.getWidth(), r.getHeight());
 }
 public bool intersects(Rectangle2D r)
 {
     return intersects(r.getX(), r.getY(), r.getWidth(), r.getHeight());
 }
Beispiel #9
0
 public void setFrame(Rectangle2D r)
 {
     setFrame(r.getX(), r.getY(), r.getWidth(), r.getHeight());
 }
 /**
  * Constructs a new Rectangle2D.Iterator for given rectangle and transformation
  * @param r - the source Rectangle2D object
  * @param at - the AffineTransform object to apply rectangle path
  */
 internal Iterator(Rectangle2D r, AffineTransform at)
 {
     this.x = r.getX();
     this.y = r.getY();
     this.width = r.getWidth();
     this.height = r.getHeight();
     this.t = at;
     if (width < 0.0 || height < 0.0)
     {
         index = 6;
     }
 }
 public override void setRect(Rectangle2D r)
 {
     this.x = (float)r.getX();
     this.y = (float)r.getY();
     this.width = (float)r.getWidth();
     this.height = (float)r.getHeight();
 }
 public virtual void setRect(Rectangle2D r)
 {
     setRect(r.getX(), r.getY(), r.getWidth(), r.getHeight());
 }
 public void setFrame(Rectangle2D r)
 {
     setFrame(r.getX(), r.getY(), r.getWidth(), r.getHeight());
 }