|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.esri.map.LayerInfo
public class LayerInfo

Holds meta-data about sub-layers of a dynamic layer and allows users to control the visibility of those sub-layers.
| Field Summary | |
|---|---|
protected int |
_id
Index of the layer. |
protected String |
_name
Name of the layer. |
| Constructor Summary | |
|---|---|
LayerInfo(String name,
int id,
boolean isVisible)
Instantiates an object of ArcGISLayer. |
|
| Method Summary | |
|---|---|
void |
addLayer(LayerInfo layer)
Adds a child layer. |
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds a property change listener. |
protected void |
firePropertyChanged(String propertyName,
Object oldValue,
Object newValue)
Fire property changed. |
LayerInfo |
getChildLayer(int index)
Gets a child of this layer by index. |
int |
getChildLayerIndex(LayerInfo child)
Gets the index of the given child layer if it exists. |
String |
getDisplayName()
Get the layer's display name. |
int |
getId()
Gets the id. |
String |
getName()
Gets the name. |
LayerInfo |
getParent()
Gets the parent. |
HashMap<String,LayerInfo> |
getSubLayerInfos()
Gets all sub-layers of this layer. |
boolean |
isVisible()
Checks if is visible. |
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes a property change listener. |
protected void |
resumeEvents()
Resume events. |
void |
setParent(LayerInfo parent)
Sets the parent. |
void |
setVisible(boolean visible)
Sets the visible. |
protected void |
suspendEvents()
Suspend events. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected String _name
protected int _id
| Constructor Detail |
|---|
public LayerInfo(String name,
int id,
boolean isVisible)
name - the name of the layerid - the index of the layer.isVisible - the is visible| Method Detail |
|---|
public HashMap<String,LayerInfo> getSubLayerInfos()
public void addLayer(LayerInfo layer)
layer - the layer to addpublic boolean isVisible()
public void setVisible(boolean visible)
visible - true to set visiblepublic String getName()
public String getDisplayName()
public int getId()
public LayerInfo getParent()
public void setParent(LayerInfo parent)
parent - the new parentpublic LayerInfo getChildLayer(int index)
index - of child layer
public int getChildLayerIndex(LayerInfo child)
child - to return index of
public void addPropertyChangeListener(PropertyChangeListener listener)
listener - the listenerpublic void removePropertyChangeListener(PropertyChangeListener listener)
listener - the listenerprotected void suspendEvents()
protected void resumeEvents()
protected void firePropertyChanged(String propertyName,
Object oldValue,
Object newValue)
propertyName - the property nameoldValue - the old valuenewValue - the new value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||