[SWINGX-1401] ScrollableSizeHints incorrectly track Created: 10/Mar/11  Updated: 12/May/11  Resolved: 12/May/11

Status: Resolved
Project: swingx
Component/s: None
Affects Version/s: None
Fix Version/s: 1.6.3

Type: Bug Priority: Major
Reporter: Karl Schaefer Assignee: Karl Schaefer
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

We need to ensure that the hints do not track when the component's parent size is greater than the component's maximum size.



 Comments   
Comment by Karl Schaefer [ 12/May/11 ]

SWINGX-1400, SWINGX-1401, SWINGX-1447, SWINGX-1448: A variety of small fixes for JXPanel. Firstly, simplify the enumeration for scrollable hinting. This prevent the users from having to special-case vertical and horizontal activities, we handle it under the covers. Fix the tracking of preferred size to check the max size, so we don't stretch a component too far. Improve the clarity of the setAlpha method and throw a runtime exception when the user is doing something untoward. This behavior parallels java.awt.Color, so the user should be accustomed to clamping alpha values correctly. Finally, getEffectiveAlpha was incorrectly tracersing the entire component hierarchy, looking for the ancestor with the lowest alpha, but this methodology did not take alpha inheritance into consideration.

swingx-core/src/main/java/org/jdesktop/swingx/AlphaPaintable.java
swingx-core/src/main/java/org/jdesktop/swingx/JXPanel.java
swingx-core/src/main/java/org/jdesktop/swingx/ScrollableSizeHint.java
swingx-core/src/test/java/org/jdesktop/swingx/JXPanelTest.java

Committed revision 4022.

Generated at Wed Sep 02 09:03:39 UTC 2015 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.