public class LayerTreeModel
extends java.lang.Object
implements javax.swing.tree.TreeModel
Constructor and Description |
---|
LayerTreeModel(WMTSThemes root) |
Modifier and Type | Method and Description |
---|---|
void |
addTreeModelListener(javax.swing.event.TreeModelListener l) |
java.lang.Object |
getChild(java.lang.Object parent,
int index) |
int |
getChildCount(java.lang.Object parent) |
int |
getIndexOfChild(java.lang.Object parent,
java.lang.Object child) |
java.lang.String |
getName(java.lang.Object node) |
java.lang.Object |
getNodeByName(java.lang.String name)
Searches in the tree for the first (and must be the unique) RemoteLayerNode with
the name specified by name.
|
java.lang.Object |
getRoot() |
java.util.List<WMTSStyle> |
getStyles(java.lang.Object node) |
java.lang.String |
getTitle(java.lang.Object node) |
boolean |
isLeaf(java.lang.Object node) |
void |
removeTreeModelListener(javax.swing.event.TreeModelListener l) |
java.lang.String |
toString() |
void |
valueForPathChanged(javax.swing.tree.TreePath path,
java.lang.Object newValue) |
public LayerTreeModel(WMTSThemes root)
public java.lang.Object getRoot()
getRoot
in interface javax.swing.tree.TreeModel
public int getChildCount(java.lang.Object parent)
getChildCount
in interface javax.swing.tree.TreeModel
public boolean isLeaf(java.lang.Object node)
isLeaf
in interface javax.swing.tree.TreeModel
public void addTreeModelListener(javax.swing.event.TreeModelListener l)
addTreeModelListener
in interface javax.swing.tree.TreeModel
public void removeTreeModelListener(javax.swing.event.TreeModelListener l)
removeTreeModelListener
in interface javax.swing.tree.TreeModel
public java.lang.Object getChild(java.lang.Object parent, int index)
getChild
in interface javax.swing.tree.TreeModel
public int getIndexOfChild(java.lang.Object parent, java.lang.Object child)
getIndexOfChild
in interface javax.swing.tree.TreeModel
public void valueForPathChanged(javax.swing.tree.TreePath path, java.lang.Object newValue)
valueForPathChanged
in interface javax.swing.tree.TreeModel
public java.lang.String getName(java.lang.Object node)
node,
- the tree's desired node.public java.util.List<WMTSStyle> getStyles(java.lang.Object node)
node,
- the tree's desired node.public java.lang.String getTitle(java.lang.Object node)
node,
- the tree's desired node.public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object getNodeByName(java.lang.String name)
name
-