Swing GUI
constructor(environment: Environment<T, P>, graphicsFile: File?, failOnHeadless: Boolean = false, closeOperation: Int = JFrame.EXIT_ON_CLOSE)
Builds a single-use graphical interface.
Parameters
environment
the simulation environment for this GUI
graphics File
optional effects file to load
fail On Headless
if true, throw when running in headless mode; otherwise only warn
close Operation
the type of close operation for this GUI
constructor(environment: Environment<T, P>, graphics: String? = null, failOnHeadless: Boolean = false, closeOperation: Int = JFrame.EXIT_ON_CLOSE)
Builds a single-use graphical interface from an effects file path.
Parameters
environment
the simulation environment for this GUI
graphics
optional path to an effects file
fail On Headless
if true, throw when running in headless mode; otherwise only warn
close Operation
the type of close operation for this GUI