Lines Matching refs:path

69      * there may be one cached node for each path to a modeled node.
173 * Marks the path <code>path</code> expanded state to
175 * @param path the <code>TreePath</code> of interest
176 * @param isExpanded true if the path should be expanded, otherwise false
178 public void setExpandedState(TreePath path, boolean isExpanded) {
179 if(path != null) {
181 ensurePathIsExpanded(path, true);
183 TreeStateNode node = getNodeForPath(path, false, true);
194 * Returns true if the path is expanded, and visible.
195 * @return true if the path is expanded and visible, otherwise false
197 public boolean getExpandedState(TreePath path) {
198 TreeStateNode node = getNodeForPath(path, true, false);
206 * into which the item identified by <code>path</code> will be drawn.
208 * @param path the path to be drawn
213 public Rectangle getBounds(TreePath path, Rectangle placeIn) {
214 TreeStateNode node = getNodeForPath(path, true, false);
225 * Returns the path for <code>row</code>. If <code>row</code>
229 * @return the path for <code>row</code>, or <code>null</code>
240 * Returns the row where the last item identified in path is visible.
241 * Will return -1 if any of the elements in path are not
244 * @param path the <code>TreePath</code> of interest
245 * @return the row where the last item in path is visible
247 public int getRowForPath(TreePath path) {
248 if(path == null)
251 TreeStateNode visNode = getNodeForPath(path, true, false);
268 * <code>path</code> are invalid, and need to be updated.
270 * @param path the <code>TreePath</code> which is now invalid
272 public void invalidatePathBounds(TreePath path) {
273 TreeStateNode node = getNodeForPath(path, true, false);
312 * Returns the path to the node that is closest to x,y. If
314 * otherwise it will always return a valid path.
317 * the returned path and test x, y against that.
321 * @return the path to the node that is closest to x, y
340 * @param path the location in the <code>TreePath</code> to start
344 public Enumeration<TreePath> getVisiblePathsFrom(TreePath path) {
345 TreeStateNode node = getNodeForPath(path, true, false);
354 * Returns the number of visible children for <code>path</code>.
355 * @return the number of visible children for <code>path</code>
357 public int getVisibleChildCount(TreePath path) {
358 TreeStateNode node = getNodeForPath(path, true, false);
376 * Returns true if the value identified by <code>path</code> is
378 * @return true if the value identified by <code>path</code> is
381 public boolean isExpanded(TreePath path) {
382 if(path != null) {
383 TreeStateNode lastNode = getNodeForPath(path, true, false);
402 * <p><code>e.path</code> returns the path the parent of the
457 * <p><code>e.path</code> returns the parent of the new nodes.
530 * <p><code>e.path</code> returns the former parent of the deleted nodes.
618 * given node down. If the path returned by <code>e.getPath</code>
623 * <p><code>e.path</code> holds the path to the node.
703 * Returns the node previously added for <code>path</code>. This may
706 private TreeStateNode getMapping(TreePath path) {
707 return treePathMapping.get(path);
735 root.path = new TreePath(rootObject);
809 * Returns the TreeStateNode identified by path. This mirrors
811 * path if it is an instance of AbstractTreePath.
813 private TreeStateNode getNodeForPath(TreePath path,
816 if(path != null) {
819 node = getMapping(path);
837 paths.push(path);
838 path = path.getParentPath();
840 while(path != null) {
841 node = getMapping(path);
846 path = paths.pop();
851 path.getLastPathComponent());
864 paths.push(path);
865 path = path.getParentPath();
964 * Ensures that all the path components in path are expanded, accept
967 * Returns true if succesful in finding the path.
1046 protected TreePath path;
1058 * Messaged when this node is added somewhere, resets the path
1059 * and adds a mapping from path to this node.
1064 path = ((TreeStateNode)parent).getTreePath().
1082 * Messaged to set the user object. This resets the path.
1086 if(path != null) {
1309 return path;
1317 * Recreates the receivers path, and all its childrens paths.
1322 path = new TreePath(getUserObject());
1324 path = parentPath.pathByAddingChild(getUserObject());
1327 ((TreeStateNode)getChildAt(counter)).resetChildrenPaths(path);
1640 if(path != null) {