|
||||||||||
| 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.ArrayList
com.moximedia.ows.Layers
| Field Summary |
| Fields inherited from class java.util.AbstractList |
modCount |
| Fields inherited from interface com.moximedia.ows.types.LayerType |
LAYER_TYPE_ACETATE, LAYER_TYPE_WFS, LAYER_TYPE_WMS |
| Constructor Summary | |
Layers()
Creates new Layers |
|
| Method Summary | |
void |
addLayer(int index,
Layer layer)
Adds a layer to the array at the specified position. |
void |
addLayer(Layer layer)
Adds a layer to the array |
AcetateLayer |
getAcetateLayerByName(java.lang.String name)
Gets the specified acetate layer by name. |
AcetateLayer |
getAcetateLayerByTitle(java.lang.String title)
Gets the specified acetate layer by title. |
Layers |
getAcetateLayers()
Gets a Layers object containing just the acetate layers in this object. |
Layer |
getActiveLayer()
Returns the active layer, if any. |
Layer |
getActiveLayer(double scale)
Gets the active layer, if any. |
LayerGroup |
getActiveLayerGroup()
Gets the active layer group, if any. |
Layer |
getLayer(int index)
Returns the layer at the specified index. |
Layer |
getLayerById(java.lang.String id)
Returns the layer with the specified id. |
Layer |
getLayerByIdOrTitle(java.lang.String idOrTitle)
Returns the layer with the specified id or title. |
Layer |
getLayerByName(java.lang.String name)
Returns the layer with the specified name. |
Layer |
getLayerByObjectId(int objectId)
Returns the layer with the specified object id. |
Layer |
getLayerByTitle(java.lang.String title)
Returns the layer with the the specified title. |
int |
getLayerIndex(java.lang.String name)
Returns the index of the specified layer. |
WfsLayer |
getWfsLayerByName(java.lang.String name)
Returns the WFS layer with the the specified name. |
WfsLayer |
getWfsLayerByTitle(java.lang.String title)
Returns the WFS layer with the the specified title. |
WmsLayer |
getWmsLayerByName(java.lang.String name)
Returns the WMS layer with the the specified name. |
WmsLayer |
getWmsLayerByTitle(java.lang.String title)
Returns the WMS layer with the the specified title. |
void |
moveTo(Layer layer,
int index)
Moves a layer to the specified index order. |
void |
moveToBottom(int layerIndex)
Moves the layer at the specified index to the bottom of the index order. |
void |
moveToBottom(Layer layer)
Moves a layer to the bottom of the index order. |
void |
moveToTop(int layerIndex)
Moves the layer at the specified index to the top of the index order. |
void |
moveToTop(Layer layer)
Moves a layer to the top of the index order. |
void |
removeLayer(java.lang.String name)
Removes all layers with the specified name. |
void |
removeLayerByName(java.lang.String name)
Removes all layers with the specified name. |
void |
removeLayerByTitle(java.lang.String title)
Removes all layers with the specified title. |
void |
setActiveLayer(int objectId)
Sets the active layer using an object id. |
void |
setActiveLayer(Layer layer)
Sets the active layer. |
void |
setActiveLayerGroup(LayerGroup group)
Sets the active layer group. |
| Methods inherited from class java.util.ArrayList |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, removeRange, set, size, toArray, toArray, trimToSize |
| Methods inherited from class java.util.AbstractList |
equals, hashCode, iterator, listIterator, listIterator, subList |
| Methods inherited from class java.util.AbstractCollection |
containsAll, remove, removeAll, retainAll, toString |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
containsAll, equals, hashCode, iterator, listIterator, listIterator, remove, removeAll, retainAll, subList |
| Constructor Detail |
public Layers()
| Method Detail |
public void addLayer(Layer layer)
layer - The layer to add.
public void addLayer(int index,
Layer layer)
index - The position (zero based) to add the layer.layer - The layer to add.public int getLayerIndex(java.lang.String name)
name - The layer name.
public Layers getAcetateLayers()
public AcetateLayer getAcetateLayerByName(java.lang.String name)
name - The name to search for.
public AcetateLayer getAcetateLayerByTitle(java.lang.String title)
title - The title to search for.
public Layer getActiveLayer()
public Layer getActiveLayer(double scale)
scale - The map scale.
public LayerGroup getActiveLayerGroup()
public Layer getLayer(int index)
index - The zero based index of the layer.
public Layer getLayerById(java.lang.String id)
id - The id of the layer.
public Layer getLayerByIdOrTitle(java.lang.String idOrTitle)
idOrTitle - The id or title of the layer.
public Layer getLayerByObjectId(int objectId)
objectId - The object id of the layer.
public Layer getLayerByName(java.lang.String name)
name - The name of the layer.
public Layer getLayerByTitle(java.lang.String title)
title - The title of the layer.
public WfsLayer getWfsLayerByName(java.lang.String name)
name - The name of the layer.
public WfsLayer getWfsLayerByTitle(java.lang.String title)
title - The title of the layer.
public WmsLayer getWmsLayerByName(java.lang.String name)
name - The name of the layer.
public WmsLayer getWmsLayerByTitle(java.lang.String title)
title - The title of the layer.
public void moveTo(Layer layer,
int index)
layer - The Layer to move.index - The zero based new position.public void moveToBottom(Layer layer)
layer - The Layer to move.public void moveToBottom(int layerIndex)
layerIndex - The zero based position of the layer.public void moveToTop(Layer layer)
layer - The Layer to move.public void moveToTop(int layerIndex)
layerIndex - The zero based position of the layer.public void removeLayer(java.lang.String name)
name - The name of the layer to remove.public void removeLayerByName(java.lang.String name)
name - The name of the layer to remove.public void removeLayerByTitle(java.lang.String title)
title - The title of the layer to remove.public void setActiveLayer(int objectId)
objectId - The objectId of the layer to make active.public void setActiveLayer(Layer layer)
layer - The layer to make active.public void setActiveLayerGroup(LayerGroup group)
group - The layer group to make active.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||