android.graphics
Class RegionIterator
java.lang.Object
android.graphics.RegionIterator
public class RegionIterator
- extends Object
|
Constructor Summary |
RegionIterator(Region region)
Construct an iterator for all of the rectangles in a region. |
|
Method Summary |
protected void |
finalize()
Called by the virtual machine when there are no longer any (non-weak)
references to the receiver. |
boolean |
next(Rect r)
Return the next rectangle in the region. |
RegionIterator
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
next
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.
finalize
protected void finalize()
throws Throwable
- Description copied from class:
Object
- 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.
- Overrides:
finalize in class Object
- Throws:
Throwable - The virtual machine ignores any exceptions which are
thrown during finalization.
Please submit a feedback, bug or feature