Hi,
I just finished updating my code to use the latest jung library, but i'm dammned if i can get the node labels to appear. (they used to)
Basically I start with an empty graph then add each node and link it in.
this obviously requires that i implement & call
layout.update();
vv.repaint();
now my nodes appear correctly , but the lables associated with the nodes do not.
the code for adding the node is as follows:
Vertex v1 = graph.addVertex(new DirectedSparseVertex());
if (vertices == 1) {
v_prev = v1; // save the first 1
}
// wire it to edges
if (v_prev != null) {
graph.addEdge(new DirectedSparseEdge(v_prev, v1));
labler.setLabel(v1, NodeLabel[ARRAY_ITEM_CONTACT_NAME] + ":" + eid);
} else {
//empty
}
and if i look at the hashmap associated with "labler" in the debugger, i can indeed see my labels stored in the internal jung hashmap. but they just will not print.
Any ideas where i can start to look?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I just finished updating my code to use the latest jung library, but i'm dammned if i can get the node labels to appear. (they used to)
Basically I start with an empty graph then add each node and link it in.
this obviously requires that i implement & call
layout.update();
vv.repaint();
now my nodes appear correctly , but the lables associated with the nodes do not.
the code for adding the node is as follows:
Vertex v1 = graph.addVertex(new DirectedSparseVertex());
if (vertices == 1) {
v_prev = v1; // save the first 1
}
// wire it to edges
if (v_prev != null) {
graph.addEdge(new DirectedSparseEdge(v_prev, v1));
labler.setLabel(v1, NodeLabel[ARRAY_ITEM_CONTACT_NAME] + ":" + eid);
} else {
//empty
}
and if i look at the hashmap associated with "labler" in the debugger, i can indeed see my labels stored in the internal jung hashmap. but they just will not print.
Any ideas where i can start to look?