classpath-patches
[Top][All Lists]
Advanced

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

[cp-patches] FYI: some styled text fixes


From: Roman Kennke
Subject: [cp-patches] FYI: some styled text fixes
Date: Wed, 5 Oct 2005 23:51:09 +0200 (CEST)
User-agent: SquirrelMail/1.4.4

I have tested my styled text testapp again and found that it was broken.
Here comes the fix. Mainly I changed BoxView to completely use the
SizeRequirements utility methods. Also, since these methods now work
correctly, I also had to tweak some alignment properties of related views.
Now the app at least shows up again. It still needs some tweaks though to
be usable.

Also included are some missing methods for the BoxView thingy.

2005-10-05  Roman Kennke  <address@hidden>

        * javax/swing/text/BoxView.java
        (baselineLayout): New method.
        (calculateMajorAxisRequirements): Reimplemented to use the
        SizeRequirements utility methods.
        (calculateMinorAxisRequirements): Reimplemented to use the
        SizeRequirements utility methods.
        (layout): Use the new baselineLayout method.
        (layoutMajorAxis): Reimplemented to use the new
        getChildRequirements method.
        (layoutMinorAxis): Reimplemented to use the new
        getChildRequirements method.
        (getChildRequirements): New method.
        (getSpan): New method.
        (getOffset): New method.
        (getAlignment): New method.
        * javax/swing/text/ParagraphView.java
        (Row.getAlignment): New method.
        (getAlignment): New method.
        * javax/swing/text/View.java
        (getContainer): Improved error message in assertion a little.

/Roman

Attachment: swing-text-fixes.diff
Description: Text Data


reply via email to

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