I optimized the BoxView (a basic view for all kinds of styled text
components) a little so that it only paints a given child view if the
child view's allocation is inside the current clip.
2005-11-14 Roman Kennke <[EMAIL PROTECTED]>
* javax/swing/text/BoxView.java
(paint): Only paint child if it is inside the current clip.
/Roman
Index: javax/swing/text/BoxView.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/swing/text/BoxView.java,v
retrieving revision 1.9
diff -u -r1.9 BoxView.java
--- javax/swing/text/BoxView.java 20 Oct 2005 18:34:42 -0000 1.9
+++ javax/swing/text/BoxView.java 14 Nov 2005 12:02:41 -0000
@@ -307,7 +307,8 @@
{
copy.setBounds(inside);
childAllocation(i, copy);
- if (!copy.isEmpty())
+ if (!copy.isEmpty()
+ && g.hitClip(copy.x, copy.y, copy.width, copy.height))
paintChild(g, copy, i);
}
}
_______________________________________________
Classpath-patches mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/classpath-patches