java.lang.Object | |
↳ | android.graphics.Region |
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Region.Op |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creator<Region> | CREATOR |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.os.Parcelable
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create an empty region
| |||||||||||
Return a copy of the specified region
| |||||||||||
Return a region set to the specified rectangle
| |||||||||||
Return a region set to the specified rectangle
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Return true if the region contains the specified point
| |||||||||||
Describe the kinds of special objects contained in this Parcelable's
marshalled representation.
| |||||||||||
Return the boundary of the region as a new Path.
| |||||||||||
Set the path to the boundary of the region.
| |||||||||||
Return a new Rect set to the bounds of the region.
| |||||||||||
Set the Rect to the bounds of the region.
| |||||||||||
Return true if the region contains more than one rectangle
| |||||||||||
Return true if this region is empty
| |||||||||||
Return true if the region contains a single rectangle
| |||||||||||
Set this region to the result of performing the Op on the specified
regions.
| |||||||||||
Perform the specified Op on this region and the specified region.
| |||||||||||
Set this region to the result of performing the Op on the specified rect
and region.
| |||||||||||
Perform the specified Op on this region and the specified rect.
| |||||||||||
Perform the specified Op on this region and the specified rect.
| |||||||||||
Return true if the region is a single rectangle (not complex) and it
contains the specified rectangle.
| |||||||||||
Return true if the region is a single rectangle (not complex) and it
contains the specified rectangle.
| |||||||||||
Return true if the region is empty, or if the specified rectangle does
not intersect the region.
| |||||||||||
Return true if the region is empty, or if the specified rectangle does
not intersect the region.
| |||||||||||
Return true if the region is empty, or if the specified region does not
intersect the region.
| |||||||||||
Set the region to the specified rectangle
| |||||||||||
Set the region to the specified region.
| |||||||||||
Set the region to the specified rectangle
| |||||||||||
Set the region to the empty region
| |||||||||||
Set the region to the area described by the path and clip.
| |||||||||||
Set the dst region to the result of translating this region by [dx, dy].
| |||||||||||
Translate the region by [dx, dy].
| |||||||||||
Write the region and its pixels to the parcel.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Is called before the object's memory is being reclaimed by the VM.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object
| |||||||||||
From interface android.os.Parcelable
|
Create an empty region
Return a copy of the specified region
Return a region set to the specified rectangle
Return a region set to the specified rectangle
Return true if the region contains the specified point
Describe the kinds of special objects contained in this Parcelable's marshalled representation.
Return the boundary of the region as a new Path. If the region is empty, the path will also be empty.
Set the path to the boundary of the region. If the region is empty, the path will also be empty.
Return a new Rect set to the bounds of the region. If the region is empty, the Rect will be set to [0, 0, 0, 0]
Set the Rect to the bounds of the region. If the region is empty, the Rect will be set to [0, 0, 0, 0]
Return true if the region contains more than one rectangle
Return true if this region is empty
Return true if the region contains a single rectangle
Set this region to the result of performing the Op on the specified regions. Return true if the result is not empty.
Perform the specified Op on this region and the specified region. Return true if the result of the op is not empty.
Set this region to the result of performing the Op on the specified rect and region. Return true if the result is not empty.
Perform the specified Op on this region and the specified rect. Return true if the result of the op is not empty.
Perform the specified Op on this region and the specified rect. Return true if the result of the op is not empty.
Return true if the region is a single rectangle (not complex) and it contains the specified rectangle. Returning false is not a guarantee that the rectangle is not contained by this region, but return true is a guarantee that the rectangle is contained by this region.
Return true if the region is a single rectangle (not complex) and it contains the specified rectangle. Returning false is not a guarantee that the rectangle is not contained by this region, but return true is a guarantee that the rectangle is contained by this region.
Return true if the region is empty, or if the specified rectangle does not intersect the region. Returning false is not a guarantee that they intersect, but returning true is a guarantee that they do not.
Return true if the region is empty, or if the specified rectangle does not intersect the region. Returning false is not a guarantee that they intersect, but returning true is a guarantee that they do not.
Return true if the region is empty, or if the specified region does not intersect the region. Returning false is not a guarantee that they intersect, but returning true is a guarantee that they do not.
Set the region to the specified rectangle
Set the region to the specified region.
Set the region to the specified rectangle
Set the region to the empty region
Set the region to the area described by the path and clip. Return true if the resulting region is non-empty. This produces a region that is identical to the pixels that would be drawn by the path (with no antialiasing).
Set the dst region to the result of translating this region by [dx, dy]. If this region is empty, then dst will be set to empty.
Translate the region by [dx, dy]. If the region is empty, do nothing.
Write the region and its pixels to the parcel. The region can be rebuilt from the parcel by calling CREATOR.createFromParcel().
p | Parcel object to write the region data into |
---|---|
flags | Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE. |
Is called before the object's memory is being reclaimed by the VM. This can only happen once the VM has detected, during a run of the garbage collector, that the object is no longer reachable by any thread of the running application.
The method can be used to free system resources or perform other cleanup
before the object is garbage collected. The default implementation of the
method is empty, which is also expected by the VM, but subclasses can
override finalize()
as required. Uncaught exceptions which are
thrown during the execution of this method cause it to terminate
immediately but are otherwise ignored.
Note that the VM does guarantee that finalize()
is called at most
once for any object, but it doesn't guarantee when (if at all) finalize()
will be called. For example, object B's finalize()
can delay the execution of object A's finalize()
method and
therefore it can delay the reclamation of A's memory. To be safe, use a
ReferenceQueue, because it provides more control
over the way the VM deals with references during garbage collection.
Throwable |
---|