commit-classpath
[Top][All Lists]
Advanced

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

[commit-cp] classpath javax/swing/text/View.java javax/swin...


From: Roman Kennke
Subject: [commit-cp] classpath javax/swing/text/View.java javax/swin...
Date: Mon, 28 Aug 2006 15:52:06 +0000

CVSROOT:        /cvsroot/classpath
Module name:    classpath
Changes by:     Roman Kennke <rabbit78> 06/08/28 15:52:06

Modified files:
        javax/swing/text: View.java CompositeView.java BoxView.java 
        .              : ChangeLog 

Log message:
        2006-08-28  Roman Kennke  <address@hidden>
        
                * javax/swing/text/View.java
                (height): Removed unneeded field.
                (width): Removed unneeded field.
                (getBreakWeight): Return GoodBreakWeight when pos is after
                the view's span.
                (getToolTipText): Check view index more carefully. Avoid
                Rectangle creation.
                (insertUpdate): Only execute method body if view count > 0.
                When updateChildren returns false, clear the ec variable.
                (updateChildren): Added null checks.
                (viewToModel): Initialize bias array correctly.
                * javax/swing/text/CompositeView.java
                (children): Made private.
                (numChildren): New field.
                (loadChildren): Check factory for null. Don't load children
                when factory is null.
                (replace): Removed null check. Nullify removed children. Made
                growing the array more efficient.
                (getViewCount): Return numChildren rather then the real array
                size.
                * javax/swing/text/BoxView.java
                (getViewAtPoint): Fixed algorithm for finding the view.
                (replace): Made array growing more efficient.
                (replaceLayoutArray): New helper method for growing/patching
                the layout arrays.
                (viewToModel): Make sure we have a valid layout.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/classpath/javax/swing/text/View.java?cvsroot=classpath&r1=1.35&r2=1.36
http://cvs.savannah.gnu.org/viewcvs/classpath/javax/swing/text/CompositeView.java?cvsroot=classpath&r1=1.21&r2=1.22
http://cvs.savannah.gnu.org/viewcvs/classpath/javax/swing/text/BoxView.java?cvsroot=classpath&r1=1.22&r2=1.23
http://cvs.savannah.gnu.org/viewcvs/classpath/ChangeLog?cvsroot=classpath&r1=1.8466&r2=1.8467




reply via email to

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