Methods Summary |
---|
public int | getColumnCount()
return 2;
|
public java.lang.String | getColumnName(int column)
return column == 0 ? "Property" : "Value";
|
public int | getRowCount()
return (privateProperties == null ? 0 : privateProperties.size()) +
(properties == null ? 0 : properties.size());
|
public java.lang.Object | getValueAt(int row, int column)
ViewNode.Property property;
if (row < privateProperties.size()) {
property = privateProperties.get(row);
} else {
property = properties.get(row - privateProperties.size());
}
return column == 0 ? property.name : property.value;
|
public boolean | isCellEditable(int arg0, int arg1)
return false;
|
private void | loadPrivateProperties(com.android.hierarchyviewer.scene.ViewNode node)
int x = node.left;
int y = node.top;
ViewNode p = node.parent;
while (p != null) {
x += p.left - p.scrollX;
y += p.top - p.scrollY;
p = p.parent;
}
ViewNode.Property property = new ViewNode.Property();
property.name = "absolute_x";
property.value = String.valueOf(x);
privateProperties.add(property);
property = new ViewNode.Property();
property.name = "absolute_y";
property.value = String.valueOf(y);
privateProperties.add(property);
|
public void | setValueAt(java.lang.Object arg0, int arg1, int arg2)
|