Lines Matching refs:path

148             final TreePath path = getPathForRow(tree, i);
150 if (path != null && path.getPathCount() == 2) {
159 protected void paintVerticalPartOfLeg(final Graphics g, final Rectangle clipBounds, final Insets insets, final TreePath path) {
161 super.paintVerticalPartOfLeg(g, clipBounds, insets, path);
165 protected void paintHorizontalPartOfLeg(final Graphics g, final Rectangle clipBounds, final Insets insets, final Rectangle bounds, final TreePath path, final int row, final boolean isExpanded, final boolean hasBeenExpanded, final boolean isLeaf) {
167 super.paintHorizontalPartOfLeg(g, clipBounds, insets, bounds, path, row, isExpanded, hasBeenExpanded, isLeaf);
185 protected void paintExpandControl(final Graphics g, final Rectangle clipBounds, final Insets insets, final Rectangle bounds, final TreePath path, final int row, final boolean isExpanded, final boolean hasBeenExpanded, final boolean isLeaf) {
186 final Object value = path.getLastPathComponent();
194 final State state = getState(path);
199 super.paintExpandControl(g, clipBounds, insets, bounds, path, row, isExpanded, hasBeenExpanded, isLeaf);
206 super.paintExpandControl(g, clipBounds, insets, bounds, path, row, isExpanded, hasBeenExpanded, isLeaf);
262 protected State getState(final TreePath path) {
265 if (fTrackingPath.equals(path)) return State.PRESSED;
275 protected void handleExpandControlClick(final TreePath path, final int mouseX, final int mouseY) {
276 fMouseHandler = new TreeArrowMouseInputHandler(path);
331 TreeArrowMouseInputHandler(final TreePath path) {
332 fTrackingPath = path;
335 this.fPathBounds = getPathArrowBounds(path);
350 fIsLeaf = treeModel.isLeaf(path.getLastPathComponent());
353 fIsExpanded = treeState.getExpandedState(path);
354 fHasBeenExpanded = tree.hasBeenExpanded(path);
441 // if there is no tracking path, we don't need to paint anything
464 protected int getRowForPath(final TreePath path) {
465 return treeState.getRowForPath(path);
471 protected Rectangle getPathArrowBounds(final TreePath path) {
472 final Rectangle bounds = getPathBounds(tree, path); // Gives us the y values, but x is adjusted for the contents
480 boxLeftX += (((path.getPathCount() + depthOffset - 2) * totalChildIndent) + getLeftChildIndent()) - bounds.width / 2;
482 boxLeftX += tree.getWidth() - 1 - ((path.getPathCount() - 2 + depthOffset) * totalChildIndent) - getLeftChildIndent() - bounds.width / 2;
504 * True if the selection is reset, false means only the lead path changes.
518 final TreePath path = selectionPaths[i];
524 expandNode(tree.getRowForPath(path), recursive);
531 if (selectionPaths.length == 1 && tree.isCollapsed(path)) {
532 final TreePath parentPath = path.getParentPath();
540 collapseNode(tree.getRowForPath(path), recursive);
550 final TreePath path = getPathForRow(tree, row);
551 if (path == null) return;
553 tree.expandPath(path);
556 expandAllNodes(path, row + 1);
561 final TreePath path = getPathForRow(tree, i);
562 if (!parent.isDescendant(path)) return;
564 tree.expandPath(path);
569 final TreePath path = getPathForRow(tree, row);
570 if (path == null) return;
573 collapseAllNodes(path, row + 1);
576 tree.collapsePath(path);
582 final TreePath path = getPathForRow(tree, i);
583 if (!parent.isDescendant(path)) {
589 final TreePath path = getPathForRow(tree, i);
590 tree.collapsePath(path);