1339 |
|
|
1340 |
TreeModel mod = tree.getModel(); |
TreeModel mod = tree.getModel(); |
1341 |
setModel(mod); |
setModel(mod); |
|
tree.setRootVisible(true); |
|
1342 |
if (mod != null) |
if (mod != null) |
1343 |
tree.expandPath(new TreePath(mod.getRoot())); |
tree.expandPath(new TreePath(mod.getRoot())); |
1344 |
treeSelectionModel = tree.getSelectionModel(); |
treeSelectionModel = tree.getSelectionModel(); |
1398 |
if (treeModel != null) |
if (treeModel != null) |
1399 |
{ |
{ |
1400 |
Object root = treeModel.getRoot(); |
Object root = treeModel.getRoot(); |
1401 |
|
|
1402 |
paintRecursive(g, 0, 0, 0, 0, tree, treeModel, root); |
paintRecursive(g, 0, 0, 0, 0, tree, treeModel, root); |
1403 |
|
|
1404 |
if (hasControlIcons()) |
if (hasControlIcons()) |
3219 |
TreePath path = new TreePath(getPathToRoot(node, 0)); |
TreePath path = new TreePath(getPathToRoot(node, 0)); |
3220 |
Icon icon = getCurrentControlIcon(path); |
Icon icon = getCurrentControlIcon(path); |
3221 |
|
|
3222 |
Rectangle clip = g.getClipBounds(); |
Rectangle clip = tree.getVisibleRect(); |
3223 |
if (indentation > clip.x + clip.width + rightChildIndent |
if (indentation > clip.x + clip.width + rightChildIndent |
3224 |
|| descent > clip.y + clip.height + getRowHeight()) |
|| descent > clip.y + clip.height + getRowHeight()) |
3225 |
return descent; |
return descent; |