< prev index next >
src/java.desktop/share/classes/sun/java2d/pipe/ShapeSpanIterator.java
Print this page
*** 1,7 ****
/*
! * Copyright (c) 1998, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
--- 1,7 ----
/*
! * Copyright (c) 1998, 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
*** 80,90 ****
/*
* Appends the geometry and winding rule from the indicated
* path iterator.
*/
public void appendPath(PathIterator pi) {
! float coords[] = new float[6];
setRule(pi.getWindingRule());
while (!pi.isDone()) {
addSegment(pi.currentSegment(coords), coords);
pi.next();
--- 80,90 ----
/*
* Appends the geometry and winding rule from the indicated
* path iterator.
*/
public void appendPath(PathIterator pi) {
! float[] coords = new float[6];
setRule(pi.getWindingRule());
while (!pi.isDone()) {
addSegment(pi.currentSegment(coords), coords);
pi.next();
*** 93,103 ****
}
/*
* Appends the geometry from the indicated set of polygon points.
*/
! public native void appendPoly(int xPoints[], int yPoints[], int nPoints,
int xoff, int yoff);
/*
* Sets the normalization flag so that incoming data is
* adjusted to nearest (0.25, 0.25) subpixel position.
--- 93,103 ----
}
/*
* Appends the geometry from the indicated set of polygon points.
*/
! public native void appendPoly(int[] xPoints, int[] yPoints, int nPoints,
int xoff, int yoff);
/*
* Sets the normalization flag so that incoming data is
* adjusted to nearest (0.25, 0.25) subpixel position.
*** 141,157 ****
/*
* Adds a single PathIterator segment to the internal list of
* path element structures.
*/
! public native void addSegment(int type, float coords[]);
/*
* Gets the bbox of the available path segments, clipped to the
* OutputArea.
*/
! public native void getPathBox(int pathbox[]);
/*
* Intersects the path box with the given bbox.
* Returned spans are clipped to this region, or discarded
* altogether if they lie outside it.
--- 141,157 ----
/*
* Adds a single PathIterator segment to the internal list of
* path element structures.
*/
! public native void addSegment(int type, float[] coords);
/*
* Gets the bbox of the available path segments, clipped to the
* OutputArea.
*/
! public native void getPathBox(int[] pathbox);
/*
* Intersects the path box with the given bbox.
* Returned spans are clipped to this region, or discarded
* altogether if they lie outside it.
*** 160,170 ****
/*
* Fetches the next span that needs to be operated on.
* If the return value is false then there are no more spans.
*/
! public native boolean nextSpan(int spanbox[]);
/**
* This method tells the iterator that it may skip all spans
* whose Y range is completely above the indicated Y coordinate.
*/
--- 160,170 ----
/*
* Fetches the next span that needs to be operated on.
* If the return value is false then there are no more spans.
*/
! public native boolean nextSpan(int[] spanbox);
/**
* This method tells the iterator that it may skip all spans
* whose Y range is completely above the indicated Y coordinate.
*/
< prev index next >