69 sg2d.drawpipe = nullpipe; 70 sg2d.fillpipe = nullpipe; 71 sg2d.shapepipe = nullpipe; 72 sg2d.textpipe = nullpipe; 73 sg2d.imagepipe = nullpipe; 74 } 75 76 public GraphicsConfiguration getDeviceConfiguration() { 77 return null; 78 } 79 80 /** 81 * Return a readable Raster which contains the pixels for the 82 * specified rectangular region of the destination surface. 83 * The coordinate origin of the returned Raster is the same as 84 * the device space origin of the destination surface. 85 * In some cases the returned Raster might also be writeable. 86 * In most cases, the returned Raster might contain more pixels 87 * than requested. 88 * 89 * @see useTightBBoxes 90 */ 91 public Raster getRaster(int x, int y, int w, int h) { 92 throw new InvalidPipeException("should be NOP"); 93 } 94 95 /** 96 * Does the pixel accessibility of the destination surface 97 * suggest that rendering algorithms might want to take 98 * extra time to calculate a more accurate bounding box for 99 * the operation being performed? 100 * The typical case when this will be true is when a copy of 101 * the pixels has to be made when doing a getRaster. The 102 * fewer pixels copied, the faster the operation will go. 103 * 104 * @see getRaster 105 */ 106 public boolean useTightBBoxes() { 107 return false; 108 } 109 110 /** 111 * Returns the pixel data for the specified Argb value packed 112 * into an integer for easy storage and conveyance. 113 */ 114 public int pixelFor(int rgb) { 115 return rgb; 116 } 117 118 /** 119 * Returns the Argb representation for the specified integer value 120 * which is packed in the format of the associated ColorModel. 121 */ 122 public int rgbFor(int pixel) { 123 return pixel; 124 } | 69 sg2d.drawpipe = nullpipe; 70 sg2d.fillpipe = nullpipe; 71 sg2d.shapepipe = nullpipe; 72 sg2d.textpipe = nullpipe; 73 sg2d.imagepipe = nullpipe; 74 } 75 76 public GraphicsConfiguration getDeviceConfiguration() { 77 return null; 78 } 79 80 /** 81 * Return a readable Raster which contains the pixels for the 82 * specified rectangular region of the destination surface. 83 * The coordinate origin of the returned Raster is the same as 84 * the device space origin of the destination surface. 85 * In some cases the returned Raster might also be writeable. 86 * In most cases, the returned Raster might contain more pixels 87 * than requested. 88 * 89 * @see #useTightBBoxes 90 */ 91 public Raster getRaster(int x, int y, int w, int h) { 92 throw new InvalidPipeException("should be NOP"); 93 } 94 95 /** 96 * Does the pixel accessibility of the destination surface 97 * suggest that rendering algorithms might want to take 98 * extra time to calculate a more accurate bounding box for 99 * the operation being performed? 100 * The typical case when this will be true is when a copy of 101 * the pixels has to be made when doing a getRaster. The 102 * fewer pixels copied, the faster the operation will go. 103 * 104 * @see #getRaster 105 */ 106 public boolean useTightBBoxes() { 107 return false; 108 } 109 110 /** 111 * Returns the pixel data for the specified Argb value packed 112 * into an integer for easy storage and conveyance. 113 */ 114 public int pixelFor(int rgb) { 115 return rgb; 116 } 117 118 /** 119 * Returns the Argb representation for the specified integer value 120 * which is packed in the format of the associated ColorModel. 121 */ 122 public int rgbFor(int pixel) { 123 return pixel; 124 } |