private static class MapView.WarningLayerPainter extends java.lang.Object implements MapViewPaintable.LayerPainter
| Modifier and Type | Field and Description |
|---|---|
private Layer |
layer |
(package private) boolean |
warningPrinted |
| Constructor and Description |
|---|
WarningLayerPainter(Layer layer) |
| 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.
|
boolean warningPrinted
WarningLayerPainter(Layer layer)
public void paint(MapViewGraphics graphics)
MapViewPaintable.LayerPainter
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.
paint in interface MapViewPaintable.LayerPaintergraphics - The graphics object of the map view you should use.
It provides you with a content pane, the bounds and the view state.public void detachFromMapView(MapViewPaintable.MapViewEvent event)
MapViewPaintable.LayerPainter
This method is called once on the painter returned by AbstractMapViewPaintable.attachToMapView(org.openstreetmap.josm.gui.layer.MapViewPaintable.MapViewEvent)
detachFromMapView in interface MapViewPaintable.LayerPainterevent - The event.