## org.autoplot.metatree.NameValueTreeModel

## addTreeModelListener

addTreeModelListener( javax.swing.event.TreeModelListener l ) → void

### Parameters

l - a TreeModelListener

### Returns:

void (returns nothing)
[search for examples] [view on GitHub] [view on old javadoc]

## create

create( Object root, java.util.List names, java.util.List values ) → org.autoplot.metatree.NameValueTreeModel

### Parameters

root - an Object
names - a java.util.List
values - a java.util.List

### Returns:

org.autoplot.metatree.NameValueTreeModel
[search for examples] [view on GitHub] [view on old javadoc]

## create

create( Object root, java.util.Map map ) → org.autoplot.metatree.NameValueTreeModel

creates a new tree from a hash map.

### Parameters

root - a node to use as the root. Often this will just be a string identifying the properties set like "metadata(cdf)"
map - Map that are translated to nodes. Most value types result in =, while values that are Maps may be handled recursively.

### Returns:

an org.autoplot.metatree.NameValueTreeModel
[search for examples] [view on GitHub] [view on old javadoc]

## getChild

getChild( Object parent, int index ) → Object

### Parameters

parent - an Object
index - an int

### Returns:

java.lang.Object
[search for examples] [view on GitHub] [view on old javadoc]

## getChildCount

getChildCount( Object parent ) → int

### Parameters

parent - an Object

### Returns:

int
[search for examples] [view on GitHub] [view on old javadoc]

## getIndexOfChild

getIndexOfChild( Object parent, Object child ) → int

### Parameters

parent - an Object
child - an Object

### Returns:

int
[search for examples] [view on GitHub] [view on old javadoc]

## getRoot

getRoot( ) → Object

### Returns:

java.lang.Object
[search for examples] [view on GitHub] [view on old javadoc]

## isLeaf

isLeaf( Object parent ) → boolean

### Parameters

parent - an Object

### Returns:

boolean
[search for examples] [view on GitHub] [view on old javadoc]

## removeTreeModelListener

removeTreeModelListener( javax.swing.event.TreeModelListener l ) → void

### Parameters

l - a TreeModelListener

### Returns:

void (returns nothing)
[search for examples] [view on GitHub] [view on old javadoc]

## toString

toString( ) → String

### Returns:

java.lang.String
[search for examples] [view on GitHub] [view on old javadoc]

## valueForPathChanged

valueForPathChanged( javax.swing.tree.TreePath path, Object newValue ) → void

### Parameters

path - a TreePath
newValue - an Object

### Returns:

void (returns nothing)
[search for examples] [view on GitHub] [view on old javadoc]