Rectangle bounds = layout.getBounds(nodeUi.getNodeObject());
Object node = nodeUi.getNodeObject();
ui.addRow("Node: ", node != null ? node.toString() : "[null]");
ui.addRow("Bounds: ", String.valueOf(bounds));
ui.addRow("Minimum size: ", String.valueOf(nodeUi.getMinimumSize()));
ui.addRow("Preferred size: ", String.valueOf(nodeUi.getPreferredSize()));
for (GraphEdge in : getModel().getIncomingEdges(node)) {
ui.addRow("Incoming route: ", in.toString());
}
for (GraphEdge out : getModel().getOutgoingEdges(node)) {
ui.addRow("Outgoing route: ", out.toString());