Lines Matching refs:path

70      * Used for getting path/row information.
146 public void invalidatePathBounds(TreePath path) {
163 public boolean isExpanded(TreePath path) {
164 if(path != null) {
165 FHTreeStateNode lastNode = getNodeForPath(path, true, false);
173 * Returns a rectangle giving the bounds needed to draw path.
175 * @param path a TreePath specifying a node
179 public Rectangle getBounds(TreePath path, Rectangle placeIn) {
180 if(path == null)
183 FHTreeStateNode node = getNodeForPath(path, true, false);
189 TreePath parentPath = path.getParentPath();
195 path.getLastPathComponent());
204 * Returns the path for passed in row. If row is not visible
217 * Returns the row that the last item identified in path is visible
218 * at. Will return -1 if any of the elements in path are not
221 public int getRowForPath(TreePath path) {
222 if(path == null || root == null)
225 FHTreeStateNode node = getNodeForPath(path, true, false);
230 TreePath parentPath = path.getParentPath();
236 path.getLastPathComponent()));
242 * Returns the path to the node that is closest to x,y. If
244 * it'll always return a valid path. If you need to test if the
246 * the returned path and test x, y against that.
260 public int getVisibleChildCount(TreePath path) {
261 FHTreeStateNode node = getNodeForPath(path, true, false);
273 public Enumeration<TreePath> getVisiblePathsFrom(TreePath path) {
274 if(path == null)
277 FHTreeStateNode node = getNodeForPath(path, true, false);
282 TreePath parentPath = path.getParentPath();
288 path.getLastPathComponent()));
294 * Marks the path <code>path</code> expanded state to
297 public void setExpandedState(TreePath path, boolean isExpanded) {
299 ensurePathIsExpanded(path, true);
300 else if(path != null) {
301 TreePath parentPath = path.getParentPath();
311 FHTreeStateNode childNode = getNodeForPath(path, true,
320 * Returns true if the path is expanded, and visible.
322 public boolean getExpandedState(TreePath path) {
323 FHTreeStateNode node = getNodeForPath(path, true, false);
341 * <p>e.path() returns the path the parent of the changed node(s).</p>
385 * <p>e.path() returns the parent of the new nodes
424 * <p>e.path() returns the former parent of the deleted nodes.</p>
469 * given node down. If the path returned by e.getPath() is of length
473 * <p>e.path() holds the path to the node.</p>
591 * Returns the node previously added for <code>path</code>. This may
594 private FHTreeStateNode getMapping(TreePath path) {
595 return treePathMapping.get(path);
607 root.path = new TreePath(rootUO);
642 * Ensures that all the path components in path are expanded, accept
645 * Returns true if succesful in finding the path.
678 * Messages getTreeNodeForPage(path, onlyIfVisible, shouldCreate,
679 * path.length) as long as path is non-null and the length is > 0.
682 private FHTreeStateNode getNodeForPath(TreePath path,
685 if(path != null) {
688 node = getMapping(path);
708 paths.push(path);
709 path = path.getParentPath();
711 while(path != null) {
712 node = getMapping(path);
717 path = paths.pop();
718 node = node.createChildFor(path.
723 paths.push(path);
724 path = path.getParentPath();
759 protected TreePath path;
773 * Messaged when this node is added somewhere, resets the path
774 * and adds a mapping from path to this node.
779 path = ((FHTreeStateNode)parent).getTreePath().
797 * Messaged to set the user object. This resets the path.
801 if(path != null) {
825 return path;
938 * Recreates the receivers path, and all its childrens paths.
943 path = new TreePath(getUserObject());
945 path = parentPath.pathByAddingChild(getUserObject());
949 resetChildrenPaths(path);
957 if(path != null) {
1453 * Used as a placeholder when getting the path in FHTreeStateNodes.
1468 return node.path;