classpath-patches
[Top][All Lists]
Advanced

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

[cp-patches] FYI: more WrappedPlainView improvements


From: Anthony Balkissoon
Subject: [cp-patches] FYI: more WrappedPlainView improvements
Date: Thu, 03 Nov 2005 16:08:08 -0500

This patch implements insertUpdate and removeUpdate for
WrappedPlainView.WrappedLine and also fixes some small issues in
WrappedPlainView.  ChangeLog entry explains them.


2005-11-03  Anthony Balkissoon  <address@hidden>

        * javax/swing/text/WrappedPlainView.java: Fixed some > 80 chars lines.
        (drawSelectedText): Fixed startOffset for call to 
        Utilities.drawTabbedText to make sure tabs are properly expanded.
        (drawUnselectedText): Likewise.
        (getMinimumSpan): New API method.
        (getMaximumSpan): New API method.
        (setSize): Call preferenceChanged if the width has changed.
        (WrappedLine.determineNumLines): Move numLines=0 to the top in case 
        the early return happens, numLines will still be correct.
        (WrappedLine.updateDamage): New implementation method called by 
        insertUpdate and removeUpdate to repaint the appropriate part of the 
        JTextArea.
        (WrappedLine.insertUpdate): New method.
        (WrappedLine.removeUpdate): New method.

--Tony

Attachment: WPVInsertRemoveUpdate.diff
Description: Text Data


reply via email to

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