classpath-patches
[Top][All Lists]
Advanced

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

[cp-patches] FYI: Fixed JProgressBar UIs


From: Roman Kennke
Subject: [cp-patches] FYI: Fixed JProgressBar UIs
Date: Mon, 14 Nov 2005 11:09:32 +0000

Hi there,

I reworked most of the JProgressBar UIs so that the progressbars are
painted and animated correctly. The ProgressBar demo that I added should
show the funky new progressbar features :-) The only missing thing that
I couldn't solve is vertical text. Is it possible at all to paint
vertical text without Java2D support? I don't know...

2005-11-14  Roman Kennke  <address@hidden>

        * javax/swing/plaf/basic/BasicProgressBarUI.java
        (boxRect): New protected field.
        (PropertyChangeHandler.propertyChange): Fixed typo in
'indeterminate'.
        Only start animation when progressBar is actually showing. Removed
        repaint call.
        (AncestorHandler): New inner class. Helps starting/stopping the
        animation when progressBar becomes showing/hidden.
        (ComponentHandler): New inner class. Recalculates box sizes for
        indeterminate progress bars when the size of the progress bar
        changes.
        (boxRect): New protected field.
        (boxDependent): New transient field.
        (boxIndependent): New transient field.
        (incr): New transient field.
        (ancestorListener): New private field.
        (componentListener): New private field.
        (getBox): Fixed calculation of the indeterminate progress bar box
        to match the JDK behaviour.
        (getMaximumSize): Implemented the maximumSize for progressBars.
        (getMinimumSize): Implemented the minimumSize for progressBars.
        (getPreferredInnerHorizontal): Implemented correctly.
        (getPreferredInnerVertical): Implemented correctly.
        (getPreferredSize): Implemented correctly using the
getPreferredXXX()
        helper methods.
        (paintDeterminate): Fixed painting to better match the JDK
behaviour.
        (paintIndeterminate): Fixed painting to better match the JDK
behaviour.
        (paintString): Implemented 'half-dark-half-light' painted text.
        (installListeners): Install new listeners.
        (uninstallListeners): Uninstall new listeners.
        * javax/swing/plaf/basic/MetalProgressBarUI.java
        (paintDeterminate): New method.
        (paintIndeterminate): New method.


/Roman

Attachment: patch.diff
Description: Text Data


reply via email to

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