Package org.openstreetmap.josm.gui.layer
Interface MapViewPaintable.LayerPainter
-
- All Known Implementing Classes:
AbstractMapViewPaintable.CompatibilityModeLayerPainter
,AbstractTileSourceLayer.TileSourcePainter
,GpxDrawHelper
,MapView.WarningLayerPainter
- Enclosing interface:
- MapViewPaintable
public static interface MapViewPaintable.LayerPainter
Gets a new LayerPainter that paints thisMapViewPaintable
to the given map view.- Since:
- 10458
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
detachFromMapView(MapViewPaintable.MapViewEvent event)
Called when the layer is removed from the map view and this painter is not used any more.void
paint(MapViewGraphics graphics)
Paints the given layer.
-
-
-
Method Detail
-
paint
void paint(MapViewGraphics graphics)
Paints the given layer.This can be called in any thread at any time. You will not receive parallel calls for the same map view but you can receive parallel calls if you use the same
MapViewPaintable.LayerPainter
for different map views.- Parameters:
graphics
- The graphics object of the map view you should use. It provides you with a content pane, the bounds and the view state.
-
detachFromMapView
void detachFromMapView(MapViewPaintable.MapViewEvent event)
Called when the layer is removed from the map view and this painter is not used any more.This method is called once on the painter returned by
AbstractMapViewPaintable.attachToMapView(org.openstreetmap.josm.gui.layer.MapViewPaintable.MapViewEvent)
- Parameters:
event
- The event.
-
-