public class MapLayerListEvent extends EventObject
source| Constructor and Description |
|---|
MapLayerListEvent(MapContent source,
Layer layer,
int position)
Creates a new instance of MapLayerListEvent
|
MapLayerListEvent(MapContent source,
Layer layer,
int fromIndex,
int toIndex)
Creates a new instance of MapLayerListEvent
|
MapLayerListEvent(MapContent map,
Layer element,
int index,
MapLayerEvent mapLayerEvent) |
| Modifier and Type | Method and Description |
|---|---|
int |
getFromIndex()
Returns the index of the first layer involved in the change
|
Layer |
getLayer()
Return the layer involved in the change.
|
MapLayerEvent |
getMapLayerEvent()
Returns the map layer event that originated this layer list event
|
int |
getToIndex()
Returns the index of the last layer involved in the change
|
getSource, toStringpublic MapLayerListEvent(MapContent source, Layer layer, int fromIndex, int toIndex)
public MapLayerListEvent(MapContent source, Layer layer, int position)
source - Map issuing the eventlayer - Layer being reported against; may be nullposition - index modified in layer listpublic MapLayerListEvent(MapContent map, Layer element, int index, MapLayerEvent mapLayerEvent)
public Layer getLayer()
public int getFromIndex()
public int getToIndex()
public MapLayerEvent getMapLayerEvent()
Copyright © 1996–2021 Geotools. All rights reserved.