public class ImageLayout2
extends javax.media.jai.ImageLayout
ImageLayout
to provide a reliable hash function.
ImageLayout
has a bug that will cause an application to crash if doing
hashing when some fields have not been initialized.ImageLayout
,
Serialized FormConstructor and Description |
---|
ImageLayout2()
Default constructor.
|
ImageLayout2(int minX,
int minY,
int width,
int height)
Construct an
ImageLayout2 with only the image's properties set. |
ImageLayout2(int minX,
int minY,
int width,
int height,
int tileGridXOffset,
int tileGridYOffset,
int tileWidth,
int tileHeight,
SampleModel sampleModel,
ColorModel colorModel)
Construct an
ImageLayout2 with the parameter set. |
ImageLayout2(int tileGridXOffset,
int tileGridYOffset,
int tileWidth,
int tileHeight,
SampleModel sampleModel,
ColorModel colorModel)
Construct an
ImageLayout2 with only tiling layout properties, sampleModel and
colorModel set. |
ImageLayout2(RenderedImage im)
Construct an
ImageLayout2 on top of a RenderedImage. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
int |
hashCode()
Returns the hash code for this
ImageLayout2 . |
clone, getColorModel, getHeight, getMinX, getMinY, getSampleModel, getTileGridXOffset, getTileGridYOffset, getTileHeight, getTileWidth, getValidMask, getWidth, isValid, setColorModel, setHeight, setMinX, setMinY, setSampleModel, setTileGridXOffset, setTileGridYOffset, setTileHeight, setTileWidth, setValid, setWidth, toString, unsetImageBounds, unsetTileLayout, unsetValid
public ImageLayout2()
ImageLayout2
without any parameter set.public ImageLayout2(int minX, int minY, int width, int height, int tileGridXOffset, int tileGridYOffset, int tileWidth, int tileHeight, SampleModel sampleModel, ColorModel colorModel)
ImageLayout2
with the parameter set.minX
- the image's minimum X coordinate.minY
- the image's minimum X coordinate.width
- the image's width.height
- the image's height.tileGridXOffset
- the x coordinate of the tile (0,0)tileGridYOffset
- the y coordinate of the tile (0,0)tileWidth
- the tile's width.tileHeight
- the tile's height.sampleModel
- the image's SampleModel
colorModel
- the image's ColorModel
public ImageLayout2(int tileGridXOffset, int tileGridYOffset, int tileWidth, int tileHeight, SampleModel sampleModel, ColorModel colorModel)
ImageLayout2
with only tiling layout properties, sampleModel and
colorModel set.tileGridXOffset
- the x coordinate of the tile (0,0)tileGridYOffset
- the y coordinate of the tile (0,0)tileWidth
- the tile's width.tileHeight
- the tile's height.sampleModel
- the image's SampleModel
colorModel
- the image's ColorModel
public ImageLayout2(int minX, int minY, int width, int height)
ImageLayout2
with only the image's properties set.minX
- the image's minimum X coordinate.minY
- the image's minimum X coordinate.width
- the image's width.height
- the image's height.public ImageLayout2(RenderedImage im)
ImageLayout2
on top of a RenderedImage. The layout parameters are set
from the related values of the input image.im
- a RenderedImage
whose layout will be copied.public int hashCode()
ImageLayout2
.
With respect to the super ImageLayout
, this method also does
validity check on the parameters during hashing.hashCode
in class javax.media.jai.ImageLayout
public boolean equals(Object obj)
equals
in class javax.media.jai.ImageLayout
Copyright © 2006–2017 GeoSolutions. All rights reserved.