class TileCursor<T extends Tile> extends java.lang.Object implements java.util.Iterator
A TileCursor provides an easy way to iterate through Tiles.
Constructor and description |
---|
TileCursor
(TileLayer layer, long z) Create a TileCursor that iterates over every Tile in a given zoom level |
TileCursor
(TileLayer layer, long z, long minX, long minY, long maxX, long maxY) Create TileCursor that iterates over every Tile in a given zoom level between the given columns and rows |
TileCursor
(TileLayer layer, Bounds b, long z) Create TileCursor that iterates over every Tile in a given zoom level and within the given Bounds |
TileCursor
(TileLayer layer, Bounds b, double resX, double resY) Create TileCursor that iterates over every Tile within the given Bounds and for the x and y resolutions |
TileCursor
(TileLayer layer, Bounds b, int w, int h) Create TileCursor that iterates over every Tile within the Bounds for the image size |
TileCursor
(TileLayer layer, java.awt.Point p, long z, int w, int h) Create a TileCursor for all Tiles centered on a Point for a given zoom level that fill an image of a certain width and height |
Type Params | Return Type | Name and description |
---|---|---|
|
Bounds |
getBounds() Get the Bounds of tiles in this TileCursor |
|
boolean |
getEmpty() Whether the TileCursor is empty or not @return |
|
long |
getHeight() Get the height or number of rows |
|
long |
getMaxX() Get the max x or column |
|
long |
getMaxY() Get the max y or row |
|
long |
getMinX() Get the min x or column |
|
long |
getMinY() Get the min y or row |
|
long |
getSize() Get the number of tiles |
|
TileLayer |
getTileLayer() Get the TileLayer |
|
long |
getWidth() Get the width or number of columns |
|
long |
getZ() Get the zoom level |
|
boolean |
hasNext() Whether there are Tiles remaining |
|
Tile |
next() Get the next Tile |
|
void |
remove() This method is unsupported and throws an UnsupportedOperationException |
|
void |
reset() Reset and read the Tiles again. |
|
java.lang.String |
toString() |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Create a TileCursor that iterates over every Tile in a given zoom level
layer
- The TileLayerz
- The zoom levelCreate TileCursor that iterates over every Tile in a given zoom level between the given columns and rows
layer
- The TileLayerz
- The zoom levelminX
- The min x or columnminY
- The min y or rowmaxX
- The max x or columnmaxY
- The max y or rowCreate TileCursor that iterates over every Tile in a given zoom level and within the given Bounds
layer
- The TileLayerb
- The Boundsz
- The zoom levelCreate TileCursor that iterates over every Tile within the given Bounds and for the x and y resolutions
layer
- The TileLayerb
- The BoundsresX
- The x resolutionresY
- The y resolutionCreate TileCursor that iterates over every Tile within the Bounds for the image size
layer
- The TileLayerb
- The Boundsw
- The image widthh
- The image heightCreate a TileCursor for all Tiles centered on a Point for a given zoom level that fill an image of a certain width and height
layer
- The TileLayerp
- The Point (in the TileLayer's Projection)z
- The zoom levelw
- The image widthh
- The image heightGet the Bounds of tiles in this TileCursor
Whether the TileCursor is empty or not @return
Get the height or number of rows
Get the max x or column
Get the max y or row
Get the min x or column
Get the min y or row
Get the number of tiles
Get the TileLayer
Get the width or number of columns
Get the zoom level
Whether there are Tiles remaining
Get the next Tile
This method is unsupported and throws an UnsupportedOperationException
Reset and read the Tiles again.