addEdge in VisibleLocality
Status: Alpha
Brought to you by:
x_ander
addEdge in VisibleLocality does not make the edge
visible:
public void addEdge( Edge edge ) {
if(!contains(edge)) {
super.addEdge(edge);
edge.from.visibleEdgeCnt++;
edge.to.visibleEdgeCnt++;
}
}
An extra line, edge.setVisible(true); is required after
super.addEdge(edge).
I am pretty sure that this is a bug, as the class
description states that edges and nodes are made
visible when added and that the visibility is set to false
when they are removed. The removeEdge, addNode,
removeNode all do this, yet addEdge doesn't.