Interface ImageTileSource
- All Known Implementing Classes:
ImageTileDiskCache
public interface ImageTileSource
An interface for classes which supply image tiles.
- Since:
- 3.2.0
- Author:
- Joel Uckelman
-
Method Summary
Modifier and TypeMethodDescriptionGets an image tile.getTileSize
(String name, int tileX, int tileY, double scale) Gets the size of an image tile.boolean
tileExists
(String name, int tileX, int tileY, double scale) Checks whether an image tile exists.
-
Method Details
-
getTile
Gets an image tile.- Parameters:
name
- the image nametileX
- the X coordinate of the tiletileY
- the Y coordinate of the tilescale
- the scale of the tile- Returns:
- the tile
- Throws:
ImageIOException
- if the tile can't be read
-
getTileSize
Gets the size of an image tile.- Parameters:
name
- the image nametileX
- the X coordinate of the tiletileY
- the Y coordinate of the tilescale
- the scale of the tile- Returns:
- the size of the tile
- Throws:
ImageIOException
- if the tile can't be read
-
tileExists
Checks whether an image tile exists.- Parameters:
name
- the image nametileX
- the X coordinate of the tiletileY
- the Y coordinate of the tilescale
- the scale of the tile- Throws:
ImageIOException
- if the image can't be read
-