public class Tile extends Object
Represents drawing region.
Constructor and Description |
---|
Tile(int startPointX,
int startPointY,
int width,
int height)
Initializes a new instance of the
Tile class. |
Modifier and Type | Method and Description |
---|---|
int |
getEndPointX()
Returns the X coordinate of the highest right point on the drawing where the tile ends.
|
int |
getEndPointY()
Returns the Y coordinate of the highest right point on the drawing where the tile ends.
|
int |
getHeight()
The height of the tile in pixels.
|
int |
getStartPointX()
The X coordinate of the lowest left point on the drawing where the tile begins.
|
int |
getStartPointY()
The Y coordinate of the lowest left point on the drawing where the tile begins.
|
int |
getWidth()
The width of the tile in pixels.
|
public Tile(int startPointX, int startPointY, int width, int height)
Initializes a new instance of the Tile
class.
startPointX
- The X coordinate of the lowest left point on the drawing where the tile beginsstartPointY
- The Y coordinate of the lowest left point on the drawing where the tile begins.width
- The width of the tile in pixels.height
- The height of the tile in pixels.public final int getEndPointX()
Returns the X coordinate of the highest right point on the drawing where the tile ends.
public final int getEndPointY()
Returns the Y coordinate of the highest right point on the drawing where the tile ends.
public final int getHeight()
The height of the tile in pixels.
public final int getStartPointX()
The X coordinate of the lowest left point on the drawing where the tile begins.
public final int getStartPointY()
The Y coordinate of the lowest left point on the drawing where the tile begins.
public final int getWidth()
The width of the tile in pixels.