home *** CD-ROM | disk | FTP | other *** search
- package sun.java2d.pipe;
-
- import java.awt.Rectangle;
- import java.awt.geom.PathIterator;
- import sun.dc.path.FastPathProducer;
- import sun.dc.path.PathConsumer;
- import sun.dc.path.PathException;
-
- public class ShapeSpanIterator implements SpanIterator, PathConsumer {
- long pData;
-
- public static native void initIDs();
-
- public void appendPath(PathIterator var1) {
- float[] var2 = new float[6];
- this.setRule(var1.getWindingRule());
-
- while(!var1.isDone()) {
- this.addSegment(var1.currentSegment(var2), var2);
- var1.next();
- }
-
- this.endPath();
- }
-
- public native void setOutputArea(int var1, int var2, int var3, int var4);
-
- public void setOutputArea(Rectangle var1) {
- this.setOutputArea(var1.x, var1.y, var1.width, var1.height);
- }
-
- public native void setRule(int var1);
-
- public native void addSegment(int var1, float[] var2);
-
- public native void getPathBox(int[] var1);
-
- public native boolean nextSpan(int[] var1);
-
- public native void skipDownTo(int var1);
-
- public native long getNativeIterator();
-
- public native void dispose();
-
- protected void finalize() {
- this.dispose();
- }
-
- public void beginPath() {
- }
-
- public native void beginSubpath(float var1, float var2);
-
- public native void appendLine(float var1, float var2);
-
- public native void appendQuadratic(float var1, float var2, float var3, float var4);
-
- public native void appendCubic(float var1, float var2, float var3, float var4, float var5, float var6);
-
- public void closedSubpath() {
- }
-
- public native void endPath();
-
- public void useProxy(FastPathProducer var1) throws PathException {
- var1.sendTo(this);
- }
-
- public native long getCPathConsumer();
-
- static {
- initIDs();
- }
- }
-