/[classpath]/classpath/javax/swing/plaf/basic/BasicTreeUI.java
ViewVC logotype

Diff of /classpath/javax/swing/plaf/basic/BasicTreeUI.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.82 by langel, Fri Sep 23 17:05:06 2005 UTC revision 1.83 by langel, Mon Sep 26 15:20:00 2005 UTC
# Line 1339  public class BasicTreeUI Line 1339  public class BasicTreeUI
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();
# Line 1399  public class BasicTreeUI Line 1398  public class BasicTreeUI
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())
# Line 3220  public class BasicTreeUI Line 3219  public class BasicTreeUI
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;

Legend:
Removed from v.1.82  
changed lines
  Added in v.1.83

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26