public class TrimmedTile extends Tile
| Constructor and Description |
|---|
TrimmedTile() |
| Modifier and Type | Method and Description |
|---|---|
int |
getHeight()
Returns the height of this tile.
|
void |
getTrimmedBounds(Rectangle tbounds)
Fills in the bounds of the trimmed image within the coordinate system defined by the
complete virtual tile.
|
int |
getWidth()
Returns the width of this tile.
|
boolean |
hitTest(int x,
int y)
Returns true if the specified coordinates within this tile contains
a non-transparent pixel.
|
void |
paint(Graphics2D gfx,
int x,
int y)
Render the tile image at the specified position in the given
graphics context.
|
void |
setTrimmedBounds(Rectangle tbounds)
Sets the trimmed bounds of this tile.
|
getEstimatedMemoryUsage, setImage, toStringpublic void setTrimmedBounds(Rectangle tbounds)
tbounds - contains the width and height of the untrimmed tile, but the x and y
offset of the trimmed tile image in the original untrimmed tile image.public int getWidth()
Tilepublic int getHeight()
Tilepublic void paint(Graphics2D gfx, int x, int y)
Tilepublic void getTrimmedBounds(Rectangle tbounds)
Copyright © 2015. All rights reserved.