|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.yaina.trackrenderer.TileCollection
public class TileCollection
A HashMaped collection of tiles. New tiles get created on the fly.
Constructor Summary | |
---|---|
TileCollection(int tileDimX,
int tileDimY)
Create a new hash map of tiles |
Method Summary | |
---|---|
java.util.Collection |
getCollection()
Return the actual collection of hashed rasters, which is iterable |
int |
getDimensionX()
Get horizontal size of tiles |
int |
getDimensionY()
Get vertical size of tiles |
java.awt.image.BufferedImage |
getImage(int tilex,
int tiley)
Return an ARGB image from the raster referenced by tile, suitable for further processing by AWT |
byte |
getPoint(TileCoordinates point)
Get a point (a single dot) from the image |
TileRaster |
getTile(int tilex,
int tiley)
Return a tile from the map |
void |
setPoint(TileCoordinates point,
byte colour)
Set a point (a single dot) on the image |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TileCollection(int tileDimX, int tileDimY)
tileDimX
- vertical size of a single tiletileDimY
- horizontal size of a single tileMethod Detail |
---|
public TileRaster getTile(int tilex, int tiley)
tilex
- horizontal number of the tiletiley
- vertical number of the tile
public int getDimensionX()
public int getDimensionY()
public void setPoint(TileCoordinates point, byte colour)
point
- tile and coordinates of the pointcolour
- colour index of the pointpublic byte getPoint(TileCoordinates point)
point
- tile and coordinates of the point
public java.awt.image.BufferedImage getImage(int tilex, int tiley)
tilex
- horizontal tiletiley
- vertical tile
public java.util.Collection getCollection()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |