SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A group of layers and other layer groups.
Constructor Summary | |
IWLayerGroup(groupName)
Creates a new layer group. |
Method Summary | |
void
|
addLayer(layer)
Adds an IWLayer or IWLayerGroup to this group. visibilities! |
String
|
getGroupName()
Returns the name of this group. |
boolean
|
isVisible()
Overwrites function for IWLayerInterface. |
void
|
removeLayer(layer)
Removes an IWLayer or IWLayerGroup from this group. visibilities! |
IWLayerInterface
|
removeLayerByName(layerName)
Removes an IWLayer or IWLayerGroup from this group by its name. function doesn't update the visibilities! |
void
|
setGroupName(groupName)
Sets the name of this group. |
String
|
toString()
Returns a string representation of this layer group. |
void
|
triggerOnRemove()
Triggers the onremove event.
|
Methods inherited from class IWLayerInterface |
setUseDefaults(useDefaults) |
useDefaults() |
setVisible(visible) |
Methods inherited from class IWNodeElement |
setParent(newParent) |
hasChildren() |
hasChild() |
getChildren() |
getParent() |
add(node) |
remove(node) |
getName() |
setName(name) |
checkIfExistsAsParent(node) |
mark() |
unmark() |
isMarked() |
Constructor Detail |
IWLayerGroup(groupName)
String groupName
- the name of the layer group
Method Detail |
void addLayer(layer)
IWLayerInterface layer
- instance of IWLayer
or IWLayerGroup
void
String getGroupName()
String
groupName
boolean isVisible()
boolean
true if this group is visible otherwise false.
void removeLayer(layer)
IWLayerInterface layer
- instance of IWLayer
or IWLayerGroup
void
IWLayerInterface removeLayerByName(layerName)
String layerName
IWLayerInterface
layer instance of IWLayer
or IWLayerGroup
void setGroupName(groupName)
String groupName
void
String toString()
String
void triggerOnRemove()
onremove
event.
void