|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.map.Layer com.esri.map.GroupLayer
public class GroupLayer
A group layer is a collection of layers extending from the Layer class. it can appear and act as a single layer and has a Layer object's properties such as visibility, extent etc.
If the group layer is the map's first layer, the map will be initialized by the first layer of group layer.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.esri.map.Layer |
---|
Layer.LayerStatus |
Field Summary | |
---|---|
protected List<Layer> |
innerLayers
|
Fields inherited from class com.esri.map.Layer |
---|
_credentials, _progress, _resolutionList, serviceInfo |
Constructor Summary | |
---|---|
GroupLayer()
Creates a GroupLayer |
Method Summary | |
---|---|
int |
add(Layer layer)
Adds a layer to the current layer group by appending it to the bottom. |
void |
addAll(Collection<? extends Layer> layers)
Adds an array of layers to the current layer group. |
boolean |
addLayerAt(Layer layer,
int index)
Inserts a layer object at certain position in the group layer. |
void |
clear()
The sublayers are removed. |
boolean |
contains(Layer layer)
|
protected void |
createNativeLayer()
|
protected boolean |
doesExist(com.esri.map.GroupLayerBase grouplayer,
Layer checklayer)
|
protected void |
finalize()
|
Layer |
get(int index)
Returns the layer for the given index position. |
SpatialReference |
getDefaultSpatialReference()
Gets the defaultSpatialReference of the Layer. |
Envelope |
getFullExtent()
Returns the full extent of the layer. |
long |
getID()
Return the Layer runtime ID which is a long integer. |
Layer |
getLayer(String layername)
Returns the layer for the given layer name. |
Layer[] |
getLayers()
Returns the direct sublayers in an array. |
LayerLegendInfoCollection |
getLegend()
|
double |
getMaxScale()
Gets the maximum scale at which this layer will be displayed. |
double |
getMinScale()
Gets the minimum scale at which this layer will be displayed. |
protected void |
graphicsLayerAddRequest(String layerName,
int index)
|
protected void |
init(boolean isVisible,
int[] visibleLayers,
String title,
float opacity)
This method is called only when composing a Map from a Web Map. |
protected void |
initializeNativeLayer()
|
protected int |
internalAdd(Layer layer)
|
protected boolean |
internalAddLayerAt(Layer layer,
int index)
|
protected void |
internalInit()
|
boolean |
isEmpty()
|
void |
recycle()
Releases resources referenced by the Layer so that they can be recycled. |
protected void |
recycleLayers()
|
void |
remove(int index)
Removes the layer in the given index. |
void |
remove(String layerName)
Remove a layer by name. |
protected void |
setDefaultSpatialReference(SpatialReference defaultSpatialReference)
Sets the defaultSpatialReference of the Layer. |
protected void |
setMap(JMap parent)
Every layer is provided a reference to the parent JComponent that contains that layer. |
void |
setOpacity(float opacity)
Sets the opacity of the GroupLayer, it will change all opacity of it sublayers. |
int |
size()
Returns the size of the group layer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final List<Layer> innerLayers
Constructor Detail |
---|
public GroupLayer()
Method Detail |
---|
public int add(Layer layer)
layer
-
public void addAll(Collection<? extends Layer> layers)
layers
- an array of layerspublic boolean addLayerAt(Layer layer, int index)
layer
- a Layer object to be added.index
- an integer of position.
public void clear()
public void remove(int index)
index
- an integer should be less than current group layer size.public void remove(String layerName)
layerName
- a layer name.public Layer[] getLayers()
public Layer getLayer(String layername)
layername
- a layer name string
public Layer get(int index)
index
- an integer for layer position.
public boolean isEmpty()
public boolean contains(Layer layer)
public int size()
public void setOpacity(float opacity)
setOpacity
in class Layer
opacity
- the opacity to set.public Envelope getFullExtent()
getFullExtent
in class Layer
public SpatialReference getDefaultSpatialReference()
getDefaultSpatialReference
in class Layer
public long getID()
public double getMinScale()
Layer
getMinScale
in class Layer
public double getMaxScale()
Layer
getMaxScale
in class Layer
public LayerLegendInfoCollection getLegend()
getLegend
in class Layer
protected void internalInit()
internalInit
in class Layer
public void recycle()
Layer
recycle
in class Layer
protected void setDefaultSpatialReference(SpatialReference defaultSpatialReference)
setDefaultSpatialReference
in class Layer
defaultSpatialReference
- The defaultSpatialReference to set.protected int internalAdd(Layer layer)
layer
-
protected boolean internalAddLayerAt(Layer layer, int index)
layer
- index
-
protected boolean doesExist(com.esri.map.GroupLayerBase grouplayer, Layer checklayer)
protected void recycleLayers()
protected void graphicsLayerAddRequest(String layerName, int index)
protected void finalize() throws Throwable
finalize
in class Layer
Throwable
protected void init(boolean isVisible, int[] visibleLayers, String title, float opacity)
Layer
init
in class Layer
protected void createNativeLayer()
createNativeLayer
in class Layer
protected void initializeNativeLayer()
initializeNativeLayer
in class Layer
protected void setMap(JMap parent)
Layer
setMap
in class Layer
parent
- the new parent component
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |