621 |
*/ |
*/ |
622 |
private DefaultMutableTreeNode getNextVisibleNode(DefaultMutableTreeNode node) |
private DefaultMutableTreeNode getNextVisibleNode(DefaultMutableTreeNode node) |
623 |
{ |
{ |
624 |
|
DefaultMutableTreeNode next = null; |
625 |
|
TreePath current = null; |
626 |
|
|
627 |
if (node != null) |
if (node != null) |
628 |
|
next = node.getNextNode(); |
629 |
|
|
630 |
|
if (next != null) |
631 |
{ |
{ |
632 |
DefaultMutableTreeNode next = node.getNextNode(); |
current = new TreePath(next.getPath()); |
633 |
TreePath current = new TreePath(next.getPath()); |
if (tree.isVisible(current)) |
|
if (next != null && tree.isVisible(current)) |
|
634 |
return next; |
return next; |
635 |
|
|
636 |
while (next != null && !tree.isVisible(current)) |
while (next != null && !tree.isVisible(current)) |
637 |
{ |
{ |
638 |
next = next.getNextNode(); |
next = next.getNextNode(); |
640 |
if (next != null) |
if (next != null) |
641 |
current = new TreePath(next.getPath()); |
current = new TreePath(next.getPath()); |
642 |
} |
} |
|
node = next; |
|
643 |
} |
} |
644 |
return node; |
return next; |
645 |
} |
} |
646 |
|
|
647 |
/** |
/** |
670 |
*/ |
*/ |
671 |
public int getRowCount(JTree tree) |
public int getRowCount(JTree tree) |
672 |
{ |
{ |
673 |
|
// FIXME: check visibility |
674 |
return treeState.getRowCount(); |
return treeState.getRowCount(); |
675 |
} |
} |
676 |
|
|