App

org.nlogo.app.App
See theApp companion object
class App extends LinkChild, Handler, Handler, Handler, Handler, Handler, Handler, Handler, Handler, Handler, Handler, Handler, Controllable

Attributes

Companion
object
Source
App.scala
Graph
Supertypes
trait Controllable
trait Handler
trait Handler
trait Handler
trait Handler
trait Handler
trait Handler
trait Handler
trait Handler
trait Handler
trait Handler
trait Handler
trait Handler
trait LinkChild
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

Attributes

Source
App.scala
def additionalSections: Seq[ModelSaveable]

Attributes

Source
App.scala
def askForName(): String

Attributes

Source
App.scala
def command(source: String): Unit

Runs NetLogo commands and waits for them to complete.

Runs NetLogo commands and waits for them to complete.

This method must not be called from the AWT event queue thread or while that thread is blocked. It is an error to do so.

Value parameters

source

The command or commands to run

Attributes

Throws
IllegalStateException

if called from the AWT event queue thread

org.nlogo.core.CompilerException

if the code fails to compile

See also

#commandLater

Source
App.scala
def commandLater(source: String): Unit

Runs NetLogo commands in the background. Returns immediately, without waiting for the commands to finish.

Runs NetLogo commands in the background. Returns immediately, without waiting for the commands to finish.

This method may be called from any thread.

Value parameters

source

The command or commands to run

Attributes

Throws
org.nlogo.core.CompilerException

if the code fails to compile

See also

#command

Source
App.scala
def compile(): Unit

Recompiles the model. Useful after calling setProcedures().

Recompiles the model. Useful after calling setProcedures().

Attributes

See also

#setProcedures

Source
App.scala

Recompiles the model after any other events in progress have finished. Useful if you interrupt a failed compile to ask the user about a workaround to try, like with a missing extension installation from the library.

Recompiles the model after any other events in progress have finished. Useful if you interrupt a failed compile to ask the user about a workaround to try, like with a missing extension installation from the library.

Attributes

See also

#compile

Source
App.scala

Attributes

Source
App.scala

Attributes

Source
App.scala

Attributes

Source
App.scala

Returns the contents of the Code tab.

Returns the contents of the Code tab.

Attributes

Returns

contents of Code tab

Source
App.scala
def handle(e: ZoomedEvent): Unit

Attributes

Source
App.scala
def handle(e: AppEvent): Unit

Internal use only.

Internal use only.

Attributes

Source
App.scala
final def handle(e: SwitchedTabsEvent): Unit

Internal use only.

Internal use only.

Attributes

Source
App.scala
def handle(e: OpenLibrariesDialogEvent): Unit

Internal use only.

Internal use only.

Attributes

Source
App.scala
def handle(e: ModelSavedEvent): Unit

Internal use only.

Internal use only.

Attributes

Source
App.scala
def handle(e: LoadBeginEvent): Unit

Internal use only.

Internal use only.

Attributes

Source
App.scala
def handle(e: BeforeLoadEvent): Unit

Internal use only.

Internal use only.

Attributes

Source
App.scala
def handle(e: LoadEndEvent): Unit

Internal use only.

Internal use only.

Attributes

Source
App.scala
def handle(e: LoadModelEvent): Unit

Attributes

Source
App.scala
def handle(e: AboutToQuitEvent): Unit

Internal use only.

Internal use only.

Attributes

Source
App.scala
def handle(t: Throwable): Unit

Internal use only.

Internal use only.

Attributes

Source
App.scala

This is called reflectively by the mac app wrapper with the full path. This will only be called after appHandler.ready has been called.

This is called reflectively by the mac app wrapper with the full path. This will only be called after appHandler.ready has been called.

Value parameters

path

the path (absolute) to the NetLogo model to open.

Attributes

Source
App.scala
def handleQuit(): Unit

This is called reflectively by the mac app wrapper.

This is called reflectively by the mac app wrapper.

Attributes

