Lines Matching defs:Raster

50  * A class representing a rectangular array of pixels.  A Raster
55 * A Raster defines values for pixels occupying a particular
57 * The rectangle, known as the Raster's bounding rectangle and
60 * the coordinate of the upper left corner of the Raster. References
63 * elements of the Raster's associated DataBuffer. It is the user's
66 * A SampleModel describes how samples of a Raster
76 * Although a Raster may live anywhere in the plane, a SampleModel
78 * Raster therefore contains a translation factor that allows pixel
79 * locations to be mapped between the Raster's coordinate system and
81 * coordinate system to that of the Raster may be obtained by the
84 * A Raster may share a DataBuffer with another Raster either by
87 * can return a reference to the Raster they were created from by
88 * means of the getParent method. For a Raster that was not
92 * The createTranslatedChild method returns a new Raster that
93 * shares all of the data of the current Raster, but occupies a
95 * different starting point. For example, if the parent Raster
97 * Raster was defined to start at (50, 50), then pixel (20, 20) of the
104 * The translation between a parent and child Raster may be
108 * The createChild method may be used to create a new Raster
114 * Raster is to use one of the static create methods defined in this
115 * class. These methods create instances of Raster that use the
117 * be processed more efficiently than a Raster created by combining
126 public class Raster {
129 * The SampleModel that describes how pixels from this Raster
137 /** The X coordinate of the upper-left pixel of this Raster. */
140 /** The Y coordinate of the upper-left pixel of this Raster. */
143 /** The width of this Raster. */
146 /** The height of this Raster. */
151 * Raster's SampleModel to that of the Raster.
157 * Raster's SampleModel to that of the Raster.
161 /** The number of bands in the Raster. */
167 /** The parent of this Raster, or null. */
168 protected Raster parent;
177 * Creates a Raster based on a PixelInterleavedSampleModel with the
180 * <p> The upper left corner of the Raster is given by the
186 * Rasters are not supported. To create a 1-band Raster of type
188 * Raster.createPackedRaster().
195 * @param location the upper-left corner of the <code>Raster</code>
217 * Creates a Raster based on a PixelInterleavedSampleModel with the
222 * <p> The upper left corner of the Raster is given by the
228 * Rasters are not supported. To create a 1-band Raster of type
230 * Raster.createPackedRaster().
239 * @param location the upper-left corner of the <code>Raster</code>
283 * Creates a Raster based on a BandedSampleModel with the
286 * <p> The upper left corner of the Raster is given by the
297 * @param location the upper-left corner of the <code>Raster</code>
330 * Creates a Raster based on a BandedSampleModel with the
336 * <p> The upper left corner of the Raster is given by the
348 * @param location the upper-left corner of the <code>Raster</code>
422 * Creates a Raster based on a SinglePixelPackedSampleModel with
426 * <p> The upper left corner of the Raster is given by the
437 * @param location the upper-left corner of the <code>Raster</code>
479 * Creates a Raster based on a packed SampleModel with the
490 * <p> The upper left corner of the Raster is given by the
502 * @param location the upper-left corner of the <code>Raster</code>
593 * Creates a Raster based on a PixelInterleavedSampleModel with the
596 * bandOffsets.length. The upper left corner of the Raster
600 * Rasters are not supported. To create a 1-band Raster of type
602 * Raster.createPackedRaster().
610 * @param location the upper-left corner of the <code>Raster</code>
660 * Creates a Raster based on a BandedSampleModel with the
664 * the same. The upper left corner of the Raster is given by the
673 * @param location the upper-left corner of the <code>Raster</code>
731 * Creates a Raster based on a SinglePixelPackedSampleModel with
734 * The upper left corner of the Raster is given by
742 * @param location the upper-left corner of the <code>Raster</code>
794 * Creates a Raster based on a MultiPixelPackedSampleModel with the
796 * left corner of the Raster is given by the location argument. If
803 * @param location the upper-left corner of the <code>Raster</code>
859 * Creates a Raster with the specified SampleModel and DataBuffer.
860 * The upper left corner of the Raster is given by the location argument.
864 * @param location the upper-left corner of the <code>Raster</code>
865 * @return a <code>Raster</code> with the specified
879 public static Raster createRaster(SampleModel sm,
918 return new Raster(sm,db,location);
923 * The upper left corner of the Raster is given by the location argument.
946 * The upper left corner of the Raster is given by the location argument.
1008 * Constructs a Raster with the given SampleModel. The Raster's
1011 * Raster is automatically created.
1021 protected Raster(SampleModel sampleModel,
1034 * Constructs a Raster with the given SampleModel and DataBuffer.
1035 * The Raster's upper left corner is origin and it is the same size
1048 protected Raster(SampleModel sampleModel,
1062 * Constructs a Raster with the given SampleModel, DataBuffer, and
1064 * Raster. When translated into the base Raster's coordinate
1065 * system, aRegion must be contained by the base Raster.
1066 * (The base Raster is the Raster's ancestor which has no parent.)
1068 * sampleModelTranslateY values of the new Raster.
1076 * from SampleModel to Raster coordinates
1087 protected Raster(SampleModel sampleModel,
1091 Raster parent) {
1110 "overflow condition for X coordinates of Raster");
1114 "overflow condition for Y coordinates of Raster");
1127 * Returns the parent Raster (if any) of this Raster or null.
1128 * @return the parent Raster or <code>null</code>.
1130 public Raster getParent() {
1136 * SampleModel to that of the Raster. To convert a pixel's X
1137 * coordinate from the Raster coordinate system to the SampleModel
1140 * Raster's SampleModel to that of the Raster.
1148 * SampleModel to that of the Raster. To convert a pixel's Y
1149 * coordinate from the Raster coordinate system to the SampleModel
1152 * Raster's SampleModel to that of the Raster.
1159 * Create a compatible WritableRaster the same size as this Raster with
1237 * Create a Raster with the same size, SampleModel and DataBuffer
1238 * as this one, but with a different location. The new Raster
1239 * will possess a reference to the current Raster, accessible
1243 * corner of the new <code>Raster</code>
1245 * corner of the new <code>Raster</code>
1246 * @return a new <code>Raster</code> with the same size, SampleModel,
1247 * and DataBuffer as this <code>Raster</code>, but with the
1254 public Raster createTranslatedChild(int childMinX, int childMinY) {
1260 * Returns a new Raster which shares all or part of this Raster's
1261 * DataBuffer. The new Raster will possess a reference to the
1262 * current Raster, accessible through its getParent() method.
1265 * form a Rectangle in this Raster's coordinate space,
1268 * of the current Raster.
1270 * <p> The new Raster may additionally be translated to a
1272 * Raster. The childMinX and childMinY parameters give the new
1274 * Raster; the coordinate (childMinX, childMinY) in the new Raster
1276 * in the current Raster.
1278 * <p> The new Raster may be defined to contain only a subset of
1279 * the bands of the current Raster, possibly reordered, by means
1281 * include all of the bands of the current Raster in their current
1284 * <p> To create a new Raster that contains a subregion of the current
1285 * Raster, but shares its coordinate system and bands,
1290 * in this Raster's coordinates
1292 * in this Raster's coordinates
1296 * of the returned Raster
1298 * of the returned Raster
1300 * @return a new <code>Raster</code>.
1311 public Raster createChild(int parentX, int parentY,
1331 // Note: the SampleModel for the child Raster should have the same
1333 // the physical layout of the pixel data. The child Raster's width
1345 return new Raster(subSampleModel, getDataBuffer(),
1352 * Returns the bounding Rectangle of this Raster. This function returns
1354 * @return the bounding box of this <code>Raster</code>.
1360 /** Returns the minimum valid X coordinate of the Raster.
1361 * @return the minimum x coordinate of this <code>Raster</code>.
1367 /** Returns the minimum valid Y coordinate of the Raster.
1368 * @return the minimum y coordinate of this <code>Raster</code>.
1374 /** Returns the width in pixels of the Raster.
1375 * @return the width of this <code>Raster</code>.
1381 /** Returns the height in pixels of the Raster.
1382 * @return the height of this <code>Raster</code>.
1388 /** Returns the number of bands (samples per pixel) in this Raster.
1389 * @return the number of bands of this <code>Raster</code>.
1426 /** Returns the DataBuffer associated with this Raster.
1427 * @return the <code>DataBuffer</code> of this <code>Raster</code>.
1434 * @return the <code>SampleModel</code> of this <code>Raster</code>.