Lines Matching refs:Grid
52 private Grid thumbGrid;
53 private Grid highlightGrid;
82 thumbGrid = Grid.getGrid(color, trackColor);
87 highlightGrid = Grid.getGrid(color, trackHighlightColor);
364 * Grid is used to draw the track for windows scrollbars. Grids
366 * of the foreground/background colors. Further the Grid is held through
368 * Grid is rather expensive to draw, it is drawn in a BufferedImage.
370 private static class Grid {
372 private static HashMap<String, WeakReference<Grid>> map;
377 map = new HashMap<String, WeakReference<Grid>>();
380 public static Grid getGrid(Color fg, Color bg) {
382 WeakReference<Grid> ref = map.get(key);
383 Grid grid = (ref == null) ? null : ref.get();
385 grid = new Grid(fg, bg);
386 map.put(key, new WeakReference<Grid>(grid));
391 public Grid(Color fg, Color bg) {