public class TLcdTileInfo extends Object implements ILcdTileInfo
Constructor and Description |
---|
TLcdTileInfo(int aWidth,
int aHeight,
int aType,
int aPixelSize,
int aBitOffset,
boolean aAllDefault,
ColorModel aColorModel,
ILcdBufferSegment aBufferSegment) |
Modifier and Type | Method and Description |
---|---|
int |
getBitOffset()
Returns the offset of the first pixel in every tile row, expressed in bits.
|
ILcdBufferSegment |
getBufferSegment()
Returns the buffer segment that contains the actual data of the tile.
|
ColorModel |
getColorModel()
Returns the optional color model of the tile.
|
int |
getHeight()
Returns the height of the tile, expressed in pixels.
|
int |
getPixelSize()
Returns the pixel size of the tile values, expressed in bits.
|
int |
getType()
Returns the internal storage type of the tile values.
|
URL |
getURL() |
int |
getWidth()
Returns the width of the tile, expressed in pixels.
|
boolean |
isAllDefault()
Returns whether all values in the tile are equal to a default value.
|
void |
setAllDefault(boolean aAllDefault)
Sets whether all values in the tile are equal to a default value.
|
void |
setBitOffset(int aBitOffset) |
void |
setPixelSize(int aPixelSize) |
void |
setType(int aType) |
void |
setURL(URL aURL)
Sets the URL that was used to read the tile.
|
public TLcdTileInfo(int aWidth, int aHeight, int aType, int aPixelSize, int aBitOffset, boolean aAllDefault, ColorModel aColorModel, ILcdBufferSegment aBufferSegment)
public int getWidth()
ILcdTileInfo
getWidth
in interface ILcdTileInfo
public int getHeight()
ILcdTileInfo
getHeight
in interface ILcdTileInfo
public int getType()
ILcdTileInfo
getType
in interface ILcdTileInfo
ILcdTile.BYTE
,
ILcdTile.SHORT
, or
ILcdTile.INT
.public void setType(int aType)
public int getPixelSize()
ILcdTileInfo
getPixelSize
in interface ILcdTileInfo
public void setPixelSize(int aPixelSize)
public int getBitOffset()
ILcdTileInfo
getBitOffset
in interface ILcdTileInfo
public void setBitOffset(int aBitOffset)
public URL getURL()
getURL
in interface ILcdTileInfo
public void setURL(URL aURL)
ILcdTileInfo
setURL
in interface ILcdTileInfo
public boolean isAllDefault()
ILcdTileInfo
isAllDefault
in interface ILcdTileInfo
public void setAllDefault(boolean aAllDefault)
ILcdTileInfo
setAllDefault
in interface ILcdTileInfo
public ColorModel getColorModel()
ILcdTileInfo
getColorModel
in interface ILcdTileInfo
null
if the raster doesn't have
an explicit color model.public ILcdBufferSegment getBufferSegment()
ILcdTileInfo
getBufferSegment
in interface ILcdTileInfo