src/solaris/classes/sun/java2d/xr/GrowableRectArray.java

Print this page

        

*** 36,45 **** --- 36,59 ---- public GrowableRectArray(int initialSize) { super(RECT_SIZE, initialSize); } + public final void pushRectValues(int x, int y, int width, int height) { + int currSize = size; + size += RECT_SIZE; + + if (size >= array.length) { + growArray(); + } + + array[currSize] = x; + array[currSize + 1] = y; + array[currSize + 2] = width; + array[currSize + 3] = height; + } + public final void setX(int index, int x) { array[getCellIndex(index)] = x; } public final void setY(int index, int y) {