public class

RegionIterator

extends Object
java.lang.Object
   ↳ sun.java2d.pipe.RegionIterator

Class Overview

This class defines the API for iterating through the bands of a region object.

Summary

Public Methods
void copyStateFrom(RegionIterator ri)
Copies the iteration state from this RegionIterator object into another RegionIterator object to allow multiple iteration branches from the current position.
RegionIterator createCopy()
Returns a new RegionIterator object representing the same iteration state as this object to allow multiple iteration branches from the current position.
boolean nextXBand(int[] range)
Moves the iteration state to the beginning of the next X band in the current Y range returning true if one is found and recording the low and high X coordinates of the range in the array at locations 0 and 2 respectively.
boolean nextYRange(int[] range)
Moves the iteration state to the beginning of the next Y range in the region returning true if one is found and recording the low and high Y coordinates of the range in the array at locations 1 and 3 respectively.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public void copyStateFrom (RegionIterator ri)

Copies the iteration state from this RegionIterator object into another RegionIterator object to allow multiple iteration branches from the current position.

public RegionIterator createCopy ()

Returns a new RegionIterator object representing the same iteration state as this object to allow multiple iteration branches from the current position.

public boolean nextXBand (int[] range)

Moves the iteration state to the beginning of the next X band in the current Y range returning true if one is found and recording the low and high X coordinates of the range in the array at locations 0 and 2 respectively.

public boolean nextYRange (int[] range)

Moves the iteration state to the beginning of the next Y range in the region returning true if one is found and recording the low and high Y coordinates of the range in the array at locations 1 and 3 respectively.