Lines Matching full:neighbor
2945 Event neighbor = mSelectedEvents.get(jj);
2946 int neighborPosition = neighbor.getColumn();
2948 ev.nextUp = neighbor;
2950 ev.nextDown = neighbor;
3014 // Computes the "nearest" neighbor event in four directions (left, right,
3093 // all the other events in that list for the nearest neighbor in 4
3170 // For each neighbor, figure out if it is above or below or left
3176 Event neighbor = mSelectedEvents.get(jj);
3177 int neighborLeft = (int) neighbor.left;
3178 int neighborRight = (int) neighbor.right;
3179 if (neighbor.endTime <= startTime) {
3180 // This neighbor is entirely above me.
3183 int distance = startTime - neighbor.endTime;
3186 upEvent = neighbor;
3206 upEvent = neighbor;
3210 } else if (neighbor.startTime >= endTime) {
3211 // This neighbor is entirely below me.
3214 int distance = neighbor.startTime - endTime;
3217 downEvent = neighbor;
3237 downEvent = neighbor;
3244 // This neighbor is entirely to the right of me.
3245 // Take the closest neighbor in the y direction.
3248 int neighborBottom = (int) neighbor.bottom;
3249 int neighborTop = (int) neighbor.top;
3257 rightEvent = neighbor;
3264 rightEvent = neighbor;
3268 // This neighbor is entirely to the left of me.
3269 // Take the closest neighbor in the y direction.
3272 int neighborBottom = (int) neighbor.bottom;
3273 int neighborTop = (int) neighbor.top;
3281 leftEvent = neighbor;
3288 leftEvent = neighbor;