All Packages Class Hierarchy This Package Previous Next Index
Class sun.porting.utils.RegionImpl
java.lang.Object
|
+----sun.porting.utils.YXBandList
|
+----sun.porting.utils.RegionImpl
- public class RegionImpl
- extends YXBandList
- implements Region
Region manipulation code. This code attempts to avoid using full-fledged
Y-X bands if one or both of the regions being manipulated are single
rectangles.
-
boundingBox
-
-
RegionImpl()
-
-
RegionImpl(int, int, int, int)
-
-
contains(int, int)
-
-
contains(int, int, int, int)
-
-
copy()
-
-
defragment(boolean)
-
-
equals(Region)
-
-
getBounds()
-
-
getRectangles()
-
-
intersect(int, int, int, int)
-
-
intersect(Rectangle)
-
-
intersect(Region)
-
-
isEmpty()
-
-
isRectangle()
-
-
mayIntersect(int, int, int, int)
-
-
mayIntersect(Rectangle)
-
-
mayIntersect(Region)
-
-
setEmpty()
-
-
subtract(int, int, int, int)
-
-
subtract(Rectangle)
-
-
subtract(Region)
-
-
toString()
- Returns a string representation of the object.
-
translate(int, int)
-
-
union(int, int, int, int)
-
-
union(Rectangle)
-
-
union(Region)
-
boundingBox
protected Rectangle boundingBox
RegionImpl
public RegionImpl()
RegionImpl
public RegionImpl(int x,
int y,
int w,
int h)
copy
public Region copy()
getBounds
public Rectangle getBounds()
- Overrides:
- getBounds in class YXBandList
equals
public boolean equals(Region reg)
mayIntersect
public boolean mayIntersect(Region r)
mayIntersect
public boolean mayIntersect(Rectangle r)
mayIntersect
public boolean mayIntersect(int x,
int y,
int w,
int h)
isRectangle
public boolean isRectangle()
- Overrides:
- isRectangle in class YXBandList
defragment
public void defragment(boolean isClip)
union
public void union(Region reg)
union
public void union(int x,
int y,
int w,
int h)
- Overrides:
- union in class YXBandList
union
public void union(Rectangle r)
subtract
public void subtract(Region reg)
subtract
public void subtract(Rectangle r)
subtract
public void subtract(int x,
int y,
int w,
int h)
- Overrides:
- subtract in class YXBandList
intersect
public void intersect(Region reg)
intersect
public void intersect(Rectangle r)
intersect
public void intersect(int x,
int y,
int w,
int h)
- Overrides:
- intersect in class YXBandList
contains
public boolean contains(int x,
int y)
contains
public boolean contains(int x,
int y,
int w,
int h)
- Overrides:
- contains in class YXBandList
translate
public void translate(int dx,
int dy)
- Overrides:
- translate in class YXBandList
setEmpty
public void setEmpty()
isEmpty
public boolean isEmpty()
toString
public String toString()
- Returns a string representation of the object.
- Overrides:
- toString in class YXBandList
getRectangles
public Enumeration getRectangles()
All Packages Class Hierarchy This Package Previous Next Index