< prev index next >

src/java.desktop/share/classes/java/awt/image/WritableRaster.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 1997, 2014, 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) 1997, 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
*** 215,225 **** * overflow */ public WritableRaster createWritableChild(int parentX, int parentY, int w, int h, int childMinX, int childMinY, ! int bandList[]) { if (parentX < this.minX) { throw new RasterFormatException("parentX lies outside raster"); } if (parentY < this.minY) { throw new RasterFormatException("parentY lies outside raster"); --- 215,225 ---- * overflow */ public WritableRaster createWritableChild(int parentX, int parentY, int w, int h, int childMinX, int childMinY, ! int[] bandList) { if (parentX < this.minX) { throw new RasterFormatException("parentX lies outside raster"); } if (parentY < this.minY) { throw new RasterFormatException("parentY lies outside raster");
*** 502,512 **** * * @throws NullPointerException if iArray is null. * @throws ArrayIndexOutOfBoundsException if the coordinates are not * in bounds, or if iArray is too small to hold the input. */ ! public void setPixel(int x, int y, int iArray[]) { sampleModel.setPixel(x-sampleModelTranslateX,y-sampleModelTranslateY, iArray,dataBuffer); } /** --- 502,512 ---- * * @throws NullPointerException if iArray is null. * @throws ArrayIndexOutOfBoundsException if the coordinates are not * in bounds, or if iArray is too small to hold the input. */ ! public void setPixel(int x, int y, int[] iArray) { sampleModel.setPixel(x-sampleModelTranslateX,y-sampleModelTranslateY, iArray,dataBuffer); } /**
*** 520,530 **** * * @throws NullPointerException if fArray is null. * @throws ArrayIndexOutOfBoundsException if the coordinates are not * in bounds, or if fArray is too small to hold the input. */ ! public void setPixel(int x, int y, float fArray[]) { sampleModel.setPixel(x-sampleModelTranslateX,y-sampleModelTranslateY, fArray,dataBuffer); } /** --- 520,530 ---- * * @throws NullPointerException if fArray is null. * @throws ArrayIndexOutOfBoundsException if the coordinates are not * in bounds, or if fArray is too small to hold the input. */ ! public void setPixel(int x, int y, float[] fArray) { sampleModel.setPixel(x-sampleModelTranslateX,y-sampleModelTranslateY, fArray,dataBuffer); } /**
*** 538,548 **** * * @throws NullPointerException if dArray is null. * @throws ArrayIndexOutOfBoundsException if the coordinates are not * in bounds, or if dArray is too small to hold the input. */ ! public void setPixel(int x, int y, double dArray[]) { sampleModel.setPixel(x-sampleModelTranslateX,y-sampleModelTranslateY, dArray,dataBuffer); } /** --- 538,548 ---- * * @throws NullPointerException if dArray is null. * @throws ArrayIndexOutOfBoundsException if the coordinates are not * in bounds, or if dArray is too small to hold the input. */ ! public void setPixel(int x, int y, double[] dArray) { sampleModel.setPixel(x-sampleModelTranslateX,y-sampleModelTranslateY, dArray,dataBuffer); } /**
*** 559,569 **** * * @throws NullPointerException if iArray is null. * @throws ArrayIndexOutOfBoundsException if the coordinates are not * in bounds, or if iArray is too small to hold the input. */ ! public void setPixels(int x, int y, int w, int h, int iArray[]) { sampleModel.setPixels(x-sampleModelTranslateX,y-sampleModelTranslateY, w,h,iArray,dataBuffer); } /** --- 559,569 ---- * * @throws NullPointerException if iArray is null. * @throws ArrayIndexOutOfBoundsException if the coordinates are not * in bounds, or if iArray is too small to hold the input. */ ! public void setPixels(int x, int y, int w, int h, int[] iArray) { sampleModel.setPixels(x-sampleModelTranslateX,y-sampleModelTranslateY, w,h,iArray,dataBuffer); } /**
*** 580,590 **** * * @throws NullPointerException if fArray is null. * @throws ArrayIndexOutOfBoundsException if the coordinates are not * in bounds, or if fArray is too small to hold the input. */ ! public void setPixels(int x, int y, int w, int h, float fArray[]) { sampleModel.setPixels(x-sampleModelTranslateX,y-sampleModelTranslateY, w,h,fArray,dataBuffer); } /** --- 580,590 ---- * * @throws NullPointerException if fArray is null. * @throws ArrayIndexOutOfBoundsException if the coordinates are not * in bounds, or if fArray is too small to hold the input. */ ! public void setPixels(int x, int y, int w, int h, float[] fArray) { sampleModel.setPixels(x-sampleModelTranslateX,y-sampleModelTranslateY, w,h,fArray,dataBuffer); } /**
*** 601,611 **** * * @throws NullPointerException if dArray is null. * @throws ArrayIndexOutOfBoundsException if the coordinates are not * in bounds, or if dArray is too small to hold the input. */ ! public void setPixels(int x, int y, int w, int h, double dArray[]) { sampleModel.setPixels(x-sampleModelTranslateX,y-sampleModelTranslateY, w,h,dArray,dataBuffer); } /** --- 601,611 ---- * * @throws NullPointerException if dArray is null. * @throws ArrayIndexOutOfBoundsException if the coordinates are not * in bounds, or if dArray is too small to hold the input. */ ! public void setPixels(int x, int y, int w, int h, double[] dArray) { sampleModel.setPixels(x-sampleModelTranslateX,y-sampleModelTranslateY, w,h,dArray,dataBuffer); } /**
*** 683,693 **** * @throws ArrayIndexOutOfBoundsException if the coordinates or * the band index are not in bounds, or if iArray is too small to * hold the input. */ public void setSamples(int x, int y, int w, int h, int b, ! int iArray[]) { sampleModel.setSamples(x-sampleModelTranslateX,y-sampleModelTranslateY, w,h,b,iArray,dataBuffer); } /** --- 683,693 ---- * @throws ArrayIndexOutOfBoundsException if the coordinates or * the band index are not in bounds, or if iArray is too small to * hold the input. */ public void setSamples(int x, int y, int w, int h, int b, ! int[] iArray) { sampleModel.setSamples(x-sampleModelTranslateX,y-sampleModelTranslateY, w,h,b,iArray,dataBuffer); } /**
*** 707,717 **** * @throws ArrayIndexOutOfBoundsException if the coordinates or * the band index are not in bounds, or if fArray is too small to * hold the input. */ public void setSamples(int x, int y, int w, int h, int b, ! float fArray[]) { sampleModel.setSamples(x-sampleModelTranslateX,y-sampleModelTranslateY, w,h,b,fArray,dataBuffer); } /** --- 707,717 ---- * @throws ArrayIndexOutOfBoundsException if the coordinates or * the band index are not in bounds, or if fArray is too small to * hold the input. */ public void setSamples(int x, int y, int w, int h, int b, ! float[] fArray) { sampleModel.setSamples(x-sampleModelTranslateX,y-sampleModelTranslateY, w,h,b,fArray,dataBuffer); } /**
*** 731,741 **** * @throws ArrayIndexOutOfBoundsException if the coordinates or * the band index are not in bounds, or if dArray is too small to * hold the input. */ public void setSamples(int x, int y, int w, int h, int b, ! double dArray[]) { sampleModel.setSamples(x-sampleModelTranslateX,y-sampleModelTranslateY, w,h,b,dArray,dataBuffer); } } --- 731,741 ---- * @throws ArrayIndexOutOfBoundsException if the coordinates or * the band index are not in bounds, or if dArray is too small to * hold the input. */ public void setSamples(int x, int y, int w, int h, int b, ! double[] dArray) { sampleModel.setSamples(x-sampleModelTranslateX,y-sampleModelTranslateY, w,h,b,dArray,dataBuffer); } }
< prev index next >