setPaneMode(PANEMODE_COMPILE);
this.removeAll();
Node n;
Edge e;
UShape shape = null;
// Load all nodes.
for (int i = 0; i < nodeList.size(); i++) {
n = nodeList.get(i);
createNode(n);
if (reset == true && n instanceof ProbabilisticNode) {
shape = getNodeUShape(n);
}
if (n instanceof ContinuousNode || n instanceof ProbabilisticNode) {
shape = getNodeUShape(n);
shape.shapeTypeChange(UShapeProbabilisticNode.STYPE_BAR);
shape.setState(UShape.STATE_RESIZED, null);
}
}
// Load all Edges
for (int i = 0; i < edgeList.size(); i++) {
e = edgeList.get(i);
if (getNodeUShape(e.getOriginNode()) != null
&& getNodeUShape(e.getDestinationNode()) != null) {
UShapeLine line = new UShapeLine(this, getNodeUShape(e
.getOriginNode()),
getNodeUShape(e.getDestinationNode()));
line.setEdge(e);
// by young 1/23/2010
line.setLearningLineSelection(false);
addShape(line);
}