Package org.openstreetmap.josm.gui.layer
Class AbstractMapViewPaintable.CompatibilityModeLayerPainter
- java.lang.Object
-
- org.openstreetmap.josm.gui.layer.AbstractMapViewPaintable.CompatibilityModeLayerPainter
-
- All Implemented Interfaces:
MapViewPaintable.LayerPainter
- Direct Known Subclasses:
AbstractTileSourceLayer.TileSourcePainter
- Enclosing class:
- AbstractMapViewPaintable
protected class AbstractMapViewPaintable.CompatibilityModeLayerPainter extends java.lang.Object implements MapViewPaintable.LayerPainter
This is the default implementation of the layer painter.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.- Since:
- 10458
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedCompatibilityModeLayerPainter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddetachFromMapView(MapViewPaintable.MapViewEvent event)Called when the layer is removed from the map view and this painter is not used any more.voidpaint(MapViewGraphics graphics)Paints the given layer.
-
-
-
Constructor Detail
-
CompatibilityModeLayerPainter
protected CompatibilityModeLayerPainter()
-
-
Method Detail
-
paint
public void paint(MapViewGraphics graphics)
Description copied from interface:MapViewPaintable.LayerPainterPaints 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.LayerPainterfor different map views.- Specified by:
paintin interfaceMapViewPaintable.LayerPainter- 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
public void detachFromMapView(MapViewPaintable.MapViewEvent event)
Description copied from interface:MapViewPaintable.LayerPainterCalled 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)- Specified by:
detachFromMapViewin interfaceMapViewPaintable.LayerPainter- Parameters:
event- The event.
-
-