public class ImageTiler extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ImageTiler.ImageTilerListener |
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_IMAGE_TILE_SIZE |
Constructor and Description |
---|
ImageTiler() |
Modifier and Type | Method and Description |
---|---|
int |
getTileHeight() |
int |
getTileWidth() |
Color |
getTransparencyColor() |
void |
setTileHeight(int tileHeight) |
void |
setTileWidth(int tileWidth) |
void |
setTransparencyColor(Color transparencyColor) |
void |
tileImage(BufferedImage image,
List<? extends LatLon> corners,
ImageTiler.ImageTilerListener listener) |
void |
tileImage(BufferedImage baseImage,
Sector baseSector,
ImageTiler.ImageTilerListener listener)
Performs a subdivision according to the current parameters and assuming that the image corresponds with a
Sector rather than a quadrilateral or other shape. |
public int getTileHeight()
public int getTileWidth()
public Color getTransparencyColor()
public void setTileHeight(int tileHeight)
public void setTileWidth(int tileWidth)
public void setTransparencyColor(Color transparencyColor)
public void tileImage(BufferedImage image, List<? extends LatLon> corners, ImageTiler.ImageTilerListener listener)
public void tileImage(BufferedImage baseImage, Sector baseSector, ImageTiler.ImageTilerListener listener)
Sector
rather than a quadrilateral or other shape. Conveys each tile created to the caller via a listener
callback.baseImage
- the image to tile.baseSector
- the sector defining the geographic extent of the base image.listener
- the listener to invoke when each new tile is created.ImageTiler.ImageTilerListener