| java.lang.Object java.awt.Rectangle sun.porting.utils.Rectangle
Rectangle | public class Rectangle extends java.awt.Rectangle (Code) | | An extension of java.awt.Rectangle. There is a change to the behavior
of addition: we treat all rectangles with width <= 0 or height <= 0 as
empty. For some reason, java.awt.Rectangle does not.
version: 1.7, 08/19/02 author: Richard Berlin |
Method Summary | |
public void | add(java.awt.Rectangle r) | public void | add(int x, int y, int width, int height) | public boolean | contains(int rx, int ry, int rw, int rh) | public boolean | contains(java.awt.Rectangle r) | public void | intersect(int rx, int ry, int rwidth, int rheight) | public void | intersect(java.awt.Rectangle r) | public boolean | intersects(int rx, int ry, int rwidth, int rheight) | public void | setEmpty() | public void | setRectangle(int x, int y, int width, int height) | public void | setRectangle(java.awt.Rectangle r) | public void | subtract(int rx, int ry, int rw, int rh) | public void | subtract(java.awt.Rectangle r) |
Rectangle | public Rectangle()(Code) | | |
Rectangle | public Rectangle(int x, int y, int width, int height)(Code) | | |
add | public void add(int x, int y, int width, int height)(Code) | | |
contains | public boolean contains(int rx, int ry, int rw, int rh)(Code) | | |
intersect | public void intersect(int rx, int ry, int rwidth, int rheight)(Code) | | |
intersects | public boolean intersects(int rx, int ry, int rwidth, int rheight)(Code) | | |
setEmpty | public void setEmpty()(Code) | | |
setRectangle | public void setRectangle(int x, int y, int width, int height)(Code) | | |
subtract | public void subtract(int rx, int ry, int rw, int rh)(Code) | | |
Methods inherited from java.awt.Rectangle | public void add(int newx, int newy)(Code)(Java Doc) public void add(Point pt)(Code)(Java Doc) public void add(Rectangle r)(Code)(Java Doc) public Object clone()(Code)(Java Doc) public boolean contains(Point p)(Code)(Java Doc) public boolean contains(int x, int y)(Code)(Java Doc) public boolean contains(Rectangle r)(Code)(Java Doc) public boolean contains(int X, int Y, int W, int H)(Code)(Java Doc) public boolean equals(Object obj)(Code)(Java Doc) public Rectangle getBounds()(Code)(Java Doc) public Point getLocation()(Code)(Java Doc) public Dimension getSize()(Code)(Java Doc) public void grow(int h, int v)(Code)(Java Doc) public int hashCode()(Code)(Java Doc) public boolean inside(int x, int y)(Code)(Java Doc) public Rectangle intersection(Rectangle r)(Code)(Java Doc) public boolean intersects(Rectangle r)(Code)(Java Doc) public boolean isEmpty()(Code)(Java Doc) public void move(int x, int y)(Code)(Java Doc) public void reshape(int x, int y, int width, int height)(Code)(Java Doc) public void resize(int width, int height)(Code)(Java Doc) public void setBounds(Rectangle r)(Code)(Java Doc) public void setBounds(int x, int y, int width, int height)(Code)(Java Doc) public void setLocation(Point p)(Code)(Java Doc) public void setLocation(int x, int y)(Code)(Java Doc) public void setSize(Dimension d)(Code)(Java Doc) public void setSize(int width, int height)(Code)(Java Doc) public String toString()(Code)(Java Doc) public void translate(int x, int y)(Code)(Java Doc) public Rectangle union(Rectangle r)(Code)(Java Doc)
|
|
|