Package org.openstreetmap.josm.gui.layer
Class MapViewPaintable.MapViewEvent
- java.lang.Object
-
- org.openstreetmap.josm.gui.layer.MapViewPaintable.MapViewEvent
-
- Enclosing interface:
- MapViewPaintable
public static class MapViewPaintable.MapViewEvent extends java.lang.Object
A event that is fired whenever the map view is attached or detached from any layer.
-
-
Field Summary
Fields Modifier and Type Field Description private MapView
mapView
private boolean
temporaryLayer
-
Constructor Summary
Constructors Constructor Description MapViewEvent(MapView mapView, boolean temporaryLayer)
Create a newMapViewPaintable.MapViewEvent
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MapView
getMapView()
Gets the map view.boolean
isTemporaryLayer()
Determines if thisMapViewPaintable
is used as a temporary layerjava.lang.String
toString()
-
-
-
Field Detail
-
temporaryLayer
private final boolean temporaryLayer
-
-
Constructor Detail
-
MapViewEvent
public MapViewEvent(MapView mapView, boolean temporaryLayer)
Create a newMapViewPaintable.MapViewEvent
- Parameters:
mapView
- The map viewtemporaryLayer
-true
if this layer is in the temporary layer list of the view.
-
-
Method Detail
-
getMapView
public MapView getMapView()
Gets the map view.- Returns:
- The map view.
-
isTemporaryLayer
public boolean isTemporaryLayer()
Determines if thisMapViewPaintable
is used as a temporary layer- Returns:
- true if this
MapViewPaintable
is used as a temporary layer.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-