Ignore:
Timestamp:
2014-01-19T15:33:15+01:00 (12 years ago)
Author:
Don-vip
Message:

update javadoc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/preferences/imagery/WMSLayerTree.java

    r5889 r6733  
    2020import org.openstreetmap.josm.io.imagery.WMSImagery;
    2121
     22/**
     23 * The layer tree of a WMS server.
     24 */
    2225public class WMSLayerTree {
    2326    private final MutableTreeNode treeRootNode = new DefaultMutableTreeNode();
     
    2730    private boolean previouslyShownUnsupportedCrsError = false;
    2831
     32    /**
     33     * Returns the root node.
     34     * @return The root node
     35     */
    2936    public MutableTreeNode getTreeRootNode() {
    3037        return treeRootNode;
    3138    }
    3239
     40    /**
     41     * Returns the {@code JTree}.
     42     * @return The {@code JTree}
     43     */
    3344    public JTree getLayerTree() {
    3445        return layerTree;
    3546    }
    3647
     48    /**
     49     * Returns the list of selected layers.
     50     * @return the list of selected layers
     51     */
    3752    public List<WMSImagery.LayerDetails> getSelectedLayers() {
    3853        return selectedLayers;
     
    5570    }
    5671
     72    /**
     73     * Updates the whole tree with the given WMS imagery info.
     74     * @param wms The imagery info for a given WMS server
     75     */
    5776    public void updateTree(WMSImagery wms) {
    5877        treeRootNode.setUserObject(wms.getServiceUrl().getHost());
     
    6079    }
    6180
     81    /**
     82     * Updates the list of WMS layers.
     83     * @param layers The list of layers to add to the root node
     84     */
    6285    public void updateTreeList(List<WMSImagery.LayerDetails> layers) {
    6386        addLayersToTreeData(getTreeRootNode(), layers);
Note: See TracChangeset for help on using the changeset viewer.