* @throws Exception
*/
private void exportData(GraphSheet graphSheet) throws Exception {
SupportSize supportSize = new SupportSize(595, 841, LengthUnit.PIXELS);
Progress.start(progress);
Graph graph = graphSheet.getGraph();
// calculates progress units count
int max = 0;
if (graph.showNodes()) {
max += graph.countNodes();
}
if (graph.showEdges()) {
max += graph.countUnidirectionalEdges() + graph.countBidirectionalEdges();
if (graph.showSelfLoops()) {
max += graph.countSelfLoops();
}
}
Progress.switchToDeterminate(progress, max);
// export tasks