android.graphics.RegionIterator
Summary
Public Constructors
Public Methods
Protected Methods
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
Details
Public Constructors
public
RegionIterator(Region region)
Construct an iterator for all of the rectangles in a region. This
effectively makes a private copy of the region, so any subsequent edits
to region will not affect the iterator.
Parameters
region
| the region that will be iterated
|
Public Methods
public
final
boolean
next(Rect r)
Return the next rectangle in the region. If there are no more rectangles
this returns false and r is unchanged. If there is at least one more,
this returns true and r is set to that rectangle.
Protected Methods
protected
void
finalize()
Called by the virtual machine when there are no longer any (non-weak)
references to the receiver. Subclasses can use this facility to guarantee
that any associated resources are cleaned up before the receiver is
garbage collected. Uncaught exceptions which are thrown during the
running of the method cause it to terminate immediately, but are
otherwise ignored.
Note: The virtual machine assumes that the implementation in class Object
is empty.