classpath-patches
[Top][All Lists]
Advanced

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

Re: [cp-patches]: FYI: JTree fix


From: Lillian Angel
Subject: Re: [cp-patches]: FYI: JTree fix
Date: Wed, 05 Oct 2005 17:49:55 -0400

Small fix. Added in a comment as a reminder to fix last bit of painting
problem.

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

        * javax/swing/plaf/basic/BasicTreeUI.java
        (paintRow): Fixed indentation.
        (updateCurrentVisiblePath): Added FIXME
        comment.



On Wed, 2005-10-05 at 17:28 -0400, Lillian Angel wrote:
> 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.
> 
> _______________________________________________
> Classpath-patches mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/classpath-patches

Attachment: patch.diff
Description: Text Data


reply via email to

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