class App extends LinkChild with Handler with Handler with Handler with Handler with Handler with Handler with ModelSections with Handler with Handler with Handler with Handler with Controllable
- Source
- App.scala
- Alphabetic
- By Inheritance
- App
- Controllable
- Handler
- Handler
- Handler
- Handler
- ModelSections
- Handler
- Handler
- Handler
- Handler
- Handler
- Handler
- Handler
- LinkChild
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new App()
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- var _fileManager: FileManager
-
def
additionalSections: Seq[ModelSaveable]
- Definition Classes
- App → ModelSections
- var aggregateManager: AggregateManagerInterface
- lazy val allActions: Seq[Action]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def askForName(): String
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @IntrinsicCandidate()
- def codeTabsPanel: CodeTabsPanel
-
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.
- source
The command or commands to run
- Definition Classes
- App → Controllable
- Annotations
- @throws( classOf[CompilerException] )
- Exceptions thrown
IllegalStateException
if called from the AWT event queue threadorg.nlogo.core.CompilerException
if the code fails to compile- See also
#commandLater
-
def
commandLater(source: String): Unit
Runs NetLogo commands in the background.
Runs NetLogo commands in the background. Returns immediately, without waiting for the commands to finish.
This method may be called from any thread.
- source
The command or commands to run
- Annotations
- @throws( classOf[CompilerException] )
- Exceptions thrown
org.nlogo.core.CompilerException
if the code fails to compile- See also
#command
-
def
compile(): Unit
Recompiles the model.
Recompiles the model. Useful after calling
setProcedures()
.- See also
#setProcedures
-
def
compileLater(): Unit
Recompiles the model after any other events in progress have finished.
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.
- See also
#compile
- var dirtyMonitor: DirtyMonitor
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def fileManager: FileManager
- val frame: AppFrame
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def getFrame: AppFrame
-
def
getLinkParent(): AppFrame
- Definition Classes
- App → LinkChild
- def getMonitorManager: AgentMonitorManager
-
def
getProcedures: String
Returns the contents of the Code tab.
Returns the contents of the Code tab.
- returns
contents of Code tab
-
def
handle(t: Throwable): Unit
Internal use only.
-
def
handle(e: AboutToQuitEvent): Unit
Internal use only.
Internal use only.
- Definition Classes
- App → Handler
-
def
handle(e: LoadEndEvent): Unit
Internal use only.
Internal use only.
- Definition Classes
- App → Handler
-
def
handle(e: BeforeLoadEvent): Unit
Internal use only.
Internal use only.
- Definition Classes
- App → Handler
-
def
handle(e: LoadBeginEvent): Unit
Internal use only.
Internal use only.
- Definition Classes
- App → Handler
-
def
handle(e: ModelSavedEvent): Unit
Internal use only.
Internal use only.
- Definition Classes
- App → Handler
-
def
handle(e: OpenLibrariesDialogEvent): Unit
Internal use only.
Internal use only.
- Definition Classes
- App → Handler
-
final
def
handle(e: SwitchedTabsEvent): Unit
Internal use only.
Internal use only.
- Definition Classes
- App → Handler
-
def
handle(e: AppEvent): Unit
Internal use only.
Internal use only.
- Definition Classes
- App → Handler
-
def
handle(e: ZoomedEvent): Unit
- Definition Classes
- App → Handler
-
def
handleOpenPath(path: String): Unit
This is called reflectively by the mac app wrapper with the full path.
This is called reflectively by the mac app wrapper with the full path. This will only be called after appHandler.ready has been called.
- path
the path (absolute) to the NetLogo model to open.
-
def
handleQuit(): Unit
This is called reflectively by the mac app wrapper.
-
def
handleShowAbout(): Unit
This is called reflectively by the mac app wrapper.
-
def
handleShowPreferences(): Unit
This is called reflectively by the mac app wrapper.
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
def
info: String
- Definition Classes
- App → ModelSections
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val isMac: Boolean
- var labManager: LabManagerInterface
-
def
libraryOpen(path: String): Unit
- Annotations
- @throws( classOf[java.io.IOException] )
-
def
linkShapes: Seq[LinkShape]
- Definition Classes
- App → ModelSections
- def linkShapesManager: ShapesManagerInterface
-
def
makeWidget(text: String): Unit
Adds new widget to Interface tab given its specification, in the same (undocumented) format found in a saved model.
Adds new widget to Interface tab given its specification, in the same (undocumented) format found in a saved model.
- text
the widget specification
- var menuBar: MenuBar
- lazy val modelingCommons: ModelingCommonsInterface
- var monitorManager: AgentMonitorManager
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
def
open(path: String, shouldAutoInstallLibs: Boolean = false): Unit
Opens a model stored in a file.
Opens a model stored in a file.
- path
the path (absolute or relative) of the NetLogo model to open.
- Definition Classes
- App → Controllable
- Annotations
- @throws( classOf[java.io.IOException] )
- lazy val openAboutDialog: ShowAboutWindow
- lazy val openColorDialog: OpenColorDialog
- def openFromSource(source: String, path: String, modelType: ModelType): Unit
-
def
openFromSource(name: String, source: String): Unit
Opens a model stored in a string.
Opens a model stored in a string.
- 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.
- lazy val openLibrariesDialog: OpenLibrariesDialog
- lazy val openPreferencesDialog: ShowPreferencesDialog
- lazy val owner: SimpleJobOwner
-
def
pressButton(name: String): Unit
Not currently supported.
Not currently supported. For now, use
command
orcommandLater()
instead.- name
the button to press
- See also
#command
#commandLater
-
def
procedureSource: String
- Definition Classes
- App → ModelSections
-
def
quit(): Unit
Quits NetLogo by exiting the JVM.
Quits NetLogo by exiting the JVM. Asks user for confirmation first if they have unsaved changes. If the user confirms, calls System.exit(0).
- Annotations
- @throws( classOf[UserCancelException] )
- var recentFilesMenu: RecentFilesMenu
-
def
report(source: String): AnyRef
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.
- source
The reporter to run
- 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
- Definition Classes
- App → Controllable
- Annotations
- @throws( classOf[CompilerException] )
- Exceptions thrown
IllegalStateException
if called from the AWT event queue threadorg.nlogo.core.CompilerException
if the code fails to compile
- def resetZoom(): Unit
- def setFileManager(manager: FileManager): Unit
- def setMenuBar(menuBar: MenuBar): Unit
-
def
setProcedures(source: String): Unit
Replaces the contents of the Code tab.
Replaces the contents of the Code tab. Does not recompile the model.
- source
new contents
- See also
#compile
-
def
showAboutWindow(): Unit
Internal use only.
-
def
showPreferencesDialog(): Unit
Internal use only.
- def smartPack(targetSize: Dimension, allowShrink: Boolean): Unit
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- def tabManager: AppTabManager
- def tabs: Tabs
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
turtleShapes: Seq[VectorShape]
- Definition Classes
- App → ModelSections
- def turtleShapesManager: ShapesManagerInterface
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
widgets: Seq[Widget]
- Definition Classes
- App → ModelSections
- def workspace: GUIWorkspace