summaryrefslogtreecommitdiff
path: root/javax/swing/text/html
diff options
context:
space:
mode:
authorRoman Kennke <roman@kennke.org>2006-11-19 18:54:19 +0000
committerRoman Kennke <roman@kennke.org>2006-11-19 18:54:19 +0000
commitb1d0c928622637949dfb9158cdc3f75851850992 (patch)
tree1f58e36b6ce4b8b2c93c6f234014f158488ecce7 /javax/swing/text/html
parentdcde416ef391ce7365b8b05416697a26c8ea3139 (diff)
downloadclasspath-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/text/html')
0 files changed, 0 insertions, 0 deletions