loadLayoutForViewFromFile(view, file);
}
}
public static void loadLayoutForViewFromFile(CyNetworkView view, File file){
CyNetwork network = view.getNetwork();
HashMap<String, CySBMLBoundingBox> boxesMap = XMLInterface.readLayoutFromXML(file);
if (boxesMap != null){
@SuppressWarnings("unchecked")
List<CyNode> nodes = network.nodesList();
for (CyNode node : nodes){
// if position is stored
String nodeId = node.getIdentifier();
if (boxesMap.containsKey(nodeId)){
CySBMLBoundingBox box = boxesMap.get(nodeId);