Lines Matching refs:paintRects
58 private Rectangle paintRects[] = new Rectangle[RECT_COUNT];
80 paintRects[i] = ra.paintRects[i];
103 if (paintRects[addTo] != null) {
104 paintRects[addTo].add(r);
106 paintRects[addTo] = new Rectangle(r);
123 paintRects[i] = null;
130 if (paintRects[i] != null) {
142 Rectangle rect = paintRects[i];
161 paintRects[i] = null;
174 if (subtract(paintRects[i], subtract)) {
175 if (paintRects[i] != null && paintRects[i].isEmpty()) {
176 paintRects[i] = null;
205 if (!subtract(ra.paintRects[VERTICAL], ra.paintRects[HORIZONTAL])) {
206 subtract(ra.paintRects[HORIZONTAL], ra.paintRects[VERTICAL]);
209 if (ra.paintRects[HORIZONTAL] != null && ra.paintRects[VERTICAL] != null) {
210 Rectangle paintRect = ra.paintRects[HORIZONTAL].union(ra.paintRects[VERTICAL]);
212 int benefit = square - ra.paintRects[HORIZONTAL].width
213 * ra.paintRects[HORIZONTAL].height - ra.paintRects[VERTICAL].width
214 * ra.paintRects[VERTICAL].height;
217 ra.paintRects[HORIZONTAL] = paintRect;
218 ra.paintRects[VERTICAL] = null;
221 for (int i = 0; i < paintRects.length; i++) {
222 if (ra.paintRects[i] != null
223 && !ra.paintRects[i].isEmpty())
230 g.setClip(ra.paintRects[i]);
235 g.clearRect( ra.paintRects[i].x,
236 ra.paintRects[i].y,
237 ra.paintRects[i].width,
238 ra.paintRects[i].height);
308 return super.toString() + "[ horizontal=" + paintRects[0] +
309 " vertical=" + paintRects[1] +
310 " update=" + paintRects[2] + "]";