Package org.geotools.tile.util
Class TileLayer
Object
Layer
DirectLayer
TileLayer
- Direct Known Subclasses:
AsyncTileLayer
TileLayer is a direct map layer that does the mosaicking work for tiles of a given tile service.
- Since:
- 12
- Author:
- Ugo Taddei
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddraw(Graphics2D graphics, MapContent map, MapViewport theViewport) Draw layer contents onto screenThe bounds of the Layer content (if known).protected BufferedImagegetTileImage(Tile tile) protected voidrenderTile(Tile tile, Graphics2D g2d, double[] points) protected voidrenderTiles(Collection<Tile> tiles, Graphics2D g2d, ReferencedEnvelope viewportExtent, AffineTransform worldToImageTransform) 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 Details
-
TileLayer
-
-
Method Details
-
getCoverage
-
getBounds
Description copied from class:LayerThe bounds of the Layer content (if known). The bounds can be used to determine if any of the layers content is "on screen" when rendering the map; however often it is expensive to calculate a layers bounds up front so we are allowing this value to be optional.The returned bounds are a ReferencedEnvelope using the same CoordinateReferenceSystem as the layers contents.
-
draw
Description copied from class:DirectLayerDraw layer contents onto screen- Specified by:
drawin classDirectLayer- Parameters:
graphics- Graphics to draw intomap- Map being drawn; check map bounds and crstheViewport- Area to draw the map into; including screen area
-
renderTiles
protected void renderTiles(Collection<Tile> tiles, Graphics2D g2d, ReferencedEnvelope viewportExtent, AffineTransform worldToImageTransform) -
renderTile
-
getTileImage
-