SwingGUI
constructor(environment: Environment<T, P>, graphicsFile: File?, failOnHeadless: Boolean = false, closeOperation: Int = JFrame.EXIT_ON_CLOSE)(source)
Builds a single-use graphical interface.
Parameters
environment
the simulation environment for this GUI
graphicsFile
optional effects file to load
failOnHeadless
if true, throw when running in headless mode; otherwise only warn
closeOperation
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)(source)
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
failOnHeadless
if true, throw when running in headless mode; otherwise only warn
closeOperation
the type of close operation for this GUI