|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.yaina.trackrenderer.TileCollection
de.yaina.trackrenderer.TileCanvas
public class TileCanvas
A canvas of a tiled image, takes care of coordinates exceeding the limits of a tile and adjusts the values accordingly.
Constructor Summary | |
---|---|
TileCanvas(int tileDimX,
int tileDimY)
|
Method Summary | |
---|---|
byte |
getPoint(TileCoordinates point)
Get a point (a single dot) from the image |
void |
setPoint(TileCoordinates point,
byte colour)
Set a point (a single dot) on the image |
Methods inherited from class de.yaina.trackrenderer.TileCollection |
---|
getCollection, getDimensionX, getDimensionY, getImage, getTile |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TileCanvas(int tileDimX, int tileDimY)
tileDimX
- horizontal size of a tiletileDimY
- vertical size of a tileMethod Detail |
---|
public void setPoint(TileCoordinates point, byte colour)
TileCollection
setPoint
in class TileCollection
point
- tile and coordinates of the pointcolour
- colour index of the pointpublic byte getPoint(TileCoordinates point)
TileCollection
getPoint
in class TileCollection
point
- tile and coordinates of the point
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |