diff options
author | Roman Kennke <roman@kennke.org> | 2006-11-19 18:54:19 +0000 |
---|---|---|
committer | Roman Kennke <roman@kennke.org> | 2006-11-19 18:54:19 +0000 |
commit | b1d0c928622637949dfb9158cdc3f75851850992 (patch) | |
tree | 1f58e36b6ce4b8b2c93c6f234014f158488ecce7 /javax/swing/JEditorPane.java | |
parent | dcde416ef391ce7365b8b05416697a26c8ea3139 (diff) | |
download | classpath-b1d0c928622637949dfb9158cdc3f75851850992.tar.gz |
2006-11-19 Roman Kennke <kennke@aicas.com>
* javax/swing/text/BoxView.java
(clipRect): New field.
(tmpRect): New field.
(layout): Reorganized code. Now uses layoutAxis() helper method.
(layoutAxis): New helper method.
(paint): Optimized by using cached Rectangle objects and
a binary search for child views inside the clip.
* javax/swing/text/CompositeView.java
(insideAllocation): Made private and initialized in constructor.
(getInsideAllocation): Removed initialization block for
insideAllocation field. Avoid unnecessary allocations.
* javax/swing/text/GlyphView.java
(DefaultGlyphPainter.paint): Only paint the actual glyphs here
The remaining stuff (background, underline and striking) is
done in the GlpyhView itself. Avoid unnecessary allocations.
(cached): A cached Segment instance.
(getText): Return cached segment.
(paint): Paint underline, strike and background here. Avoid
unecessary allocs.
Diffstat (limited to 'javax/swing/JEditorPane.java')
0 files changed, 0 insertions, 0 deletions