Home | History | Annotate | Download | only in calendar

Lines Matching full:strand

874     // A single strand represents one color of events. Events are divided up by
875 // color to make them convenient to draw. The black strand is special in
903 * strand's color and calling drawLines on its set of points. The points are
952 // add a black strand by default, other colors will get added in
1144 DNAStrand strand = getOrCreateStrand(strands, CONFLICT_COLOR);
1146 if (strand.allDays == null) {
1147 strand.allDays = new int[numDays];
1153 if (strand.allDays[i] != 0) {
1155 strand.allDays[i] = CONFLICT_COLOR;
1158 strand.allDays[i] = event.color;
1170 DNAStrand strand = strandIterator.next();
1171 if (strand.count < 1 && strand.allDays == null) {
1175 strand.points = new float[strand.count * 4];
1176 strand.position = 0;
1180 // Add the points to the strand of that color
1181 DNAStrand strand = strands.get(segment.color);
1199 strand.points[strand.position++] = x;
1200 strand.points[strand.position++] = y0;
1201 strand.points[strand.position++] = x;
1202 strand.points[strand.position++] = y1;
1274 // increment the count for the correct color or add a new strand if we
1276 DNAStrand strand = getOrCreateStrand(strands, segment.color);
1277 strand.count++;
1281 * Try to get a strand of the given color. Create it if it doesn't exist.
1284 DNAStrand strand = strands.get(color);
1285 if (strand == null) {
1286 strand = new DNAStrand();
1287 strand.color = color;
1288 strand.count = 0;
1289 strands.put(strand.color, strand);
1291 return strand;