Android
android.graphics
public class

android.graphics.RegionIterator

java.lang.Object
android.graphics.RegionIterator

Summary

Public Constructors

            RegionIterator(Region region)
Construct an iterator for all of the rectangles in a region.

Public Methods

    final      boolean  next(Rect r)
Return the next rectangle in the region.

Protected Methods

          void  finalize()
Called by the virtual machine when there are no longer any (non-weak) references to the receiver.
Methods inherited from class java.lang.Object

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.

Throws

Throwable
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:56