|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.image.io.mosaic.Tile
org.geotools.image.io.mosaic.LargeTile
public class LargeTile
A tile with larger capacity than the default Tile
implementation. Instances of this
class usually don't need to be created, since the whole purpose of tile is to represent a
small portion of an image. However it is needed in some case, typically to represent an image
before a mosaic is built from it.
Constructor Summary | |
---|---|
LargeTile(javax.imageio.spi.ImageReaderSpi provider,
java.lang.Object input,
int imageIndex,
java.awt.Point location,
java.awt.Dimension subsampling)
Creates a tile for the given provider, input and location. |
|
LargeTile(javax.imageio.spi.ImageReaderSpi provider,
java.lang.Object input,
int imageIndex,
java.awt.Rectangle region)
Creates a tile for the given region with default subsampling. |
|
LargeTile(javax.imageio.spi.ImageReaderSpi provider,
java.lang.Object input,
int imageIndex,
java.awt.Rectangle region,
java.awt.geom.AffineTransform gridToCRS)
Creates a tile for the given provider, input and "grid to real world" transform. |
|
LargeTile(javax.imageio.spi.ImageReaderSpi provider,
java.lang.Object input,
int imageIndex,
java.awt.Rectangle region,
java.awt.Dimension subsampling)
Creates a tile for the given provider, input and region. |
Method Summary | |
---|---|
java.awt.Rectangle |
getRegion()
Returns the upper-left corner in the destination image, with the image size. |
Methods inherited from class org.geotools.image.io.mosaic.Tile |
---|
compareTo, equals, getFormatName, getGridToCRS, getImageIndex, getImageReader, getImageReader, getImageReaderSpi, getInput, getInputName, getLocation, getSubsampling, getSubsamplingFloor, hashCode, toString, writeTable |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LargeTile(javax.imageio.spi.ImageReaderSpi provider, java.lang.Object input, int imageIndex, java.awt.Point location, java.awt.Dimension subsampling) throws java.lang.IllegalArgumentException
provider
- The image reader provider to use, or null
.input
- The input to be given to the image reader.imageIndex
- The image index to be given to the image reader for reading this tile.location
- The upper-left corner in the destination image.subsampling
- The subsampling relative to the tile having the finest resolution,
or null
.
java.lang.IllegalArgumentException
- If a required argument is null
or some argument has an invalid value.public LargeTile(javax.imageio.spi.ImageReaderSpi provider, java.lang.Object input, int imageIndex, java.awt.Rectangle region, java.awt.Dimension subsampling) throws java.lang.IllegalArgumentException
provider
- The image reader provider to use, or null
.input
- The input to be given to the image reader.imageIndex
- The image index to be given to the image reader for reading this tile.region
- The region in the destination image.subsampling
- The subsampling relative to the tile having the finest resolution,
or null
.
java.lang.IllegalArgumentException
- If a required argument is null
or some argument has an invalid value.public LargeTile(javax.imageio.spi.ImageReaderSpi provider, java.lang.Object input, int imageIndex, java.awt.Rectangle region, java.awt.geom.AffineTransform gridToCRS) throws java.lang.IllegalArgumentException
provider
- The image reader provider to use, or null
.input
- The input to be given to the image reader.imageIndex
- The image index to be given to the image reader for reading this tile.region
- The region in the destination image, or null
.gridToCRS
- The "grid to real world" transform.
java.lang.IllegalArgumentException
- If a required argument is null
or some argument has an invalid value.public LargeTile(javax.imageio.spi.ImageReaderSpi provider, java.lang.Object input, int imageIndex, java.awt.Rectangle region) throws java.lang.IllegalArgumentException
provider
- The image reader provider to use, or null
.input
- The input to be given to the image reader.imageIndex
- The image index to be given to the image reader for reading this tile.region
- The region in the destination image.
java.lang.IllegalArgumentException
- If a required argument is null
or some argument has an invalid value.Method Detail |
---|
public java.awt.Rectangle getRegion() throws java.io.IOException
getRegion
in class Tile
java.io.IOException
- if it was necessary to fetch the image dimension from the
reader and this operation failed.IIOParam.setSourceRegion(java.awt.Rectangle)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |