java.lang.Object
org.maloi.evolvo.image.tiledimage.Tile
- public class Tile
- extends java.lang.Object
|
Method Summary |
void |
expire()
|
(package private) int |
fixPixel(int p)
|
int[] |
getData()
|
long |
getLastUsedTime()
|
java.awt.Point |
getLocation()
|
int |
getPixel(int x,
int y)
|
void |
getPixels(int startX,
int startY,
int w,
int h,
int[] dest,
int off,
int destScansize)
|
java.awt.image.SampleModel |
getSampleModel()
|
int |
getXLocation()
|
int |
getYLocation()
|
boolean |
isValid()
|
void |
loadTile()
|
void |
setData(int[] data)
|
void |
setPixel(int x,
int y,
int value)
|
void |
setPixels(int startX,
int startY,
int w,
int h,
int[] src,
int off,
int srcScansize)
|
void |
validate()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TILE_SIZE
public static final int TILE_SIZE
- See Also:
- Constant Field Values
LOCATION_INVALID
static final int LOCATION_INVALID
- See Also:
- Constant Field Values
LOCATION_MEMORY
static final int LOCATION_MEMORY
- See Also:
- Constant Field Values
LOCATION_DISK
static final int LOCATION_DISK
- See Also:
- Constant Field Values
file
java.nio.channels.FileChannel file
fposition
int fposition
xloc
int xloc
yloc
int yloc
data
int[] data
lastused
long lastused
location
int location
sm
java.awt.image.SinglePixelPackedSampleModel sm
masks
int[] masks
offsets
int[] offsets
Tile
public Tile(int tilex,
int tiley,
java.nio.channels.FileChannel file,
int fposition)
Tile
public Tile(int tilex,
int tiley,
java.nio.channels.FileChannel file,
int fposition,
java.awt.image.SampleModel sm)
validate
public void validate()
getData
public int[] getData()
setData
public void setData(int[] data)
setPixel
public void setPixel(int x,
int y,
int value)
setPixels
public void setPixels(int startX,
int startY,
int w,
int h,
int[] src,
int off,
int srcScansize)
getPixel
public int getPixel(int x,
int y)
getPixels
public void getPixels(int startX,
int startY,
int w,
int h,
int[] dest,
int off,
int destScansize)
expire
public void expire()
loadTile
public void loadTile()
isValid
public boolean isValid()
getLastUsedTime
public long getLastUsedTime()
getXLocation
public int getXLocation()
getYLocation
public int getYLocation()
getLocation
public java.awt.Point getLocation()
getSampleModel
public java.awt.image.SampleModel getSampleModel()
fixPixel
int fixPixel(int p)