3127 |
int paintRecursive(Graphics g, int indentation, int descent, int childNumber, |
int paintRecursive(Graphics g, int indentation, int descent, int childNumber, |
3128 |
int depth, JTree tree, TreeModel mod, Object curr) |
int depth, JTree tree, TreeModel mod, Object curr) |
3129 |
{ |
{ |
3130 |
Rectangle clip = g.getClipBounds(); |
Rectangle clip = tree.getVisibleRect(); |
3131 |
if (indentation > clip.x + clip.width + rightChildIndent |
if (indentation > clip.x + clip.width + rightChildIndent |
3132 |
|| descent > clip.y + clip.height + getRowHeight()) |
|| descent > clip.y + clip.height + getRowHeight()) |
3133 |
return descent; |
return descent; |