Lines Matching refs:node

52     /** Root node. */
97 * Determines whether or not the root node from
100 * @param rootVisible true if the root node of the tree is to be displayed
175 * @param path a TreePath specifying a node
183 FHTreeStateNode node = getNodeForPath(path, true, false);
185 if(node != null)
186 return getBounds(node, -1, placeIn);
188 // node hasn't been created yet.
191 node = getNodeForPath(parentPath, true, false);
192 if (node != null && node.isExpanded()) {
198 return getBounds(node, childIndex, placeIn);
225 FHTreeStateNode node = getNodeForPath(path, true, false);
227 if(node != null)
228 return node.getRow();
232 node = getNodeForPath(parentPath, true, false);
233 if(node != null && node.isExpanded()) {
234 return node.getRowToModelIndex(treeModel.getIndexOfChild
242 * Returns the path to the node that is closest to x,y. If
261 FHTreeStateNode node = getNodeForPath(path, true, false);
263 if(node == null)
265 return node.getTotalChildCount();
277 FHTreeStateNode node = getNodeForPath(path, true, false);
279 if(node != null) {
280 return new VisibleFHTreeStateNodeEnumeration(node);
284 node = getNodeForPath(parentPath, true, false);
285 if(node != null && node.isExpanded()) {
286 return new VisibleFHTreeStateNodeEnumeration(node,
323 FHTreeStateNode node = getNodeForPath(path, true, false);
325 return (node != null) ? (node.isVisible() && node.isExpanded()) :
334 * <p>Invoked after a node (or a set of siblings) has changed in some
335 * way. The node(s) have not changed locations in the tree or
341 * <p>e.path() returns the path the parent of the changed node(s).</p>
343 * <p>e.childIndices() returns the index(es) of the changed node(s).</p>
353 /* Only need to update the children if the node has been
397 /* Only need to update the children if the node has been
469 * given node down. If the path returned by e.getPath() is of length
470 * one and the first element does not identify the current root node
473 * <p>e.path() holds the path to the node.</p>
527 * Returns the bounds for the given node. If <code>childIndex</code>
529 * the bounds of the node at <code>childIndex</code> are returned.
554 // No node dimensions, bail.
577 * Adds a mapping for node.
579 private void addMapping(FHTreeStateNode node) {
580 treePathMapping.put(node.getTreePath(), node);
584 * Removes the mapping for a previously added node.
586 private void removeMapping(FHTreeStateNode node) {
587 treePathMapping.remove(node.getTreePath());
591 * Returns the node previously added for <code>path</code>. This may
592 * return null, if you to create a node use getNodeForPath.
686 FHTreeStateNode node;
688 node = getMapping(path);
689 if(node != null) {
690 if(onlyIfVisible && !node.isVisible())
692 return node;
710 node = null;
712 node = getMapping(path);
713 if(node != null) {
716 while(node != null && paths.size() > 0) {
718 node = node.createChildFor(path.
721 return node;
745 /** Is this node expanded? */
748 /** Index of this node from the model. */
758 /** Path of this node. */
773 * Messaged when this node is added somewhere, resets the path
774 * and adds a mapping from path to this node.
786 * Messaged when this node is removed from its parent, this messages
790 FHTreeStateNode node = (FHTreeStateNode)getChildAt(childIndex);
792 node.removeFromMapping();
842 * Returns true if this node is visible. This is determined by
897 // This node has a created sibling, to calc total
920 * Returns true if this node is expanded.
965 * Creates a new node to represent <code>userObject</code>.
966 * This does NOT check to ensure there isn't already a child node
1014 * Adjusts this node, its child, and its parent starting at
1036 * Messaged when the node has expanded. This updates all of
1091 // the row of a particular node fast is very nice!
1096 FHTreeStateNode node;
1100 node = (FHTreeStateNode)getChildAt(counter);
1101 lastRow += (node.childIndex - lastModelIndex);
1102 lastModelIndex = node.childIndex + 1;
1103 if(node.isExpanded) {
1104 lastRow = node.setRowAndChildren(lastRow);
1107 node.row = lastRow++;
1111 node = (FHTreeStateNode)getParent();
1112 if(node != null) {
1113 node.resetChildrenRowsFrom(lastRow, node.getIndex(this) + 1,
1327 info.node = this;
1341 // No node exists for it, and is first.
1342 info.node = this;
1357 info.node = this;
1377 info.node = this;
1390 info.node = this;
1444 * Messaged when this node either expands or collapses.
1456 protected FHTreeStateNode node;
1461 if(node == null)
1465 return node.getTreePath().pathByAddingChild(treeModel.getChild
1466 (node.getUserObject(),
1468 return node.path;
1489 protected VisibleFHTreeStateNodeEnumeration(FHTreeStateNode node) {
1490 this(node, -1);
1520 FHTreeStateNode node = parent.getChildAtModelIndex(nextIndex);
1522 if(node == null)
1527 retObject = node.getTreePath();