Package org.geotools.map
Class MapLayerListEvent
Object
EventObject
MapLayerListEvent
- All Implemented Interfaces:
Serializable
Event object used to report changes in the list of layers managed by a MapContext
- Author:
- wolf
- See Also:
-
Field Summary
Fields inherited from class EventObject
source
-
Constructor Summary
ConstructorsConstructorDescriptionMapLayerListEvent
(MapContent source, Layer layer, int position) Creates a new instance of MapLayerListEventMapLayerListEvent
(MapContent source, Layer layer, int fromIndex, int toIndex) Creates a new instance of MapLayerListEventMapLayerListEvent
(MapContent map, Layer element, int index, MapLayerEvent mapLayerEvent) -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the index of the first layer involved in the changegetLayer()
Return the layer involved in the change.Returns the map layer event that originated this layer list eventint
Returns the index of the last layer involved in the changeMethods inherited from class EventObject
getSource, toString
-
Constructor Details
-
MapLayerListEvent
Creates a new instance of MapLayerListEvent -
MapLayerListEvent
Creates a new instance of MapLayerListEvent- Parameters:
source
- Map issuing the eventlayer
- Layer being reported against; may be nullposition
- index modified in layer list
-
MapLayerListEvent
-
-
Method Details
-
getLayer
Return the layer involved in the change. -
getFromIndex
public int getFromIndex()Returns the index of the first layer involved in the change- Returns:
- The old index of the layer. -1 will be returned if the layer was not in the MapContext
-
getToIndex
public int getToIndex()Returns the index of the last layer involved in the change- Returns:
- The old index of the layer. -1 will be returned if the layer is no more in the MapContext
-
getMapLayerEvent
Returns the map layer event that originated this layer list event- Returns:
- Value of property mapLayerEvent.
-