commit-classpath
[Top][All Lists]
Advanced

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

[commit-cp] classpath javax/swing/text/ComponentView.java j...


From: Roman Kennke
Subject: [commit-cp] classpath javax/swing/text/ComponentView.java j...
Date: Mon, 06 Nov 2006 16:02:54 +0000

CVSROOT:        /cvsroot/classpath
Module name:    classpath
Changes by:     Roman Kennke <rabbit78> 06/11/06 16:02:54

Modified files:
        javax/swing/text: ComponentView.java FlowView.java 
                          GlyphView.java View.java 
        .              : ChangeLog 

Log message:
        2006-11-06  Roman Kennke  <address@hidden>
        
                * javax/swing/text/ComponentView.java
                (setParent): Lock the document and repaint the hosting
                container.
                * javax/swing/text/FlowView.java
                (FlowStrategy.createView): Removed comment.
                (FlowView): Initialize span with Short.MAX_VALUE.
                (getFlowStart): Return 0 unconditionally.
                (layout): Moved code around to make it more readable.
                (loadChildren): Always set the parent.
                * javax/swing/text/GlyphView.java
                (DefaultGlyphPainter.fontMetrics): New field.
                (DefaultGlyphPainter.getAscent): Use new helper method to
                synchronize the font metrics.
                (DefaultGlyphPainter.getBoundedPosition): Use new helper method
                to synchronize the font metrics.
                (DefaultGlyphPainter.getDescent): Use new helper method to
                synchronize the font metrics.
                (DefaultGlyphPainter.getHeight): Use new helper method to
                synchronize the font metrics.
                (DefaultGlyphPainter.getSpan): Use new helper method to
                synchronize the font metrics.
                (DefaultGlyphPainter.modelToView): Use new helper method to
                synchronize the font metrics.
                (DefaultGlyphPainter.updateFontMetrics): New helper method for
                font metrics caching.
                (DefaultGlyphPainter.viewToModel): Use new helper method to
                synchronize the font metrics. Fixed view to model mapping.
                * javax/swing/text/View.java
                (removeAll): Pass null to replace().
                (setParent): Only reparent children that have this view as 
parent.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/classpath/javax/swing/text/ComponentView.java?cvsroot=classpath&r1=1.16&r2=1.17
http://cvs.savannah.gnu.org/viewcvs/classpath/javax/swing/text/FlowView.java?cvsroot=classpath&r1=1.18&r2=1.19
http://cvs.savannah.gnu.org/viewcvs/classpath/javax/swing/text/GlyphView.java?cvsroot=classpath&r1=1.23&r2=1.24
http://cvs.savannah.gnu.org/viewcvs/classpath/javax/swing/text/View.java?cvsroot=classpath&r1=1.36&r2=1.37
http://cvs.savannah.gnu.org/viewcvs/classpath/ChangeLog?cvsroot=classpath&r1=1.8757&r2=1.8758




reply via email to

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