Example #1
0
 /**
  * Exports the current diagram to the given exporter.
  *
  * @param aExporter the exporter to export to, cannot be <code>null</code>.
  * @param aOutputStream the output stream to write the export to, cannot be <code>null</code>.
  * @throws IOException in case of I/O problems.
  */
 public void exportTo(final Exporter aExporter, final OutputStream aOutputStream)
     throws IOException {
   if (this.mainFrame != null) {
     aExporter.export(this.dataContainer, this.mainFrame.getDiagramScrollPane(), aOutputStream);
   }
 }