Package org.geotools.tile.util
Class AsyncTileLayer
- Object
-
- Layer
-
- DirectLayer
-
- TileLayer
-
- AsyncTileLayer
-
public class AsyncTileLayer extends TileLayer
This Layer is an attempt to speed rendering by using a CountDownLatch and threads to render each tile. The performance improvement is minimal, though.- Since:
- 12
- Author:
- Ugo Taddei
-
-
Constructor Summary
Constructors Constructor Description AsyncTileLayer(TileService service)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
localRenderTiles(Collection<Tile> tiles, Graphics2D g2d, ReferencedEnvelope viewportExtent, AffineTransform worldToImageTransform)
protected void
renderTile(Tile tile, Graphics2D g2d, double[] points)
protected void
renderTiles(Collection<Tile> tiles, Graphics2D g2d, ReferencedEnvelope viewportExtent, AffineTransform worldToImageTransform)
-
Methods inherited from class TileLayer
draw, getBounds, getCoverage, getTileImage
-
Methods inherited from class Layer
addMapLayerListener, connectDataListener, dispose, finalize, fireMapLayerListenerLayerChanged, fireMapLayerListenerLayerDeselected, fireMapLayerListenerLayerHidden, fireMapLayerListenerLayerPreDispose, fireMapLayerListenerLayerSelected, fireMapLayerListenerLayerShown, getFeatureSource, getQuery, getStyle, getTitle, getUserData, isSelected, isVisible, preDispose, removeMapLayerListener, setSelected, setTitle, setVisible, toString
-
-
-
-
Constructor Detail
-
AsyncTileLayer
public AsyncTileLayer(TileService service)
-
-
Method Detail
-
renderTiles
protected void renderTiles(Collection<Tile> tiles, Graphics2D g2d, ReferencedEnvelope viewportExtent, AffineTransform worldToImageTransform)
- Overrides:
renderTiles
in classTileLayer
-
renderTile
protected void renderTile(Tile tile, Graphics2D g2d, double[] points)
- Overrides:
renderTile
in classTileLayer
-
localRenderTiles
protected void localRenderTiles(Collection<Tile> tiles, Graphics2D g2d, ReferencedEnvelope viewportExtent, AffineTransform worldToImageTransform)
-
-