public class ValuesTreeModel
extends javax.swing.tree.DefaultTreeModel
Constructor and Description |
---|
ValuesTreeModel(QDataSet ds) |
ValuesTreeModel(java.lang.String prefix,
QDataSet ds) |
Modifier and Type | Method and Description |
---|---|
static javax.swing.tree.MutableTreeNode |
valuesTreeNode(java.lang.String prefix,
javax.swing.tree.MutableTreeNode aroot,
QDataSet ds,
int sizeLimit)
return a tree node for the values of a dataset.
|
static javax.swing.tree.TreeNode |
valuesTreeNode2(java.lang.String prefix,
javax.swing.tree.TreeNode parent,
QDataSet ds)
The valuesTreeNode implementation that uses MutableTreeNodes cannot scale to very large datasets, since all
nodes are created immediately.
|
addTreeModelListener, asksAllowsChildren, fireTreeNodesChanged, fireTreeNodesInserted, fireTreeNodesRemoved, fireTreeStructureChanged, getChild, getChildCount, getIndexOfChild, getListeners, getPathToRoot, getPathToRoot, getRoot, getTreeModelListeners, insertNodeInto, isLeaf, nodeChanged, nodesChanged, nodeStructureChanged, nodesWereInserted, nodesWereRemoved, reload, reload, removeNodeFromParent, removeTreeModelListener, setAsksAllowsChildren, setRoot, valueForPathChanged
public ValuesTreeModel(QDataSet ds)
public ValuesTreeModel(java.lang.String prefix, QDataSet ds)
prefix
- String to prefix the root label.ds
- the dataset source of the metadata.public static javax.swing.tree.TreeNode valuesTreeNode2(java.lang.String prefix, javax.swing.tree.TreeNode parent, QDataSet ds)
prefix
- string prefix, a number of spaces to indentparent
- the parent nodeds
- the dataset source of the values.public static javax.swing.tree.MutableTreeNode valuesTreeNode(java.lang.String prefix, javax.swing.tree.MutableTreeNode aroot, QDataSet ds, int sizeLimit)
prefix
- prefix added to the each node, e.g. "value("aroot
- the parent to which the nodes are added.ds
- the dataset to represent.sizeLimit
- the number of nodes to represent, e.g. 20, and ellipses (...) will represent the values not shown.