public static interface MapViewPaintable.LayerPainter
MapViewPaintable
to the given map view.Modifier and Type | Method and 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.
|
void paint(MapViewGraphics graphics)
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.
graphics
- The graphics object of the map view you should use.
It provides you with a content pane, the bounds and the view state.void detachFromMapView(MapViewPaintable.MapViewEvent event)
This method is called once on the painter returned by AbstractMapViewPaintable.attachToMapView(org.openstreetmap.josm.gui.layer.MapViewPaintable.MapViewEvent)
event
- The event.