Tile

Inheritance: java.lang.Object

public class Tile

Represents drawing region.

Constructors

Constructor Description
Tile(int startPointX, int startPointY, int width, int height) Initializes a new instance of the Tile class.

Methods

Method Description
getStartPointX() The X coordinate of the lowest left point on the drawing where the tile begins.
getStartPointY() The Y coordinate of the lowest left point on the drawing where the tile begins.
getWidth() The width of the tile in pixels.
getHeight() The height of the tile in pixels.
getEndPointX() Returns the X coordinate of the highest right point on the drawing where the tile ends.
getEndPointY() Returns the Y coordinate of the highest right point on the drawing where the tile ends.

Tile(int startPointX, int startPointY, int width, int height)

public Tile(int startPointX, int startPointY, int width, int height)

Initializes a new instance of the Tile class.

Parameters:

Parameter Type Description
startPointX int The X coordinate of the lowest left point on the drawing where the tile begins
startPointY int The Y coordinate of the lowest left point on the drawing where the tile begins.
width int The width of the tile in pixels.
height int The height of the tile in pixels.

getStartPointX()

public final int getStartPointX()

The X coordinate of the lowest left point on the drawing where the tile begins.

Returns: int

getStartPointY()

public final int getStartPointY()

The Y coordinate of the lowest left point on the drawing where the tile begins.

Returns: int

getWidth()

public final int getWidth()

The width of the tile in pixels.

Returns: int

getHeight()

public final int getHeight()

The height of the tile in pixels.

Returns: int

getEndPointX()

public final int getEndPointX()

Returns the X coordinate of the highest right point on the drawing where the tile ends.

Returns: int

getEndPointY()

public final int getEndPointY()

Returns the Y coordinate of the highest right point on the drawing where the tile ends.

Returns: int