Lines Matching refs:bands

40  * consists of a number of Y ranges each containing multiple X bands.
53 * bands[rowstart+0] = Y0; // starting Y coordinate
54 * bands[rowstart+1] = Y1; // ending Y coordinate - endY > startY
55 * bands[rowstart+2] = N; // number of X bands - N >= 1
57 * bands[rowstart+3] = X10; // starting X coordinate of first band
58 * bands[rowstart+4] = X11; // ending X coordinate of first band
59 * bands[rowstart+5] = X20; // starting X coordinate of second band
60 * bands[rowstart+6] = X21; // ending X coordinate of second band
62 * bands[rowstart+3+N*2-2] = XN0; // starting X coord of last band
63 * bands[rowstart+3+N*2-1] = XN1; // ending X coord of last band
65 * bands[rowstart+3+N*2] = ... // start of next Y row
85 int[] bands;
180 private Region(int lox, int loy, int hix, int hiy, int[] bands, int end) {
185 this.bands = bands;
215 * bands of devBounds is needed, then an intersection of the
246 * bands of devBounds is needed, then an intersection of the
298 final int[] bands = new int[(y2 - y1) * 5];
308 bands[end++] = spanloy;
309 bands[end++] = spanhiy;
310 bands[end++] = 1; // 1 span per row
311 bands[end++] = spanlox;
312 bands[end++] = spanhix;
316 return end != 0 ? new Region(lox, loy, hix, hiy, bands, end)
414 int bands[] = this.bands;
415 if (bands != null) {
418 int i = 0; // index for source bands
423 newbands[j++] = y1 = clipScale(bands[i++], sy);
424 newbands[j++] = y2 = clipScale(bands[i++], sy);
425 newbands[j++] = ncol = bands[i++];
429 int x1 = clipScale(bands[i++], sx);
430 int x2 = clipScale(bands[i++], sx);
439 // Did we get any non-empty bands in this row?
448 // No rows or bands were generated...
457 // ret.endIndex and ret.bands were never initialized...
461 // Generated multiple bands and/or multiple rows...
463 ret.bands = newbands;
491 int bands[] = this.bands;
492 if (bands != null) {
496 ret.bands = newbands;
500 newbands[i] = bands[i] + dy; i++;
501 newbands[i] = bands[i] + dy; i++;
502 newbands[i] = ncol = bands[i]; i++;
504 newbands[i] = bands[i] + dx; i++;
505 newbands[i] = bands[i] + dx; i++;
518 int bands[] = this.bands;
519 if (bands != null) {
522 int i = 0; // index for source bands
527 newbands[j++] = y1 = clipAdd(bands[i++], dy);
528 newbands[j++] = y2 = clipAdd(bands[i++], dy);
529 newbands[j++] = ncol = bands[i++];
533 int x1 = clipAdd(bands[i++], dx);
534 int x2 = clipAdd(bands[i++], dx);
543 // Did we get any non-empty bands in this row?
552 // No rows or bands were generated...
561 // ret.endIndex and ret.bands were never initialized...
565 // Generated multiple bands and/or multiple rows...
567 ret.bands = newbands;
631 if (bands != null) {
749 int abands[] = ra.bands;
750 int bbands[] = rb.bands;
927 if (this.bands == null &&
979 if (endIndex == 0 || spanloy >= bands[curYrow + 1]) {
980 if (bands == null) {
981 bands = new int[INIT_SIZE];
987 bands[endIndex++] = spanloy;
988 bands[endIndex++] = spanhiy;
989 bands[endIndex++] = 0;
990 } else if (spanloy == bands[curYrow] &&
991 spanhiy == bands[curYrow + 1] &&
992 spanlox >= bands[endIndex - 1]) {
993 if (spanlox == bands[endIndex - 1]) {
994 bands[endIndex - 1] = spanhix;
1001 bands[endIndex++] = spanlox;
1002 bands[endIndex++] = spanhix;
1003 bands[curYrow + 2]++;
1007 if (endIndex + num >= bands.length) {
1008 int[] newbands = new int[bands.length + GROW_SIZE];
1009 System.arraycopy(bands, 0, newbands, 0, endIndex);
1010 bands = newbands;
1018 int[] bands = this.bands;
1019 if (bands[prev + 1] == bands[cur] &&
1020 bands[prev + 2] == bands[cur + 2])
1022 int num = bands[cur + 2] * 2;
1026 if (bands[cur++] != bands[prev++]) {
1033 bands[box[5] + 1] = bands[prev + 1];
1044 int[] bands = this.bands;
1049 loy = bands[0];
1050 hiy = bands[1];
1051 lox = bands[3];
1052 hix = bands[4];
1055 this.bands = null;
1065 int numbands = bands[i + 2];
1067 if (lox > bands[i]) {
1068 lox = bands[i];
1071 if (hix < bands[i - 1]) {
1072 hix = bands[i - 1];
1077 this.loy = bands[0];
1079 this.hiy = bands[hiyindex + 1];
1146 return (bands == null);
1154 if (bands == null) return true;
1157 if (y < bands[i++]) {
1160 if (y >= bands[i++]) {
1161 int numspans = bands[i++];
1164 int end = bands[i++];
1167 if (x < bands[i++]) return false;
1168 if (x < bands[i++]) return true;
1203 return (r.bands == null &&
1214 * actually intersects any bands.
1229 * actually intersects any bands.
1244 return (this.bands == null &&
1268 return (this.bands == null &&
1322 if (bands == null) {
1342 if (bands != null) {
1346 sb.append(bands[col++]);
1348 sb.append(bands[col++]);
1350 int end = bands[col++];
1354 sb.append(bands[col++]);
1356 sb.append(bands[col++]);
1390 if (this.bands == null) {
1391 return (r.bands == null);
1392 } else if (r.bands == null) {
1398 int abands[] = this.bands;
1399 int bbands[] = r.bands;