/** * Returns the width of the current tile in pixels. * * @return The total image width in pixels. * */ public int getTileWidth() { int width = tileWidth; int maxX = getImgULX() + getImgWidth(); int x = co.x * tileWidth + tileXOffset; if (x + tileWidth >= maxX) width = maxX - x; return width; }
/** * Returns the width of the current tile in pixels. * * @return The total image width in pixels. * */ public int getTileWidth() { int width = tileWidth; int maxX = getImgULX() + getImgWidth(); int x = co.x * tileWidth + tileXOffset; if (x + tileWidth >= maxX) width = maxX - x; return width; }
/** * Returns the width of the current tile in pixels. * * @return The total image width in pixels. * */ public int getTileWidth() { int width = tileWidth; int maxX = getImgULX() + getImgWidth(); int x = co.x * tileWidth + tileXOffset; if (x + tileWidth >= maxX) width = maxX - x; return width; }