/sdk/hierarchyviewer/src/com/android/hierarchyviewer/ui/ |
D | CaptureRenderer.java | 25 private ViewNode node; field in CaptureRenderer 28 CaptureRenderer(ImageIcon icon, ViewNode node) { in CaptureRenderer() argument 30 this.node = node; in CaptureRenderer() 38 if (node.hasMargins) { in getPreferredSize() 39 d.width += node.marginLeft + node.marginRight; in getPreferredSize() 40 d.height += node.marginTop + node.marginBottom; in getPreferredSize() 65 if ((node.paddingBottom | node.paddingLeft | in paintComponent() 66 node.paddingTop | node.paddingRight) != 0) { in paintComponent() 68 g.drawRect(node.paddingLeft, node.paddingTop, in paintComponent() 69 width - node.paddingRight - node.paddingLeft, in paintComponent() [all …]
|
D | LayoutRenderer.java | 94 ViewNode node = (ViewNode) selection.iterator().next(); in paintComponent() local 97 ViewNode p = node.parent; in paintComponent() 102 if (showExtras && node.image != null) { in paintComponent() 103 s.drawImage(node.image, node.left, node.top, null); in paintComponent() 105 s.drawRect(node.left, node.top, node.width - 1, node.height - 1); in paintComponent() 114 for (ViewNode node : root.children) { in drawChildren() 115 if (!node.willNotDraw) { in drawChildren() 116 g.drawRect(node.left, node.top, node.width - 1, node.height - 1); in drawChildren() 119 if (node.children.size() > 0) { in drawChildren() 120 drawChildren(g, node, in drawChildren() [all …]
|
D | ScreenViewer.java | 72 private ViewNode node; field in ScreenViewer 241 void select(ViewNode node) { in select() argument 242 this.node = node; in select() 580 if (node != null) { in paintComponent() 583 ViewNode p = node.parent; in paintComponent() 588 s.drawRect(node.left, node.top, node.width - 1, node.height - 1); in paintComponent() 589 s.translate(node.left, node.top); in paintComponent() 592 if ((node.paddingBottom | node.paddingLeft | in paintComponent() 593 node.paddingTop | node.paddingRight) != 0) { in paintComponent() 595 s.drawRect(node.paddingLeft, node.paddingTop, in paintComponent() [all …]
|
D | Workspace.java | 592 ViewNode node = (ViewNode) event.getPath().getLastPathComponent(); in buildPixelPerfectPanel() 593 screenViewer.select(node); in buildPixelPerfectPanel() 663 private void showProperties(ViewNode node) { in showProperties() argument 664 propertiesTable.setModel(new PropertiesTableModel(node)); in showProperties() 700 ViewNode node = (ViewNode)parent.getLastPathComponent(); in expandAll() local 701 if (node.children != null) { in expandAll() 702 for (ViewNode n : node.children) { in expandAll() 819 private void showCaptureWindow(ViewNode node, String captureParams, Image image) { in showCaptureWindow() argument 826 final CaptureRenderer label = new CaptureRenderer(new ImageIcon(image), node); in showCaptureWindow() 1016 for (ViewNode node : root.children) { in filterNodes() [all …]
|
/sdk/hierarchyviewer/src/com/android/hierarchyviewer/ui/model/ |
D | PropertiesTableModel.java | 29 public PropertiesTableModel(ViewNode node) { in PropertiesTableModel() argument 30 properties = node.properties; in PropertiesTableModel() 31 loadPrivateProperties(node); in PropertiesTableModel() 34 private void loadPrivateProperties(ViewNode node) { in loadPrivateProperties() argument 35 int x = node.left; in loadPrivateProperties() 36 int y = node.top; in loadPrivateProperties() 37 ViewNode p = node.parent; in loadPrivateProperties()
|
D | ViewsTreeModel.java | 45 ViewNode node = (ViewNode) child; in isLeaf() local 46 return node.children == null || node.children.size() == 0; in isLeaf()
|
/sdk/hierarchyviewer/src/com/android/hierarchyviewer/scene/ |
D | ViewHierarchyScene.java | 62 protected Widget attachNodeWidget(ViewNode node) { in attachNodeWidget() argument 63 Widget widget = createBox(node, node.name, node.id); in attachNodeWidget() 70 private Widget createBox(ViewNode node, String nodeName, String id) { in createBox() argument 72 node.setShortName(shortName); in createBox() 74 GradientWidget box = new GradientWidget(this, node); in createBox() 194 private final ViewNode node; field in ViewHierarchyScene.GradientWidget 203 public GradientWidget(ViewHierarchyScene scene, ViewNode node) { in GradientWidget() argument 205 this.node = node; in GradientWidget() 206 node.setStateListener(this); in GradientWidget() 219 child.setForeground(isSelected || node.filtered ? SELECTED : UNSELECTED); in pickChildrenColor() [all …]
|
D | ViewHierarchyLoader.java | 141 for (ViewNode node : root.children) { in updateIndices() 142 updateIndices(node); in updateIndices() 154 private static void loadProperties(ViewNode node, String data) { in loadProperties() argument 173 node.properties.add(property); in loadProperties() 174 node.namedProperties.put(property.name, property); in loadProperties() 182 Collections.sort(node.properties, new Comparator<ViewNode.Property>() { in loadProperties() 188 node.decode(); in loadProperties()
|
D | ViewNode.java | 200 void nodeStateChanged(ViewNode node); in nodeStateChanged() argument 201 void nodeIndexChanged(ViewNode node); in nodeIndexChanged() argument
|