< prev index next >
src/java.desktop/share/classes/sun/java2d/pipe/RegionIterator.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
*** 68,78 ****
* Moves the iteration state to the beginning of the next
* Y range in the region returning true if one is found
* and recording the low and high Y coordinates of the
* range in the array at locations 1 and 3 respectively.
*/
! public boolean nextYRange(int range[]) {
curIndex += numXbands * 2;
numXbands = 0;
if (curIndex >= region.endIndex) {
return false;
}
--- 68,78 ----
* Moves the iteration state to the beginning of the next
* Y range in the region returning true if one is found
* and recording the low and high Y coordinates of the
* range in the array at locations 1 and 3 respectively.
*/
! public boolean nextYRange(int[] range) {
curIndex += numXbands * 2;
numXbands = 0;
if (curIndex >= region.endIndex) {
return false;
}
*** 86,96 ****
* Moves the iteration state to the beginning of the next
* X band in the current Y range returning true if one is
* found and recording the low and high X coordinates of
* the range in the array at locations 0 and 2 respectively.
*/
! public boolean nextXBand(int range[]) {
if (numXbands <= 0) {
return false;
}
numXbands--;
range[0] = region.bands[curIndex++];
--- 86,96 ----
* Moves the iteration state to the beginning of the next
* X band in the current Y range returning true if one is
* found and recording the low and high X coordinates of
* the range in the array at locations 0 and 2 respectively.
*/
! public boolean nextXBand(int[] range) {
if (numXbands <= 0) {
return false;
}
numXbands--;
range[0] = region.bands[curIndex++];
< prev index next >