// create a list with all visible nodes and create the layout with these nodes
List<GSSElementGraphNode> nodes = new ArrayList<GSSElementGraphNode>();
for ( InternalNode internalNode : entitiesToLayout) {
if (internalNode.getLayoutEntity().getGraphData() instanceof GSSElementGraphNode ){
GSSElementGraphNode gssElementGraphNode = (GSSElementGraphNode) internalNode.getLayoutEntity().getGraphData();
if (gssElementGraphNode.isVisible())
nodes.add(gssElementGraphNode);
else ((GraphNode) internalNode.getLayoutEntity().getGraphData()).setLocation(0,0); // makes element flies form (0,0) if element is shown again
}
}
createGSSLayout(nodes);