Lines Matching refs:SCROLLBAR
37 public final static int SCROLLBAR;
45 SCROLLBAR = XToolkit.getUIDefaults().getInt("ScrollBar.defaultWidth");
81 vsbSpace = hsbSpace = SCROLLBAR;
129 return SCROLLBAR;
133 return SCROLLBAR;
166 hsbSpace = (cSize.width <= (width - 2*MARGIN) ? 0 : SCROLLBAR);
167 vsbSpace = (cSize.height <= (height - 2*MARGIN) ? 0 : SCROLLBAR);
170 hsbSpace = (cSize.width <= (width - SCROLLBAR - 2*MARGIN) ? 0 : SCROLLBAR);
173 vsbSpace = (cSize.height <= (height - SCROLLBAR - 2*MARGIN) ? 0 : SCROLLBAR);
408 // SCROLLBAR is the height of scrollbar area
409 // but the actual scrollbar is SCROLLBAR-SPACE high;
412 g.fillRect(MARGIN, height-SCROLLBAR, w, SPACE);
413 g.fillRect(0, height-SCROLLBAR, MARGIN, SCROLLBAR);
414 g.fillRect(MARGIN + w, height-SCROLLBAR, MARGIN, SCROLLBAR);
417 ng.translate(MARGIN, height - (SCROLLBAR - SPACE));
444 // SCROLLBAR is the width of scrollbar area
445 // but the actual scrollbar is SCROLLBAR-SPACE wide;
448 g.fillRect(width-SCROLLBAR, MARGIN, SPACE, h);
449 g.fillRect(width-SCROLLBAR, 0, SCROLLBAR, MARGIN);
450 g.fillRect(width-SCROLLBAR, MARGIN+h, SCROLLBAR, MARGIN);
453 ng.translate(width - (SCROLLBAR - SPACE), MARGIN);
491 vsb.handleMouseEvent(id,modifiers,x - (width - SCROLLBAR + SPACE),y-MARGIN);
495 hsb.handleMouseEvent(id,modifiers,x-MARGIN,y-(height - SCROLLBAR + SPACE));
514 vsb.handleMouseEvent(id,modifiers,x-(width - SCROLLBAR + SPACE),y-MARGIN);
517 hsb.handleMouseEvent(id,modifiers,x-MARGIN,y-(height - SCROLLBAR + SPACE));
542 return (x >= width - (SCROLLBAR - SPACE)) && (x < width) && (y >= MARGIN) && (y < h);
553 return (x >= MARGIN) && (x < w) && (y >= height - (SCROLLBAR - SPACE)) && (y < height);
597 hsbSpace = vsbSpace = SCROLLBAR;
600 hsbSpace = (cd.width <= (d.width - 2*MARGIN)? 0 : SCROLLBAR);
601 vsbSpace = (cd.height <= (d.height - 2*MARGIN)? 0 : SCROLLBAR);
604 hsbSpace = (cd.width <= (d.width - SCROLLBAR - 2*MARGIN)? 0 : SCROLLBAR);
607 vsbSpace = (cd.height <= (d.height - SCROLLBAR - 2*MARGIN)? 0 : SCROLLBAR);
636 g.fillRect(1, d.height - SCROLLBAR - 3, sbw - 1, SCROLLBAR - 3);
639 ng.translate(0, d.height - (SCROLLBAR - 2));
640 drawScrollbar(ng, bg, SCROLLBAR - 2, sbw,
648 g.fillRect(d.width - SCROLLBAR - 3, 1, SCROLLBAR - 3, sbh - 1);
651 ng.translate(d.width - (SCROLLBAR - 2), 0);
652 drawScrollbar(ng, bg, SCROLLBAR - 2, sbh,