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 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 -
Method Summary
Modifier and TypeMethodDescriptionvoidCalled 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 Details
-
CompatibilityModeLayerPainter
protected CompatibilityModeLayerPainter()
-
-
Method Details
-
paint
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
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.
-