public class WMSLayerTree extends Object
| Modifier and Type | Class and Description |
|---|---|
private static class |
WMSLayerTree.LayerTreeCellRenderer |
private class |
WMSLayerTree.WMSTreeSelectionListener |
| Modifier and Type | Field and Description |
|---|---|
private JTree |
layerTree |
private boolean |
previouslyShownUnsupportedCrsError |
private List<WMSImagery.LayerDetails> |
selectedLayers |
private DefaultTreeModel |
treeData |
private MutableTreeNode |
treeRootNode |
| Constructor and Description |
|---|
WMSLayerTree()
Constructs a new
WMSLayerTree. |
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
addLayersToTreeData(MutableTreeNode parent,
List<WMSImagery.LayerDetails> layers) |
JTree |
getLayerTree()
Returns the
JTree. |
List<WMSImagery.LayerDetails> |
getSelectedLayers()
Returns the list of selected layers.
|
MutableTreeNode |
getTreeRootNode()
Returns the root node.
|
void |
updateTree(WMSImagery wms)
Updates the whole tree with the given WMS imagery info.
|
void |
updateTreeList(List<WMSImagery.LayerDetails> layers)
Updates the list of WMS layers.
|
private final MutableTreeNode treeRootNode
private final DefaultTreeModel treeData
private final List<WMSImagery.LayerDetails> selectedLayers
private boolean previouslyShownUnsupportedCrsError
public WMSLayerTree()
WMSLayerTree.public MutableTreeNode getTreeRootNode()
public JTree getLayerTree()
JTree.JTreepublic List<WMSImagery.LayerDetails> getSelectedLayers()
void addLayersToTreeData(MutableTreeNode parent, List<WMSImagery.LayerDetails> layers)
public void updateTree(WMSImagery wms)
wms - The imagery info for a given WMS serverpublic void updateTreeList(List<WMSImagery.LayerDetails> layers)
layers - The list of layers to add to the root node