Class WMSLayerTree
java.lang.Object
org.openstreetmap.josm.gui.preferences.imagery.WMSLayerTree
The layer tree of a WMS server.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final classprivate final class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate LatLonprivate final JTreeprivate final List<LayerDetails>private final DefaultTreeModelprivate final MutableTreeNode -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidaddLayersToTreeData(MutableTreeNode parent, Collection<LayerDetails> layers) Returns theJTree.Returns the list of selected layers.Returns the root node.voidsetCheckBounds(LatLon checkBounds) Set coordinate to check layer bounds when updating the tree.voidupdateTree(WMSImagery wms) Updates the whole tree with the given WMS imagery info.voidupdateTreeList(Collection<LayerDetails> layers) Updates the list of WMS layers.
-
Field Details
-
treeRootNode
-
treeData
-
layerTree
-
selectedLayers
-
checkBounds
-
-
Constructor Details
-
WMSLayerTree
public WMSLayerTree()Constructs a newWMSLayerTree.
-
-
Method Details
-
getTreeRootNode
Returns the root node.- Returns:
- The root node
-
getLayerTree
Returns theJTree.- Returns:
- The
JTree
-
getSelectedLayers
Returns the list of selected layers.- Returns:
- the list of selected layers
-
setCheckBounds
Set coordinate to check layer bounds when updating the tree.- Parameters:
checkBounds- the coordinate
-
addLayersToTreeData
-
updateTree
Updates the whole tree with the given WMS imagery info. All previous content is removed- Parameters:
wms- The imagery info for a given WMS server
-
updateTreeList
Updates the list of WMS layers.- Parameters:
layers- The list of layers to add to the root node
-