Constructor and Description |
---|
GeometryTreeModel(Geometry geom,
int source) |
Modifier and Type | Method and Description |
---|---|
void |
addTreeModelListener(TreeModelListener l)
Adds a listener for the TreeModelEvent posted after the tree changes.
|
Object |
getChild(Object parent,
int index)
Returns the child of parent at index index in the parent's child array.
|
int |
getChildCount(Object parent)
Returns the number of children of parent.
|
int |
getIndexOfChild(Object parent,
Object child)
Returns the index of child in parent.
|
Object |
getRoot()
Returns the root of the tree.
|
boolean |
isLeaf(Object node)
Returns true if node is a leaf.
|
void |
removeTreeModelListener(TreeModelListener l)
Removes a listener previously added with addTreeModelListener().
|
void |
valueForPathChanged(TreePath path,
Object newValue)
Messaged when the user has altered the value for the item identified by
path to newValue.
|
public GeometryTreeModel(Geometry geom, int source)
public void addTreeModelListener(TreeModelListener l)
addTreeModelListener
in interface TreeModel
public Object getChild(Object parent, int index)
public int getChildCount(Object parent)
getChildCount
in interface TreeModel
public int getIndexOfChild(Object parent, Object child)
getIndexOfChild
in interface TreeModel
public Object getRoot()
public boolean isLeaf(Object node)
public void removeTreeModelListener(TreeModelListener l)
removeTreeModelListener
in interface TreeModel
public void valueForPathChanged(TreePath path, Object newValue)
valueForPathChanged
in interface TreeModel
Copyright © 2023. All rights reserved.