973 tmp.y + rootDy - dy);
974 r = dirtyComponents.get(rootDirtyComponent);
975 SwingUtilities.computeUnion(tmp.x,tmp.y,tmp.width,tmp.height,r);
976 }
977
978 // If we haven't seen this root before, then we need to add it to the
979 // list of root dirty Views.
980
981 if (!roots.contains(rootDirtyComponent))
982 roots.add(rootDirtyComponent);
983 }
984
985
986 /**
987 * Returns a string that displays and identifies this
988 * object's properties.
989 *
990 * @return a String representation of this object
991 */
992 public synchronized String toString() {
993 StringBuilder sb = new StringBuilder();
994 if(dirtyComponents != null)
995 sb.append("" + dirtyComponents);
996 return sb.toString();
997 }
998
999
1000 /**
1001 * Return the offscreen buffer that should be used as a double buffer with
1002 * the component <code>c</code>.
1003 * By default there is a double buffer per RepaintManager.
1004 * The buffer might be smaller than <code>(proposedWidth,proposedHeight)</code>
1005 * This happens when the maximum double buffer size as been set for the receiving
1006 * repaint manager.
1007 *
1008 * @param c the component
1009 * @param proposedWidth the width of the buffer
1010 * @param proposedHeight the height of the buffer
1011 *
1012 * @return the image
1013 */
1014 public Image getOffscreenBuffer(Component c,int proposedWidth,int proposedHeight) {
1015 RepaintManager delegate = getDelegate(c);
1016 if (delegate != null) {
|
973 tmp.y + rootDy - dy);
974 r = dirtyComponents.get(rootDirtyComponent);
975 SwingUtilities.computeUnion(tmp.x,tmp.y,tmp.width,tmp.height,r);
976 }
977
978 // If we haven't seen this root before, then we need to add it to the
979 // list of root dirty Views.
980
981 if (!roots.contains(rootDirtyComponent))
982 roots.add(rootDirtyComponent);
983 }
984
985
986 /**
987 * Returns a string that displays and identifies this
988 * object's properties.
989 *
990 * @return a String representation of this object
991 */
992 public synchronized String toString() {
993 return dirtyComponents != null ? dirtyComponents.toString() : "";
994 }
995
996
997 /**
998 * Return the offscreen buffer that should be used as a double buffer with
999 * the component <code>c</code>.
1000 * By default there is a double buffer per RepaintManager.
1001 * The buffer might be smaller than <code>(proposedWidth,proposedHeight)</code>
1002 * This happens when the maximum double buffer size as been set for the receiving
1003 * repaint manager.
1004 *
1005 * @param c the component
1006 * @param proposedWidth the width of the buffer
1007 * @param proposedHeight the height of the buffer
1008 *
1009 * @return the image
1010 */
1011 public Image getOffscreenBuffer(Component c,int proposedWidth,int proposedHeight) {
1012 RepaintManager delegate = getDelegate(c);
1013 if (delegate != null) {
|