* Nodes with unknown positions are layouted above the complete layout.
* @param network
*/
public void applyLayoutPositionsToNetwork(CyNetwork network){
CyNetworkView view = Cytoscape.getNetworkView(network.getIdentifier());
String key;
BoundingBox box;
Point point;
double offset = 80.0;
double current_x = min_x;
double current_y = min_y - 2.0*offset;
double x;
double y;
@SuppressWarnings("unchecked")
List<Node> nodes = network.nodesList();
for (Node node : nodes){
key = node.getIdentifier();
if (speciesBoundingBoxes.containsKey(key)){
box = speciesBoundingBoxes.get(key);
} else {
box = reactionBoundingBoxes.get(key);
}
// set the position of the node
giny.view.NodeView nodeView = view.getNodeView(node);
point = box.getPosition();
x = point.getX();
y = point.getY();