|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.aims.mtier.model.map.Layers
public class Layers
The Layers object is a collection of individual layers associated with the Map objects service. This class supports methods for adding, removing, retrieving, and manipulating layer objects in the collection.
Constructor Summary | |
---|---|
Layers()
Constructs an instance of the Layers object. |
Method Summary | |
---|---|
boolean |
add(Object layer)
Adds the given Layer object to the Layers collection. |
boolean |
clear()
Clears all Layers from the Layers collection. |
int |
getCount()
Returns the count of all Layer objects in this Layers collection. |
ExtractOutput |
getExtractOutput()
Returns the ExtractOutput object containing information on the extraction. |
Vector |
getLayersCollection()
Returns the collection of layers. |
boolean |
insert(Object layer,
int index)
Inserts a Layer at specified location in the Layers collection. |
boolean |
isDynamicFirst()
Returns 'True' if the setDynamicFirst method is set to 'True'. |
boolean |
isGeometry()
Returns 'True' if geometry has been set. |
boolean |
isNodeDefault()
Returns 'True' if the setNodeDefault method is set to 'True'. |
boolean |
isOrder()
Returns 'True' if the setOrder method is set to 'True'. |
Layer |
item(int index)
Returns a Layer at given index from the Layers collection. |
boolean |
moveTo(int fromIndex,
int toIndex)
Moves the specified Layer in this Layers collection to another location in the collection. |
boolean |
moveToBottom(int index)
Moves the specified Layer in this Layers collection to the end of collection. |
boolean |
moveToTop(int index)
Moves the specified Layer in this Layers collection to be the first item in the collection. |
boolean |
remove(int index)
Removes a Layer at given index from the Layers collection. |
void |
setDynamicFirst(boolean value)
When set to 'True', draws all dynamic layers before any layers defined in the service. |
void |
setGeometry(boolean value)
Enables feature geometry information to be returned from the Spatial Server. |
void |
setNodeDefault(boolean value)
When set to 'True', only Map service and dynamic layers in the layerlist are displayed on the Map. |
void |
setOrder(boolean value)
When set to 'True', draws all the Layers in order of their IDs. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Layers()
Example:
Layers layers = new Layers();
Method Detail |
---|
public boolean add(Object layer)
layers.add(acetateLayer);
layer
- the layer object to be added.item(int)
public Layer item(int index)
String name = layers.item(0).getName();
index
- the index value in the layers collection.
add(java.lang.Object)
public boolean insert(Object layer, int index)
layers.insert(featureLayer, 2);
layer
- the layer object.index
- the collection location.remove(int)
,
clear()
public boolean clear()
layers.clear();
remove(int)
,
add(java.lang.Object)
public boolean remove(int index)
layers.remove(2);
index
- the index of the Layer to be removed.
clear()
,
add(java.lang.Object)
public int getCount()
int count = layers.getCount();
public boolean moveTo(int fromIndex, int toIndex)
layers.moveTo(0, 3);
fromIndex
- the from location of the object to move.toIndex
- the location where to place the from location object.moveToBottom(int)
,
moveToTop(int)
,
insert(java.lang.Object, int)
public boolean moveToBottom(int index)
layers.moveToBottom(2);
index
- the location of the Layer to be moved.moveTo(int, int)
,
moveToTop(int)
,
insert(java.lang.Object, int)
public boolean moveToTop(int index)
layers.moveToTop(3);
index
- the location of the Layer to be moved.moveToBottom(int)
,
moveTo(int, int)
,
insert(java.lang.Object, int)
public ExtractOutput getExtractOutput()
ExtractOutput
object containing information on the extraction.
Example:
String url = layers.getExtractOutput().getURL();
public void setDynamicFirst(boolean value)
layers.setDynamicFirst(true);
value
- the dynamicfirst value.isDynamicFirst()
public boolean isDynamicFirst()
setDynamicFirst
method is set to 'True'.
Example: if(layers.isDynamicFirst() == true){ layers.setDynamicFirst(false); }
setDynamicFirst(boolean)
public void setOrder(boolean value)
layers.setOrder(true);
value
- the order value.isOrder()
public boolean isOrder()
setOrder
method is set to 'True'. Example:
if(layers.isOrder() == true){ layers.setOrder(false); }
setOrder(boolean)
public void setNodeDefault(boolean value)
layers.setNodeDefault(true);
value
- the nodedefault value.isNodeDefault()
public boolean isNodeDefault()
setNodeDefault
method is set to 'True'.
Example: if(layers.isNodeDefault() == true){ layers.setNodeDefault(false); }
setNodeDefault(boolean)
public void setGeometry(boolean value)
layers.setGeometry(true);
value
- the boolean value.isGeometry()
public boolean isGeometry()
if(layers.isGeometry() == true){layers.setGeometry(false); }
setGeometry(boolean)
public Vector getLayersCollection()
Vector myLayers = layers.getLayersCollection();
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |