Home
last modified time | relevance | path

Searched refs:ViewNode (Results 1 – 9 of 9) sorted by relevance

/sdk/hierarchyviewer/src/com/android/hierarchyviewer/ui/model/
DViewsTreeModel.java19 import com.android.hierarchyviewer.scene.ViewNode;
26 private final ViewNode root;
28 public ViewsTreeModel(ViewNode root) { in ViewsTreeModel()
37 return ((ViewNode) o).children.get(i); in getChild()
41 return ((ViewNode) o).children.size(); in getChildCount()
45 ViewNode node = (ViewNode) child; in isLeaf()
54 return ((ViewNode) parent).children.indexOf(child); in getIndexOfChild()
DPropertiesTableModel.java19 import com.android.hierarchyviewer.scene.ViewNode;
26 private List<ViewNode.Property> properties;
27 private List<ViewNode.Property> privateProperties = new ArrayList<ViewNode.Property>();
29 public PropertiesTableModel(ViewNode node) { in PropertiesTableModel()
34 private void loadPrivateProperties(ViewNode node) { in loadPrivateProperties()
37 ViewNode p = node.parent; in loadPrivateProperties()
44 ViewNode.Property property = new ViewNode.Property(); in loadPrivateProperties()
49 property = new ViewNode.Property(); in loadPrivateProperties()
63 ViewNode.Property property; in getValueAt()
/sdk/hierarchyviewer/src/com/android/hierarchyviewer/scene/
DViewHierarchyLoader.java64 Stack<ViewNode> stack = new Stack<ViewNode>(); in loadScene()
67 ViewNode lastNode = null; in loadScene()
89 lastNode = new ViewNode(); in loadScene()
103 final ViewNode parent = stack.peek(); in loadScene()
136 private static void updateIndices(ViewNode root) { in updateIndices()
141 for (ViewNode node : root.children) { in updateIndices()
154 private static void loadProperties(ViewNode node, String data) { in loadProperties()
160 ViewNode.Property property = new ViewNode.Property(); in loadProperties()
182 Collections.sort(node.properties, new Comparator<ViewNode.Property>() { in loadProperties()
183 public int compare(ViewNode.Property source, ViewNode.Property destination) { in loadProperties()
DViewHierarchyScene.java38 public class ViewHierarchyScene extends GraphScene<ViewNode, String> {
39 private ViewNode root;
53 public ViewNode getRoot() { in getRoot()
57 void setRoot(ViewNode root) { in setRoot()
62 protected Widget attachNodeWidget(ViewNode node) { in attachNodeWidget()
70 private Widget createBox(ViewNode node, String nodeName, String id) { in createBox()
127 … protected void attachEdgeSourceAnchor(String edge, ViewNode oldSourceNode, ViewNode sourceNode) { in attachEdgeSourceAnchor()
136 … protected void attachEdgeTargetAnchor(String edge, ViewNode oldTargetNode, ViewNode targetNode) { in attachEdgeTargetAnchor()
144 private static class GradientWidget extends Widget implements ViewNode.StateListener {
194 private final ViewNode node;
[all …]
DViewNode.java26 public class ViewNode { class
33 public ViewNode parent;
34 public List<ViewNode> children = new ArrayList<ViewNode>();
149 final ViewNode other = (ViewNode) obj; in equals()
200 void nodeStateChanged(ViewNode node); in nodeStateChanged()
201 void nodeIndexChanged(ViewNode node); in nodeIndexChanged()
/sdk/hierarchyviewer/src/com/android/hierarchyviewer/ui/
DLayoutRenderer.java20 import com.android.hierarchyviewer.scene.ViewNode;
78 ViewNode root = scene.getRoot(); in paintComponent()
94 ViewNode node = (ViewNode) selection.iterator().next(); in paintComponent()
97 ViewNode p = node.parent; in paintComponent()
112 private void drawChildren(Graphics g, ViewNode root, int x, int y) { in drawChildren()
114 for (ViewNode node : root.children) { in drawChildren()
139 ViewNode root = scene.getRoot(); in selectChild()
152 ViewNode hit = findChild(root, root, x, y); in selectChild()
158 private ViewNode findChild(ViewNode root, ViewNode besthit, int x, int y) { in findChild()
159 ViewNode hit = besthit; in findChild()
[all …]
DCaptureRenderer.java19 import com.android.hierarchyviewer.scene.ViewNode;
25 private ViewNode node;
28 CaptureRenderer(ImageIcon icon, ViewNode node) { in CaptureRenderer()
DWorkspace.java30 import com.android.hierarchyviewer.scene.ViewNode;
592 ViewNode node = (ViewNode) event.getPath().getLastPathComponent(); in buildPixelPerfectPanel()
663 private void showProperties(ViewNode node) { in showProperties()
694 ViewNode root = (ViewNode) tree.getModel().getRoot(); in expandAll()
700 ViewNode node = (ViewNode)parent.getLastPathComponent(); in expandAll()
702 for (ViewNode n : node.children) { in expandAll()
752 TreeGraphLayout<ViewNode, String> layout = in layoutScene()
753 new TreeGraphLayout<ViewNode, String>(scene, 50, 50, 70, 30, true); in layoutScene()
819 private void showCaptureWindow(ViewNode node, String captureParams, Image image) { in showCaptureWindow()
1003 final ViewNode root = scene.getRoot(); in updateFilteredNodes()
[all …]
DScreenViewer.java5 import com.android.hierarchyviewer.scene.ViewNode;
72 private ViewNode node;
241 void select(ViewNode node) { in select()
583 ViewNode p = node.parent; in paintComponent()