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(); }
/** * 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 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); }
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())); }
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()); }
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()); }