[Top][All Lists]

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

[commit-cp] classpath javax/swing/ Chang...

From: Roman Kennke
Subject: [commit-cp] classpath javax/swing/ Chang...
Date: Thu, 17 Aug 2006 14:45:47 +0000

CVSROOT:        /cvsroot/classpath
Module name:    classpath
Changes by:     Roman Kennke <rabbit78> 06/08/17 14:45:47

Modified files:
        javax/swing    : 
        .              : ChangeLog 

Log message:
        2006-08-17  Roman Kennke  <address@hidden>
                * javax/swing/
                (clipString): New helper method for trimming strings.
                (layoutCompoundLabelImpl): Fixed algorithm to conform
                testsuites. Trim text if it's too long. Avoid creating
                new Rectangles. Optimized for performance.
                (layoutCompoundLabel): Use switch rather then if-else-chain.
                * javax/swing/plaf/basic/
                (viewR): New field.
                (iconR): New field.
                (textR): New field.
                (paint): Reset and use cached rectangles. Only call paintIcon()
                if icon is not null. Don't call paintButtonPressed() when
                button is selected, only when it is both armed and pressed.
                * javax/swing/plaf/basic/
                (getPreferredButtonSize): Reused cached rectangles rather
                then creating new ones. Don't create new Rectangle via
                * javax/swing/plaf/basic/
                (getPreferredSize): Correctly reset cached rectangles. 
                the view rect must have a big size to give it room for 
                Short cut layout when text == null.
                (paint): Correctly reset cached rectangles.
                * javax/swing/plaf/basic/
                (resetRectangles): New helper method.
                (getPreferredMenuItemSize): Correctly reset the cached 
                (paintMenuItem): Correctly reset the cached rectangles.
                * javax/swing/plaf/basic/
                (getPreferredSize): Use cached Rectangle objects and initialize
                them correctly.
                (paint): Use cached Rectangle objects and initialize
                them correctly.


reply via email to

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