public class

RegionSpanIterator

extends Object
implements SpanIterator
java.lang.Object
   ↳ sun.java2d.pipe.RegionSpanIterator

Class Overview

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.

Summary

Public Constructors
RegionSpanIterator(Region r)
Constructs an instance based on the given Region
Public Methods
long 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.
void getPathBox(int[] pathbox)
Gets the bbox of the available region spans.
void intersectClipBox(int clox, int cloy, int chix, int chiy)
Intersect the box used for clipping the output spans with the given box.
boolean nextSpan(int[] spanbox)
Fetches the next span that needs to be operated on.
void skipDownTo(int y)
This method tells the iterator that it may skip all spans whose Y range is completely above the indicated Y coordinate.
[Expand]
Inherited Methods
From class java.lang.Object
From interface sun.java2d.pipe.SpanIterator

Public Constructors

public RegionSpanIterator (Region r)

Constructs an instance based on the given Region

Public Methods

public long 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
 

public void getPathBox (int[] pathbox)

Gets the bbox of the available region spans.

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

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

public boolean nextSpan (int[] spanbox)

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

public void skipDownTo (int y)

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