public class LayersTreeModel
extends java.lang.Object
implements javax.swing.tree.TreeModel
Modifier and Type | Field and Description |
---|---|
protected FLayers |
layers |
static Logger |
LOGGER |
Constructor and Description |
---|
LayersTreeModel(FLayers layers) |
Modifier and Type | Method and Description |
---|---|
void |
addTreeModelListener(javax.swing.event.TreeModelListener listener) |
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.Object |
getRoot() |
boolean |
isLeaf(java.lang.Object node) |
void |
reload() |
void |
removeTreeModelListener(javax.swing.event.TreeModelListener listener) |
void |
setFilter(Evaluator filter)
Deprecated.
|
void |
setFilter(java.util.function.Predicate<FLayer> filter) |
void |
valueForPathChanged(javax.swing.tree.TreePath path,
java.lang.Object value) |
public static final Logger LOGGER
protected FLayers layers
public LayersTreeModel(FLayers layers)
@Deprecated public void setFilter(Evaluator filter)
public void setFilter(java.util.function.Predicate<FLayer> filter)
public java.lang.Object getRoot()
getRoot
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 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 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 value)
valueForPathChanged
in interface javax.swing.tree.TreeModel
public void addTreeModelListener(javax.swing.event.TreeModelListener listener)
addTreeModelListener
in interface javax.swing.tree.TreeModel
public void removeTreeModelListener(javax.swing.event.TreeModelListener listener)
removeTreeModelListener
in interface javax.swing.tree.TreeModel
public void reload()