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

public Class RegionSpanIterator

extends Object
implements SpanIterator
Class Inheritance
All Implemented Interfaces
sun.java2d.pipe.SpanIterator

This class implements the ShapeIterator interface for a Region. This is useful as the source iterator of a device clip region (in its native guise), and also as the result of clipping a Region to a rectangle.

Field Summary

Modifier and TypeField and Description
pack-priv int
pack-priv int
pack-priv boolean
pack-priv int
pack-priv int
pack-priv boolean
pack-priv int
pack-priv int
pack-priv RegionIterator

Constructor Summary

AccessConstructor and Description
public
RegionSpanIterator(Region r)

Constructs an instance based on the given Region

Method Summary

Modifier and TypeMethod and Description
public long
getNativeIterator()

Implements sun.java2d.pipe.SpanIterator.getNativeIterator.

This method returns a native pointer to a function block that can be used by a native method to perform the same iteration cycle that the above methods provide while avoiding upcalls to the Java object.

public void
getPathBox(int[] pathbox)

Implements sun.java2d.pipe.SpanIterator.getPathBox.

Gets the bbox of the available region spans.

public void
intersectClipBox(int clox, int cloy, int chix, int chiy)

Implements sun.java2d.pipe.SpanIterator.intersectClipBox.

Intersect the box used for clipping the output spans with the given box.

public boolean
nextSpan(int[] spanbox)

Implements sun.java2d.pipe.SpanIterator.nextSpan.

Fetches the next span that needs to be operated on.

public void
skipDownTo(int y)

Implements sun.java2d.pipe.SpanIterator.skipDownTo.

This method tells the iterator that it may skip all spans whose Y range is completely above the indicated Y coordinate.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

curhiyback to summary
pack-priv int curhiy
curloyback to summary
pack-priv int curloy
doneback to summary
pack-priv boolean done
hixback to summary
pack-priv int hix
hiyback to summary
pack-priv int hiy
isrectback to summary
pack-priv boolean isrect
loxback to summary
pack-priv int lox
loyback to summary
pack-priv int loy
riback to summary
pack-priv RegionIterator ri

Constructor Detail

RegionSpanIteratorback to summary
public RegionSpanIterator(Region r)

Constructs an instance based on the given Region

Method Detail

getNativeIteratorback to summary
public long getNativeIterator()

Implements sun.java2d.pipe.SpanIterator.getNativeIterator.

This method returns a native pointer to a function block that can be used by a native method to perform the same iteration cycle that the above methods provide while avoiding upcalls to the Java object. The definition of the structure whose pointer is returned by this method is defined in:

    src/share/native/sun/java2d/pipe/SpanIterator.h
getPathBoxback to summary
public void getPathBox(int[] pathbox)

Implements sun.java2d.pipe.SpanIterator.getPathBox.

Gets the bbox of the available region spans.

intersectClipBoxback to summary
public void intersectClipBox(int clox, int cloy, int chix, int chiy)

Implements sun.java2d.pipe.SpanIterator.intersectClipBox.

Intersect the box used for clipping the output spans with the given box.

nextSpanback to summary
public boolean nextSpan(int[] spanbox)

Implements sun.java2d.pipe.SpanIterator.nextSpan.

Fetches the next span that needs to be operated on. If the return value is false then there are no more spans.

skipDownToback to summary
public void skipDownTo(int y)

Implements sun.java2d.pipe.SpanIterator.skipDownTo.

This method tells the iterator that it may skip all spans whose Y range is completely above the indicated Y coordinate.