/** * Returns the total number of tiles in the image. This default * implementation assumes no tiling, so 1 is always returned. * * @return The total number of tiles in the image. * */ public int getNumTiles() { return getNumXTiles() * getNumYTiles(); }
/** * Returns the total number of tiles in the image. This default * implementation assumes no tiling, so 1 is always returned. * * @return The total number of tiles in the image. * */ public int getNumTiles() { return getNumXTiles() * getNumYTiles(); }
/** * Returns the total number of tiles in the image. This default * implementation assumes no tiling, so 1 is always returned. * * @return The total number of tiles in the image. * */ public int getNumTiles() { return getNumXTiles() * getNumYTiles(); }
/** * Returns the number of tiles in the horizontal and vertical * directions. * * @param co If not null this object is used to return the information. If * null a new one is created and returned. * * @return The number of tiles in the horizontal (Point.x) and vertical * (Point.y) directions. * */ public Point getNumTiles(Point co) { if (co != null) { co.x = getNumXTiles(); co.y = getNumYTiles(); return co; } else { return new Point(getNumXTiles(), getNumYTiles()); } }
/** * Returns the number of tiles in the horizontal and vertical * directions. * * @param co If not null this object is used to return the information. If * null a new one is created and returned. * * @return The number of tiles in the horizontal (Point.x) and vertical * (Point.y) directions. * */ public Point getNumTiles(Point co) { if (co != null) { co.x = getNumXTiles(); co.y = getNumYTiles(); return co; } else { return new Point(getNumXTiles(), getNumYTiles()); } }
/** * Returns the number of tiles in the horizontal and vertical * directions. * * @param co If not null this object is used to return the information. If * null a new one is created and returned. * * @return The number of tiles in the horizontal (Point.x) and vertical * (Point.y) directions. * */ public Point getNumTiles(Point co) { if (co != null) { co.x = getNumXTiles(); co.y = getNumYTiles(); return co; } else { return new Point(getNumXTiles(), getNumYTiles()); } }