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 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
Object
|
clone()
Creates and returns a copy of this object.
|
boolean
|
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
void
|
finalize()
Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
|
final
Class<?>
|
getClass()
Returns the runtime class of this Object .
|
int
|
hashCode()
Returns a hash code value for the object.
|
final
void
|
notify()
Wakes up a single thread that is waiting on this object's
monitor.
|
final
void
|
notifyAll()
Wakes up all threads that are waiting on this object's monitor.
|
String
|
toString()
Returns a string representation of the object.
|
final
void
|
wait()
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object.
|
final
void
|
wait(long timeout, int nanos)
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object, or
some other thread interrupts the current thread, or a certain
amount of real time has elapsed.
|
final
void
|
wait(long timeout)
Causes the current thread to wait until either another thread invokes the
notify() method or the
notifyAll() method for this object, or a
specified amount of time has elapsed.
|
|
From interface
sun.java2d.pipe.SpanIterator
abstract
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.
|
abstract
void
|
getPathBox(int[] pathbox)
This method returns the bounding box of the spans that the
iterator will be returning.
|
abstract
void
|
intersectClipBox(int lox, int loy, int hix, int hiy)
This method constrains the spans returned by nextSpan() to the
rectangle whose bounds are given.
|
abstract
boolean
|
nextSpan(int[] spanbox)
This method returns the next span in the shape being iterated.
|
abstract
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.
|
|
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.