Lines Matching refs:display

100     /** Special constant to enable clipping to an overall display along the
107 /** Special constant to enable clipping to an overall display along the
303 * Apply additional gravity behavior based on the overall "display" that an
306 * within a visible display. By default this moves or clips the object
307 * to be visible in the display; the gravity flags
312 * display.
313 * @param display The rectangle of the display in which the object is
316 * modified if needed to fit in the display.
318 public static void applyDisplay(int gravity, Rect display, Rect inoutObj) {
320 if (inoutObj.top < display.top) inoutObj.top = display.top;
321 if (inoutObj.bottom > display.bottom) inoutObj.bottom = display.bottom;
324 if (inoutObj.top < display.top) off = display.top-inoutObj.top;
325 else if (inoutObj.bottom > display.bottom) off = display.bottom-inoutObj.bottom;
327 if (inoutObj.height() > (display.bottom-display.top)) {
328 inoutObj.top = display.top;
329 inoutObj.bottom = display.bottom;
338 if (inoutObj.left < display.left) inoutObj.left = display.left;
339 if (inoutObj.right > display.right) inoutObj.right = display.right;
342 if (inoutObj.left < display.left) off = display.left-inoutObj.left;
343 else if (inoutObj.right > display.right) off = display.right-inoutObj.right;
345 if (inoutObj.width() > (display.right-display.left)) {
346 inoutObj.left = display.left;
347 inoutObj.right = display.right;
357 * Apply additional gravity behavior based on the overall "display" that an
360 * within a visible display. By default this moves or clips the object
361 * to be visible in the display; the gravity flags
366 * display.
367 * @param display The rectangle of the display in which the object is
370 * modified if needed to fit in the display.
376 public static void applyDisplay(int gravity, Rect display, Rect inoutObj, int layoutDirection) {
378 applyDisplay(absGravity, display, inoutObj);