protected class AbstractMapViewPaintable.CompatibilityModeLayerPainter extends java.lang.Object implements MapViewPaintable.LayerPainter
You should not use it. Write your own implementation and put your paint code into that class.
It propagates all calls to the
MapViewPaintable.paint(java.awt.Graphics2D, org.openstreetmap.josm.gui.MapView, org.openstreetmap.josm.data.Bounds)
method.
Modifier | Constructor and Description |
---|---|
protected |
CompatibilityModeLayerPainter() |
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.
|
protected CompatibilityModeLayerPainter()
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.LayerPainter
graphics
- 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.LayerPainter
event
- The event.