public class ImageTiler
extends java.lang.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() |
java.awt.Color |
getTransparencyColor() |
void |
setTileHeight(int tileHeight) |
void |
setTileWidth(int tileWidth) |
void |
setTransparencyColor(java.awt.Color transparencyColor) |
void |
tileImage(java.awt.image.BufferedImage image,
java.util.List<? extends LatLon> corners,
ImageTiler.ImageTilerListener listener) |
void |
tileImage(java.awt.image.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 java.awt.Color getTransparencyColor()
public void setTileHeight(int tileHeight)
public void setTileWidth(int tileWidth)
public void setTransparencyColor(java.awt.Color transparencyColor)
public void tileImage(java.awt.image.BufferedImage image,
java.util.List<? extends LatLon> corners,
ImageTiler.ImageTilerListener listener)
public void tileImage(java.awt.image.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