Package org.openstreetmap.josm.gui.layer
Class LayerManager.LayerAddEvent
- java.lang.Object
-
- org.openstreetmap.josm.gui.layer.LayerManager.LayerManagerEvent
-
- org.openstreetmap.josm.gui.layer.LayerManager.LayerAddEvent
-
- Enclosing class:
- LayerManager
public static class LayerManager.LayerAddEvent extends LayerManager.LayerManagerEvent
The event that is fired whenever a layer was added.
-
-
Field Summary
Fields Modifier and Type Field Description private Layer
addedLayer
private boolean
requiresZoom
-
Constructor Summary
Constructors Constructor Description LayerAddEvent(LayerManager source, Layer addedLayer, boolean requiresZoom)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Layer
getAddedLayer()
Gets the layer that was added.boolean
isZoomRequired()
Determines if an initial zoom is required.java.lang.String
toString()
-
Methods inherited from class org.openstreetmap.josm.gui.layer.LayerManager.LayerManagerEvent
getSource
-
-
-
-
Field Detail
-
addedLayer
private final Layer addedLayer
-
requiresZoom
private final boolean requiresZoom
-
-
Constructor Detail
-
LayerAddEvent
LayerAddEvent(LayerManager source, Layer addedLayer, boolean requiresZoom)
-
-
Method Detail
-
getAddedLayer
public Layer getAddedLayer()
Gets the layer that was added.- Returns:
- The added layer.
-
isZoomRequired
public final boolean isZoomRequired()
Determines if an initial zoom is required.- Returns:
true
if a zoom is required when this layer is added- Since:
- 11774
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-