pont-us / PuffinPlot

A program to plot and analyse palaeomagnetic data
GNU General Public License v3.0
3 stars 0 forks source link

Add more FreeHEP output formats #365

Open pont-us opened 3 years ago

pont-us commented 3 years ago

Just implement every FreeHEP output format (except SWF). Including the bitmap ones. Assuming it can be done in a uniform way, but I assume so.

GUI for choosing output format: JFileChooser can handle multiple formats, but FileDialog can't and Mac users don't like JFileChooser. So best handle format selection in a separate dialog before the file chooser. That will also be a handy place to integrate any other export options (e.g. resolution for bitmaps). Alternatively, maybe the JavaFX file chooser could be a saviour here.

Apart from multipage PDF, I think multi-format output will mainly involve generalizing saveToSvgFreehep with a big old switch statement.