|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.leeds.ccg.andyt.grids.core.Grid2DSquareCellChunkAbstract
uk.ac.leeds.ccg.andyt.grids.core.Grid2DSquareCellIntChunkAbstract
uk.ac.leeds.ccg.andyt.grids.core.Grid2DSquareCellIntChunkJAI
public class Grid2DSquareCellIntChunkJAI
Grid2DSquareCellIntChunkAbstract extension that stores cell values in a javax.media.jai.TiledImage.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class uk.ac.leeds.ccg.andyt.grids.core.Grid2DSquareCellChunkAbstract |
---|
Grid2DSquareCellChunkAbstract.ChunkCellID |
Field Summary |
---|
Fields inherited from class uk.ac.leeds.ccg.andyt.grids.core.Grid2DSquareCellChunkAbstract |
---|
chunkID, grid2DSquareCell, isSwapUpToDate |
Constructor Summary | |
---|---|
|
Grid2DSquareCellIntChunkJAI()
Creates a new Grid2DSquareCellIntChunkJAI. |
protected |
Grid2DSquareCellIntChunkJAI(Grid2DSquareCellIntChunkAbstract grid2DSquareCellIntChunk,
Grid2DSquareCellAbstract.ChunkID chunkID)
Creates a new Grid2DSquareCellIntChunkJAI from a Grid2DSquareCellIntChunkAbstract with chunkID ChunkID |
protected |
Grid2DSquareCellIntChunkJAI(Grid2DSquareCellInt grid2DSquareCellInt,
Grid2DSquareCellAbstract.ChunkID chunkID)
Creates a new Grid2DSquareCellIntChunkJAI for Grid2DSquareCellDouble with chunkID ChunkID |
protected |
Grid2DSquareCellIntChunkJAI(javax.media.jai.remote.SerializableRenderedImage serializableRenderedImage,
Grid2DSquareCellAbstract.ChunkID chunkID)
Creates a new Grid2DSquareCellIntChunkJAI from a SerializableRenderedImage. |
Method Summary | |
---|---|
protected void |
clearData()
Clears the data associated with this. |
protected int |
getCell(int chunkCellRowIndex,
int chunkCellColIndex,
int noDataValue)
Returns the value at position given by: chunk cell row chunkCellRowIndex; chunk cell row chunkCellColIndex. |
protected javax.media.jai.TiledImage |
getData()
For returning data |
protected void |
initCell(int chunkCellRowIndex,
int chunkCellColIndex,
int valueToInitialise)
Initialises the value at position given by: chunk cell row chunkCellRowIndex; chunk cell column chunkCellColIndex. |
protected void |
initData()
Initialises the data associated with this. |
protected void |
initData(int ncols,
int nrows)
Initialises the data associated with this. |
protected IteratorAbstract |
iterator()
Returns a Grid2DSquareCellIntChunkJAIIterator for iterating over the cells in this. |
protected int |
setCell(int chunkCellRowIndex,
int chunkCellColIndex,
int valueToSet,
int noDataValue)
Returns the value at position given by: chunk cell row chunkCellRowIndex; chunk cell column chunkCellColIndex and sets it to valueToSet |
Methods inherited from class uk.ac.leeds.ccg.andyt.grids.core.Grid2DSquareCellChunkAbstract |
---|
getChunkID, getChunkID, getDescription, getGrid2DSquareCell, getGrid2DSquareCell, getIsSwapUpToDate, getIsSwapUpToDate, getName, getName, inChunk, inChunk, initChunkID, initGrid2DSquareCell, iterator, setIsSwapUpToDate, setIsSwapUpToDate, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Grid2DSquareCellIntChunkJAI()
protected Grid2DSquareCellIntChunkJAI(javax.media.jai.remote.SerializableRenderedImage serializableRenderedImage, Grid2DSquareCellAbstract.ChunkID chunkID)
serializableRenderedImage
- The SerializableRenderedImage from which
to create this.chunkID
- The ChunkID of this.protected Grid2DSquareCellIntChunkJAI(Grid2DSquareCellInt grid2DSquareCellInt, Grid2DSquareCellAbstract.ChunkID chunkID)
grid2DSquareCellInt
- The Grid2DSquareCellInt for which this is
created.chunkID
- The ChunkID of this.protected Grid2DSquareCellIntChunkJAI(Grid2DSquareCellIntChunkAbstract grid2DSquareCellIntChunk, Grid2DSquareCellAbstract.ChunkID chunkID)
grid2DSquareCellDoubleChunkAbstract
- The
Grid2DSquareCellIntChunkAbstract from which this is
created.chunkID
- The ChunkID of this.Method Detail |
---|
protected void initData()
initData
in class Grid2DSquareCellIntChunkAbstract
protected void initData(int ncols, int nrows)
protected javax.media.jai.TiledImage getData()
protected void clearData()
clearData
in class Grid2DSquareCellIntChunkAbstract
protected int getCell(int chunkCellRowIndex, int chunkCellColIndex, int noDataValue)
getCell
in class Grid2DSquareCellIntChunkAbstract
chunkCellRowIndex
- the row index of the cell w.r.t. the origin of
this chunkchunkCellColIndex
- the column index of the cell w.r.t. the origin
of this chunknoDataValue
- the noDataValue of this.grid2DSquareCellIntprotected int setCell(int chunkCellRowIndex, int chunkCellColIndex, int valueToSet, int noDataValue)
setCell
in class Grid2DSquareCellIntChunkAbstract
chunkCellRowIndex
- the row index of the cell w.r.t. the origin of
this chunkchunkCellColIndex
- the column index of the cell w.r.t. the origin
of this chunkvalueToSet
- the value the cell is to be set tonoDataValue
- the noDataValue of this.grid2DSquareCellIntprotected void initCell(int chunkCellRowIndex, int chunkCellColIndex, int valueToInitialise)
initCell
in class Grid2DSquareCellIntChunkAbstract
chunkCellRowIndex
- the row index of the cell w.r.t. the origin of
this chunkchunkCellColIndex
- the column index of the cell w.r.t. the origin
of this chunkvalueToInitialise
- the value with which the cell is initialisedprotected IteratorAbstract iterator()
iterator
in class Grid2DSquareCellChunkAbstract
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |