Lines Matching refs:g
65 protected void paintComponent(Graphics g) { in paintComponent() argument
66 g.setColor(getBackground()); in paintComponent()
67 g.fillRect(0, 0, getWidth(), getHeight()); in paintComponent()
70 g.clipRect(insets.left, insets.top, in paintComponent()
85 g.translate(insets.left + x, insets.top + y); in paintComponent()
87 g.setColor(getForeground()); in paintComponent()
88 g.drawRect(root.left, root.top, root.width - 1, root.height - 1); in paintComponent()
89 g.clipRect(root.left - 1, root.top - 1, root.width + 1, root.height + 1); in paintComponent()
90 drawChildren(g, root, -root.scrollX, -root.scrollY); in paintComponent()
95 g.setColor(Color.RED); in paintComponent()
96 Graphics s = g.create(); in paintComponent()
109 g.translate(-insets.left - x, -insets.top - y); in paintComponent()
112 private void drawChildren(Graphics g, ViewNode root, int x, int y) { in drawChildren() argument
113 g.translate(x, y); in drawChildren()
116 g.drawRect(node.left, node.top, node.width - 1, node.height - 1); in drawChildren()
120 drawChildren(g, node, in drawChildren()
125 g.translate(-x, -y); in drawChildren()