APIdia Launch Partner
Top Description Fields Constructors Methods
sun.java2d.pipe

public Class RegionIterator

extends Object
Class Inheritance

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

Field Summary

Modifier and TypeField and Description
pack-priv int
pack-priv int
pack-priv Region

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
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.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

curIndexback to summary
pack-priv int curIndex
numXbandsback to summary
pack-priv int numXbands
regionback to summary
pack-priv Region region

Constructor Detail

RegionIteratorback to summary
pack-priv RegionIterator(Region r)

Method Detail

copyStateFromback to summary
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.

createCopyback to summary
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.

nextXBandback to summary
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.

nextYRangeback to summary
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.