ui.addRow("Active graph element: ", getActiveGraphElementInfo(pt));
return ui;
}
private JLabel getActiveGraphElementInfo(Point pt) {
GraphUiElement active = getActiveElement(pt);
if (active != null) {
// TODO: Add report() method to GraphUiElement
return new JLabel(active.toString());
} else {
return new JLabel("[none]");
}
}