Hi all,
So my question is as follows:
I want to build a programmatic charting library. Basically the user will do something as follows. in Driver.scala, which extends App:
import myChartingLib
// run some simulation code here.... returns Results
myChartinLib.plotLineChart(Results)
// run some more simulation code here... returns Results2
myChartinLib.plotBarChart(Results)
Running this code will create a line chart and a bar chart. Now an issue I see is that ScalaFX has only one entry point; JFXApp which is essentially the main class. The problem is I only want ScalaFX to render some charts, since my Driver class extends App. I do not want to have JFXApp as my main. If this is unclear please let me know.
Is this possible? I would love to use ScalaFX to build a library, but I don't know if I should resort to something else for my needs. Any guidance is much appreciated. I cannot use a pre-made charting lib like jfreecharts due to restrictions.