CVSROOT: /cvsroot/classpath
Module name: classpath
Changes by: Roman Kennke <rabbit78> 06/08/11 12:07:03
Modified files:
javax/swing/text: PlainView.java Utilities.java
. : ChangeLog
Log message:
2006-08-11 Roman Kennke <[EMAIL PROTECTED]>
* javax/swing/text/PlainView.java
(tabBase): New field.
(tabSize): New field.
(updateMetrics): Update tabSize.
(lineToRect): Only allocate when really necessary.
(modelToView): Use tabBase for offset calculations.
(paint): Only allocate when really necessary. Update tabBase.
(nextTabStop): Fixed tab calculation.
(viewToModel): Correctly handle multiline text and locations
outside the view's bounds. Set bias.
(getLineLength): Use tabBase.
* javax/swing/text/Utilities.java
(drawTabbedText): Don't special case newlines. The views
must take care of this.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/classpath/javax/swing/text/PlainView.java?cvsroot=classpath&r1=1.45&r2=1.46
http://cvs.savannah.gnu.org/viewcvs/classpath/javax/swing/text/Utilities.java?cvsroot=classpath&r1=1.33&r2=1.34
http://cvs.savannah.gnu.org/viewcvs/classpath/ChangeLog?cvsroot=classpath&r1=1.8364&r2=1.8365