|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection
java.util.AbstractList
java.util.Vector
com.moximedia.aims.AimsLayers
The AimsLayers class is an ordered collection of AimsLayer objects.
| Field Summary | |
protected static int |
NEXT_LAYER_ID
|
| Fields inherited from class java.util.Vector |
capacityIncrement, elementCount, elementData |
| Fields inherited from class java.util.AbstractList |
modCount |
| Constructor Summary | |
AimsLayers()
Creates a new AimsLayers object. |
|
AimsLayers(AimsMap map)
Creates a new AimsLayers object with an associated map. |
|
| Method Summary | |
void |
addBufferLayer(AimsFeatureLayer layer,
AimsBuffer buffer,
AimsRenderer renderer)
|
void |
addHighlightLayer(AimsFeatureLayer layer)
Adds a highlight layer so that it is positioned directly above the base layer in the layers list. |
boolean |
addLayer(AimsLayer layer)
Adds a Layer to the end of the collection |
void |
addLayerManagerLayer(AimsLayer lyr)
Adds the specified layer to the layers list in a position determined by the layer type. |
void |
adjustScaleFactors(double multiplier)
Adjusts the scale factors for this layer. |
void |
adjustScaleFactors(java.lang.String inUnits,
java.lang.String outUnits)
Adjusts the scale factors for this layer. |
boolean |
canFindByAttribute()
Gets a boolean value indicating whether the layers list contains any layers that can be queried using the find location by attribute tool. |
void |
clear()
Clears the Layers (removes all layers from the collection). |
java.lang.Object |
clone()
Creates a copy of this object. |
boolean |
extract()
Performs an extract of all visible extractable layers in the visible area. |
AimsLayers |
getAcetateLayers()
Gets the AimsAcetate Layers in a AimsLayers object. |
AimsLayer |
getActiveIdentifyLayer()
Gets the AimsFeatureLayer that is the active identify layer. |
AimsLayer |
getActiveIdentifyLayer(AimsPoint pt)
Gets the AimsFeatureLayer that is the active identify layer, using a point to locate the active layer in a group, if applicable. |
AimsLayerGroup |
getActiveIdentifyLayerGroup()
Gets the AimsLayerGroup that is the active identify layer. |
AimsFeatureLayer |
getActiveSelectLayer()
Gets the AimsFeatureLayer that is the active select layer. |
AimsFeatureLayer |
getActiveSelectLayer(AimsPoint pt)
Gets the AimsFeatureLayer that is the active select layer, using a point to locate the active select in a group, if applicable. |
AimsLayerGroup |
getActiveSelectLayerGroup()
Gets the AimsLayerGroup that is the active select layer. |
AimsRecordset |
getBufferLayerRecordset(AimsFeatureLayer layer,
AimsBuffer buffer)
|
AimsLayers |
getCloneLayers()
|
AimsFeatureLayer |
getCopyLayer()
Gets the current copy layer, or null if no copy layer is set. |
AimsLayers |
getDynamicLayers()
|
AimsFeatureLayer |
getEditLayer()
Gets the current edit layer, or null if no edit layer is set. |
AimsLayers |
getEditLayers()
Gets the edit layers in a AimsLayers object. |
java.lang.String |
getExtractFile()
Gets the path to the extract file created by the extract() method. |
AimsLayers |
getExtractLayers()
Gets the extract Layers in a AimsLayers object. |
java.lang.String |
getExtractUrl()
Gets the url of the extract file created by the extract() method. |
AimsLayers |
getFeatureLayers()
Gets the AimsFeature Layers in a AimsLayers object. |
AimsLayers |
getFindByAttributeLayers()
Gets the layers that support the find by attribute routine. |
AimsLayer |
getLayer(int index)
get Layer at the specified index position |
AimsLayer |
getLayer(java.lang.String layerNameAliasOrId)
Returns a layer matching a name or alias or ID, or null if not found. |
AimsLayer |
getLayerByObjectId(int objectId)
|
AimsLayers |
getNonServiceLayers()
Gets the layers added by the user in a AimsLayers object. |
AimsLayers |
getSelectByAttributeLayers()
Gets the layers that support the select by attribute routine. |
AimsLayers |
getServiceLayers()
Gets the service layers in a AimsLayers object. |
AimsFeatureLayer |
getSnapLayer()
Gets the current snap layer, or null if no snap layer is set. |
AimsLayers |
getWmsLayers()
Gets the WMS Layers in a AimsLayers object. |
boolean |
hasClonedLayers()
|
boolean |
hasDynamicLayers()
|
boolean |
hasVisibleWmsLayers()
|
boolean |
hasWmsLayers()
|
boolean |
insertLayer(AimsLayer layer,
int index)
Insert a layer at a specified position |
void |
moveTo(AimsLayer layer,
int toIndex)
Moves a layer to the specified position in the layers list. |
void |
moveTo(int fromIndex,
int toIndex)
Moves a layer to a new position. |
void |
moveToBottom(AimsLayer layer)
Moves a layer to a the bottom of the layers list. |
void |
moveToBottom(int layerIndex)
Moves a layer to a the bottom of the layers list. |
void |
moveToBottom(java.lang.String layerNameAliasOrId)
Moves a layer to a the bottom of the layers list. |
void |
moveToTop(AimsLayer layer)
Moves a layer to a the top of the layers list. |
void |
moveToTop(int layerIndex)
Moves a layer to a the top of the layers list. |
void |
moveToTop(java.lang.String layerNameAliasOrId)
Moves a layer to a the top of the layers list. |
void |
removeBufferLayers()
Removes the specified highlight layers from the layers object. |
void |
removeHighlightLayer(java.lang.String layerId)
Removes the specified highlight layers from the layers object. |
void |
removeHighlightLayers()
Removes all highlight layers from the layers object. |
boolean |
removeLayer(int index)
remove the layer at specified index |
boolean |
removeLayer(java.lang.String layerNameOrId)
remove the layer with the specified name |
void |
setActiveIdentifyLayer(AimsLayer layer)
Sets the AimsFeatureLayer that is the active identify layer. |
void |
setActiveIdentifyLayerGroup(AimsLayerGroup layerGroup)
Sets the AimsLayerGroup that is the active identify layer. |
void |
setActiveSelectLayer(AimsFeatureLayer layer)
Sets the AimsFeatureLayer that is the active select layer. |
void |
setActiveSelectLayerGroup(AimsLayerGroup layerGroup)
Sets the AimsLayerGroup that is the active select layer. |
void |
setAxlAttribute(java.lang.String tag,
java.lang.String name,
java.lang.String value)
Sets one of the attributes of this object using a string value. |
void |
setCopyLayer(AimsFeatureLayer layer)
Sets the current copy layer. |
void |
setEditLayer(AimsFeatureLayer layer)
Sets the current edit layer. |
void |
setModified(boolean isModified)
Sets the modification flags for all service layers to the specified value. |
void |
setSnapLayer(AimsFeatureLayer layer)
Sets the current snap layer. |
void |
setVisible(java.lang.String layerNameAliasOrId,
boolean isVisible)
Set the visibility of a named layer |
java.lang.String |
toAxlString(java.lang.String requestType)
Returns the AXL string to refresh this object. |
java.lang.String |
toString()
Returns a text representation of of this object. |
| Methods inherited from class java.util.Vector |
add, add, addAll, addAll, addElement, capacity, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, trimToSize |
| Methods inherited from class java.util.AbstractList |
iterator, listIterator, listIterator |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
iterator, listIterator, listIterator |
| Field Detail |
protected static int NEXT_LAYER_ID
| Constructor Detail |
public AimsLayers()
public AimsLayers(AimsMap map)
map - The map containing the layers.| Method Detail |
public java.lang.String getExtractUrl()
public java.lang.String getExtractFile()
public boolean extract()
public java.lang.Object clone()
public AimsFeatureLayer getCopyLayer()
public void setCopyLayer(AimsFeatureLayer layer)
layer - The copy layer to set.public AimsFeatureLayer getEditLayer()
public void setEditLayer(AimsFeatureLayer layer)
layer - The edit layer to set.public AimsFeatureLayer getSnapLayer()
public void setSnapLayer(AimsFeatureLayer layer)
layer - The snap layer to set.
public void moveTo(AimsLayer layer,
int toIndex)
layer - The layer to move.toIndex - The location to move to.public void moveToBottom(AimsLayer layer)
layer - The layer to move.public void moveToBottom(int layerIndex)
layerIndex - The original position.public void moveToBottom(java.lang.String layerNameAliasOrId)
public void moveToTop(AimsLayer layer)
layer - The layer to move.public void moveToTop(java.lang.String layerNameAliasOrId)
public void moveToTop(int layerIndex)
layerIndex - The original position.
public void moveTo(int fromIndex,
int toIndex)
fromIndex - The original position.toIndex - The new position.public AimsLayer getActiveIdentifyLayer()
public AimsLayer getActiveIdentifyLayer(AimsPoint pt)
pt - The point to use to find the right identify layer.
public void setActiveIdentifyLayer(AimsLayer layer)
layer - An AimsFeatureLayer object to make active.public AimsLayerGroup getActiveIdentifyLayerGroup()
public void setActiveIdentifyLayerGroup(AimsLayerGroup layerGroup)
layerGroup - An AimsLayerLayerGroup object to make active.public AimsFeatureLayer getActiveSelectLayer()
public AimsFeatureLayer getActiveSelectLayer(AimsPoint pt)
pt - The point to use to find the right select layer.
public void setActiveSelectLayer(AimsFeatureLayer layer)
layer - An AimsFeatureLayer object to make active.public AimsLayerGroup getActiveSelectLayerGroup()
public void setActiveSelectLayerGroup(AimsLayerGroup layerGroup)
layerGroup - An AimsLayerLayerGroup object to make active.public AimsLayers getEditLayers()
public AimsLayers getAcetateLayers()
public AimsLayers getExtractLayers()
public AimsLayers getFeatureLayers()
public AimsLayers getWmsLayers()
public boolean hasWmsLayers()
public boolean hasVisibleWmsLayers()
public void removeHighlightLayers()
public void removeHighlightLayer(java.lang.String layerId)
layerId - The layerId of the highlight layer.public void removeBufferLayers()
public void addHighlightLayer(AimsFeatureLayer layer)
public AimsRecordset getBufferLayerRecordset(AimsFeatureLayer layer,
AimsBuffer buffer)
public void addBufferLayer(AimsFeatureLayer layer,
AimsBuffer buffer,
AimsRenderer renderer)
public AimsLayers getServiceLayers()
public AimsLayers getNonServiceLayers()
public AimsLayers getCloneLayers()
public AimsLayers getDynamicLayers()
public boolean hasClonedLayers()
public boolean hasDynamicLayers()
public boolean addLayer(AimsLayer layer)
layer - An AimsLayer object (AimsFeatureLayer, AimsImageLayer,
or AimsAcetateLayer)
public boolean canFindByAttribute()
public AimsLayers getFindByAttributeLayers()
public AimsLayers getSelectByAttributeLayers()
public boolean insertLayer(AimsLayer layer,
int index)
layer - Layer to insertindex - The position to insert the layer
public void clear()
clear in interface java.util.Listpublic AimsLayer getLayer(int index)
index - The index position of the layer
public void setVisible(java.lang.String layerNameAliasOrId,
boolean isVisible)
layerNameAliasOrId - name or ID of the layerisVisible - True if the layer should be visible, otherwise false.public AimsLayer getLayer(java.lang.String layerNameAliasOrId)
layerNameAliasOrId - name or ID of the layer
public AimsLayer getLayerByObjectId(int objectId)
public void setModified(boolean isModified)
isModified - True or false.public boolean removeLayer(int index)
index - layer index
public boolean removeLayer(java.lang.String layerNameOrId)
layerNameOrId - The layer name or ID to remove
public java.lang.String toString()
public java.lang.String toAxlString(java.lang.String requestType)
requestType - The parent tag of the output request.
public void setAxlAttribute(java.lang.String tag,
java.lang.String name,
java.lang.String value)
tag - The AXL element tag containing this attribute (not used).name - The AXL attribute name.value - The AXL attribute value.public void addLayerManagerLayer(AimsLayer lyr)
lyr - The layer to add.
public void adjustScaleFactors(java.lang.String inUnits,
java.lang.String outUnits)
inUnits - The original units, "METERS", FEET" or "DECIMAL_DEGREES".outUnits - The target units, "METERS", FEET" or "DECIMAL_DEGREES".public void adjustScaleFactors(double multiplier)
multiplier - The multiplication factor for
adjusting scale factors.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||