public class TileLayer extends DirectLayer
Constructor and Description |
---|
TileLayer(TileService service) |
Modifier and Type | Method and Description |
---|---|
void |
draw(Graphics2D graphics,
MapContent map,
MapViewport theViewport)
Draw layer contents onto screen
|
ReferencedEnvelope |
getBounds()
The bounds of the Layer content (if known).
|
GridCoverage2D |
getCoverage() |
protected BufferedImage |
getTileImage(Tile tile) |
protected void |
renderTile(Tile tile,
Graphics2D g2d,
double[] points) |
protected void |
renderTiles(Collection<Tile> tiles,
Graphics2D g2d,
ReferencedEnvelope viewportExtent,
AffineTransform worldToImageTransform) |
addMapLayerListener, connectDataListener, dispose, finalize, fireMapLayerListenerLayerChanged, fireMapLayerListenerLayerDeselected, fireMapLayerListenerLayerHidden, fireMapLayerListenerLayerPreDispose, fireMapLayerListenerLayerSelected, fireMapLayerListenerLayerShown, getFeatureSource, getQuery, getStyle, getTitle, getUserData, isSelected, isVisible, preDispose, removeMapLayerListener, setSelected, setTitle, setVisible, toString
public TileLayer(TileService service)
public GridCoverage2D getCoverage()
public ReferencedEnvelope getBounds()
Layer
The returned bounds are a ReferencedEnvelope using the same CoordinateReferenceSystem as the layers contents.
public void draw(Graphics2D graphics, MapContent map, MapViewport theViewport)
DirectLayer
draw
in class DirectLayer
graphics
- Graphics to draw intomap
- Map being drawn; check map bounds and crstheViewport
- Area to draw the map into; including screen areaprotected void renderTiles(Collection<Tile> tiles, Graphics2D g2d, ReferencedEnvelope viewportExtent, AffineTransform worldToImageTransform)
protected void renderTile(Tile tile, Graphics2D g2d, double[] points)
protected BufferedImage getTileImage(Tile tile)
Copyright © 1996–2019 Geotools. All rights reserved.