Source
App.scala

This is called reflectively by the mac app wrapper.

This is called reflectively by the mac app wrapper.

Attributes

Source
App.scala

This is called reflectively by the mac app wrapper.

This is called reflectively by the mac app wrapper.

Attributes

Source
App.scala
def info: String

Attributes

Source
App.scala
def libraryOpen(path: String): Unit

Attributes

Source
App.scala

Attributes

Source
App.scala
override def open(path: String, shouldAutoInstallLibs: Boolean): Unit

Opens a model stored in a file.

Opens a model stored in a file.

Value parameters

path

the path (absolute or relative) of the NetLogo model to open.

Attributes

Definition Classes
Source
App.scala
def openFromSource(name: String, source: String): Unit

Opens a model stored in a string.

Opens a model stored in a string.

Value parameters

name

Model name (will appear in the main window's title bar)

source

The complete model, including widgets and so forth, in the same format as it would be stored in a file.

Attributes

Source
App.scala
def openFromSource(source: String, path: String, modelType: ModelType): Unit

Attributes

Source
App.scala
def pressButton(name: String): Unit

Not currently supported. For now, use command or commandLater() instead.

Not currently supported. For now, use command or commandLater() instead.

Value parameters

name

the button to press

Attributes

See also

#command

#commandLater

Source
App.scala

Attributes

Source
App.scala
def quit(): Unit

Quits NetLogo by exiting the JVM. Asks user for confirmation first if they have unsaved changes. If the user confirms, calls System.exit(0).

Quits NetLogo by exiting the JVM. Asks user for confirmation first if they have unsaved changes. If the user confirms, calls System.exit(0).

Attributes

Source
App.scala

Attributes

Source
App.scala
def report(source: String): Object

Runs a NetLogo reporter.

Runs a NetLogo reporter.

This method must not be called from the AWT event queue thread or while that thread is blocked. It is an error to do so.

Value parameters

source

The reporter to run

Attributes

Returns

the result reported; may be of type java.lang.Integer, java.lang.Double, java.lang.Boolean, java.lang.String, [[org.nlogo.core.LogoList]], [[org.nlogo.api.Agent]], AgentSet, or Nobody

Throws
IllegalStateException

if called from the AWT event queue thread

org.nlogo.core.CompilerException

if the code fails to compile

Source
App.scala
def resetZoom(): Unit

Attributes

Source
App.scala

Attributes

Source
App.scala

Attributes

Source
App.scala
def setIgnorePopups(ignore: Boolean): Unit

Attributes

Source
App.scala
def setMenuBar(menuBar: MainMenuBar): Unit

Attributes

Source
App.scala
def setProcedures(source: String): Unit

Replaces the contents of the Code tab. Does not recompile the model.

Replaces the contents of the Code tab. Does not recompile the model.

Value parameters

source

new contents

Attributes

See also

#compile

Source
App.scala

Attributes

Source
App.scala

Internal use only.

Internal use only.

Attributes

Source
App.scala

Internal use only.

Internal use only.

Attributes

Source
App.scala

Attributes

Source
App.scala
def smartPack(targetSize: Dimension, allowShrink: Boolean): Unit

Attributes

Source
App.scala

Attributes

Source
App.scala

Attributes

Source
App.scala

Attributes

Source
App.scala

Attributes

Source
App.scala

Attributes

Source
App.scala

Concrete fields

Attributes

Source
App.scala
lazy val allActions: Seq[Action]

Attributes

Source
App.scala

Attributes

Source
App.scala

Attributes

Source
App.scala
val isMac: Boolean

Attributes

Source
App.scala

Attributes

Source
App.scala
lazy val modelingCommons: ModelingCommonsInterface

Attributes

Source
App.scala

Attributes

Source
App.scala

Attributes

Source
App.scala

Attributes

Source
App.scala
lazy val owner: SimpleJobOwner

Attributes

Source
App.scala

Attributes

Source
App.scala