Home
last modified time | relevance | path

Searched refs:insets (Results 1 – 2 of 2) sorted by relevance

/sdk/hierarchyviewer/src/com/android/hierarchyviewer/ui/
DLayoutRenderer.java69 Insets insets = getInsets(); in paintComponent() local
70 g.clipRect(insets.left, insets.top, in paintComponent()
71 getWidth() - insets.left - insets.right, in paintComponent()
72 getHeight() - insets.top - insets.bottom); in paintComponent()
83 int x = (getWidth() - insets.left - insets.right - root.width) / 2; in paintComponent()
84 int y = (getHeight() - insets.top - insets.bottom - root.height) / 2; in paintComponent()
85 g.translate(insets.left + x, insets.top + y); in paintComponent()
109 g.translate(-insets.left - x, -insets.top - y); in paintComponent()
144 Insets insets = getInsets(); in selectChild() local
146 int xoffset = (getWidth() - insets.left - insets.right - root.width) / 2 + insets.left + 1; in selectChild()
[all …]
DScreenViewer.java622 private final Insets insets = new Insets(0, 0, 0, 0); field in ScreenViewer.CrosshairPanel
638 getInsets(insets); in paint()
640 int x = (width - insets.left - insets.right) / 2; in paint()
641 int y = (height - insets.top - insets.bottom) / 2; in paint()
643 g.drawLine(insets.left + x, insets.top, insets.left + x, height - insets.bottom); in paint()
644 g.drawLine(insets.left, insets.top + y, width - insets.right, insets.top + y); in paint()
650 Insets insets = getInsets(); in paintComponent() local
651 g.fillRect(insets.left, insets.top, getWidth() - insets.left - insets.right, in paintComponent()
652 getHeight() - insets.top - insets.bottom); in paintComponent()