< prev index next >
src/java.desktop/share/classes/sun/java2d/pipe/ShapeSpanIterator.java
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 1998, 2016, Oracle and/or its affiliates. All rights reserved.
+ * 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,11 +80,11 @@
/*
* Appends the geometry and winding rule from the indicated
* path iterator.
*/
public void appendPath(PathIterator pi) {
- float coords[] = new float[6];
+ float[] coords = new float[6];
setRule(pi.getWindingRule());
while (!pi.isDone()) {
addSegment(pi.currentSegment(coords), coords);
pi.next();
@@ -93,11 +93,11 @@
}
/*
* Appends the geometry from the indicated set of polygon points.
*/
- public native void appendPoly(int xPoints[], int yPoints[], int nPoints,
+ 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,17 +141,17 @@
/*
* Adds a single PathIterator segment to the internal list of
* path element structures.
*/
- public native void addSegment(int type, float coords[]);
+ 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[]);
+ 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,11 +160,11 @@
/*
* 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[]);
+ 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 >