Changeset 6733 in josm for trunk/src/org/openstreetmap/josm/gui/preferences/imagery/WMSLayerTree.java
- Timestamp:
- 2014-01-19T15:33:15+01:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/preferences/imagery/WMSLayerTree.java
r5889 r6733 20 20 import org.openstreetmap.josm.io.imagery.WMSImagery; 21 21 22 /** 23 * The layer tree of a WMS server. 24 */ 22 25 public class WMSLayerTree { 23 26 private final MutableTreeNode treeRootNode = new DefaultMutableTreeNode(); … … 27 30 private boolean previouslyShownUnsupportedCrsError = false; 28 31 32 /** 33 * Returns the root node. 34 * @return The root node 35 */ 29 36 public MutableTreeNode getTreeRootNode() { 30 37 return treeRootNode; 31 38 } 32 39 40 /** 41 * Returns the {@code JTree}. 42 * @return The {@code JTree} 43 */ 33 44 public JTree getLayerTree() { 34 45 return layerTree; 35 46 } 36 47 48 /** 49 * Returns the list of selected layers. 50 * @return the list of selected layers 51 */ 37 52 public List<WMSImagery.LayerDetails> getSelectedLayers() { 38 53 return selectedLayers; … … 55 70 } 56 71 72 /** 73 * Updates the whole tree with the given WMS imagery info. 74 * @param wms The imagery info for a given WMS server 75 */ 57 76 public void updateTree(WMSImagery wms) { 58 77 treeRootNode.setUserObject(wms.getServiceUrl().getHost()); … … 60 79 } 61 80 81 /** 82 * Updates the list of WMS layers. 83 * @param layers The list of layers to add to the root node 84 */ 62 85 public void updateTreeList(List<WMSImagery.LayerDetails> layers) { 63 86 addLayersToTreeData(getTreeRootNode(), layers);
Note:
See TracChangeset
for help on using the changeset viewer.
