|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectandroid.graphics.Region
public class Region
| Nested Class Summary | |
|---|---|
static class |
Region.Op
|
| Nested classes/interfaces inherited from interface android.os.Parcelable |
|---|
Parcelable.Creator<T> |
| Field Summary | |
|---|---|
static Parcelable.Creator<Region> |
CREATOR
|
| Fields inherited from interface android.os.Parcelable |
|---|
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE |
| Constructor Summary | |
|---|---|
Region()
Create an empty region |
|
Region(int ni)
|
|
Region(int left,
int top,
int right,
int bottom)
Return a region set to the specified rectangle |
|
Region(Rect r)
Return a region set to the specified rectangle |
|
Region(Region region)
Return a copy of the specified region |
|
| Method Summary | |
|---|---|
boolean |
contains(int x,
int y)
Return true if the region contains the specified point |
int |
describeContents()
Describe the kinds of special objects contained in this Parcelable's marshalled representation. |
protected void |
finalize()
Called by the virtual machine when there are no longer any (non-weak) references to the receiver. |
Path |
getBoundaryPath()
Return the boundary of the region as a new Path. |
boolean |
getBoundaryPath(Path path)
Set the path to the boundary of the region. |
Rect |
getBounds()
Return a new Rect set to the bounds of the region. |
boolean |
getBounds(Rect r)
Set the Rect to the bounds of the region. |
boolean |
isComplex()
Return true if the region contains more than one rectangle |
boolean |
isEmpty()
Return true if this region is empty |
boolean |
isRect()
Return true if the region contains a single rectangle |
(package private) int |
ni()
|
boolean |
op(int left,
int top,
int right,
int bottom,
Region.Op op)
Perform the specified Op on this region and the specified rect. |
boolean |
op(Rect r,
Region.Op op)
Perform the specified Op on this region and the specified rect. |
boolean |
op(Rect rect,
Region region,
Region.Op op)
Set this region to the result of performing the Op on the specified rect and region. |
boolean |
op(Region region,
Region.Op op)
Perform the specified Op on this region and the specified region. |
boolean |
op(Region region1,
Region region2,
Region.Op op)
Set this region to the result of performing the Op on the specified regions. |
boolean |
quickContains(int left,
int top,
int right,
int bottom)
Return true if the region is a single rectangle (not complex) and it contains the specified rectangle. |
boolean |
quickContains(Rect r)
Return true if the region is a single rectangle (not complex) and it contains the specified rectangle. |
boolean |
quickReject(int left,
int top,
int right,
int bottom)
Return true if the region is empty, or if the specified rectangle does not intersect the region. |
boolean |
quickReject(Rect r)
Return true if the region is empty, or if the specified rectangle does not intersect the region. |
boolean |
quickReject(Region rgn)
Return true if the region is empty, or if the specified region does not intersect the region. |
boolean |
set(int left,
int top,
int right,
int bottom)
Set the region to the specified rectangle |
boolean |
set(Rect r)
Set the region to the specified rectangle |
boolean |
set(Region region)
Set the region to the specified region. |
void |
setEmpty()
Set the region to the empty region |
boolean |
setPath(Path path,
Region clip)
Set the region to the area described by the path and clip. |
void |
translate(int dx,
int dy)
Translate the region by [dx, dy]. |
void |
translate(int dx,
int dy,
Region dst)
Set the dst region to the result of translating this region by [dx, dy]. |
boolean |
union(Rect r)
|
void |
writeToParcel(Parcel p,
int flags)
Write the region and its pixels to the parcel. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Parcelable.Creator<Region> CREATOR
| Constructor Detail |
|---|
public Region()
public Region(Region region)
public Region(Rect r)
public Region(int left,
int top,
int right,
int bottom)
Region(int ni)
| Method Detail |
|---|
public void setEmpty()
public boolean set(Region region)
public boolean set(Rect r)
public boolean set(int left,
int top,
int right,
int bottom)
public boolean setPath(Path path,
Region clip)
public boolean isEmpty()
public boolean isRect()
public boolean isComplex()
public Rect getBounds()
public boolean getBounds(Rect r)
public Path getBoundaryPath()
public boolean getBoundaryPath(Path path)
public boolean contains(int x,
int y)
public boolean quickContains(Rect r)
public boolean quickContains(int left,
int top,
int right,
int bottom)
public boolean quickReject(Rect r)
public boolean quickReject(int left,
int top,
int right,
int bottom)
public boolean quickReject(Region rgn)
public void translate(int dx,
int dy)
public void translate(int dx,
int dy,
Region dst)
public final boolean union(Rect r)
public boolean op(Rect r,
Region.Op op)
public boolean op(int left,
int top,
int right,
int bottom,
Region.Op op)
public boolean op(Region region,
Region.Op op)
public boolean op(Rect rect,
Region region,
Region.Op op)
public boolean op(Region region1,
Region region2,
Region.Op op)
public int describeContents()
Parcelable
describeContents in interface Parcelable
public void writeToParcel(Parcel p,
int flags)
writeToParcel in interface Parcelablep - Parcel object to write the region data intoflags - Additional flags about how the object should be written.
May be 0 or Parcelable.PARCELABLE_WRITE_RETURN_VALUE.
protected void finalize()
throws Throwable
ObjectNote: The virtual machine assumes that the implementation in class Object is empty.
finalize in class ObjectThrowable - The virtual machine ignores any exceptions which are
thrown during finalization.final int ni()
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||