Home
last modified time | relevance | path

Searched refs:insets (Results 1 – 6 of 6) 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()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/
DSelectionHandles.java95 Margins insets = canvas.getInsets(mItem.getNode().getFqcn()); in createHandles() local
96 if (insets != null) { in createHandles()
97 x1 += insets.left; in createHandles()
98 x2 -= insets.right; in createHandles()
99 y1 += insets.top; in createHandles()
100 y2 -= insets.bottom; in createHandles()
DSelectionOverlay.java203 Margins insets = mCanvas.getInsets(selectedNode.getFqcn()); in paintSelection() local
209 if (insets != null) { in paintSelection()
210 x1 += insets.left; in paintSelection()
211 x2 -= insets.right; in paintSelection()
212 y1 += insets.top; in paintSelection()
213 y2 -= insets.bottom; in paintSelection()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/grid/
DGridDropHandler.java623 Margins insets = metadata.getInsets(); in handleFreeFormDrop()
624 if (insets != null) { in handleFreeFormDrop()
628 margin -= insets.left; in handleFreeFormDrop()
661 Margins insets = metadata.getInsets(); in handleFreeFormDrop()
662 if (insets != null) { in handleFreeFormDrop()
666 margin -= insets.top; in handleFreeFormDrop()
DGridModel.java842 Margins insets = metadata.getInsets(); in initializeMaxBounds() local
843 if (insets != null) { in initializeMaxBounds()
844 x2 -= insets.right; in initializeMaxBounds()
845 y2 -= insets.bottom; in initializeMaxBounds()