classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cp-patches]: Patch: JTree fix


From: Lillian Angel
Subject: [cp-patches]: Patch: JTree fix
Date: Wed, 05 Oct 2005 17:28:02 -0400

Fixed up BasicTreeUI because it was not efficent when painting.

2005-10-05  Lillian Angel  <address@hidden>

        * javax/swing/plaf/metal/MetalTreeUI.java
        (installUI): Fixed to call toggleExpandState instead.
        * javax/swing/plaf/basic/BasicTreeUI.java
        (getPathForRow): Used currentVisiblePath to get Path.
        (getRowForPath): Used currentVisiblePath to get row.
        (getRowCount): Returned currentVisiblePath length.
        (updateLayoutCacheExpandedNodes): Took out unneeded code.
        (installUI): Fixed to call toggleExpandState instead.
        (getPreferredSize): Made more efficent by using 
        currentVisiblePath.
        (toggleExpandState): Called updateCurrentVisiblePath.
        (getCellLocation): Made more efficent.
        (paintNode): Removed.
        (paintRecursive): Made more efficent, changed paintNode calls to
        paintRow.
        (getNextVisibleNode): Reimplemented to use currentVisiblePath.
        (getPreviousVisibleNode): Likewise.
        (paintRow): Implemented.
        (updateCurrentVisiblePath): New helper used to cache the current
        visible path.

Attachment: patch.diff
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]