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 Controllable

Source
App.scala
Linear Supertypes
Controllable, Handler, Handler, Handler, ModelSections, Handler, Handler, Handler, Handler, Handler, Handler, Handler, LinkChild, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. App
  2. Controllable
  3. Handler
  4. Handler
  5. Handler
  6. ModelSections
  7. Handler
  8. Handler
  9. Handler
  10. Handler
  11. Handler
  12. Handler
  13. Handler
  14. LinkChild
  15. AnyRef
  16. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new App()

Value Members

  1. var _fileManager: FileManager
  2. def additionalSections: Seq[ModelSaveable]
    Definition Classes
    App → ModelSections
  3. var aggregateManager: AggregateManagerInterface
  4. lazy val allActions: Seq[Action]
  5. var colorDialog: ColorDialog
  6. 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
    AppControllable
    Annotations
    @throws( classOf[CompilerException] )
    Exceptions thrown

    IllegalStateException if called from the AWT event queue thread

    org.nlogo.core.CompilerException if the code fails to compile

    See also

    #commandLater

  7. 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

  8. def compile(): Unit

    Recompiles the model.

    Recompiles the model. Useful after calling setProcedures().

    See also

    #setProcedures

  9. var dirtyMonitor: DirtyMonitor
  10. def fileManager: FileManager
  11. val frame: AppFrame
  12. def getLinkParent(): AppFrame
    Definition Classes
    App → LinkChild
  13. def getProcedures: String

    Returns the contents of the Code tab.

    Returns the contents of the Code tab.

    returns

    contents of Code tab

  14. def handle(t: Throwable): Unit

    Internal use only.

    Internal use only.

    Definition Classes
    AppHandler
  15. def handle(e: AboutToQuitEvent): Unit

    Internal use only.

    Internal use only.

    Definition Classes
    App → Handler
  16. def handle(e: LoadEndEvent): Unit

    Internal use only.

    Internal use only.

    Definition Classes
    App → Handler
  17. def handle(e: BeforeLoadEvent): Unit

    Internal use only.

    Internal use only.

    Definition Classes
    App → Handler
  18. def handle(e: LoadBeginEvent): Unit

    Internal use only.

    Internal use only.

    Definition Classes
    App → Handler
  19. def handle(e: ModelSavedEvent): Unit

    Internal use only.

    Internal use only.

    Definition Classes
    App → Handler
  20. final def handle(e: SwitchedTabsEvent): Unit

    Internal use only.

    Internal use only.

    Definition Classes
    App → Handler
  21. def handle(e: AppEvent): Unit

    Internal use only.

    Internal use only.

    Definition Classes
    App → Handler
  22. def handle(e: ZoomedEvent): Unit
    Definition Classes
    App → Handler
  23. 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.

  24. def handleQuit(): Unit

    This is called reflectively by the mac app wrapper.

  25. def handleShowAbout(): Unit

    This is called reflectively by the mac app wrapper.

  26. def handleShowPreferences(): Unit

    This is called reflectively by the mac app wrapper.

  27. def info: String
    Definition Classes
    App → ModelSections
  28. val isMac: Boolean
  29. var labManager: LabManagerInterface
  30. def libraryOpen(path: String): Unit
    Annotations
    @throws( classOf[java.io.IOException] )
  31. def linkShapes: Seq[LinkShape]
    Definition Classes
    App → ModelSections
  32. def linkShapesManager: ShapesManagerInterface
  33. 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

  34. var menuBar: MenuBar
  35. lazy val modelingCommons: ModelingCommonsInterface
  36. var monitorManager: AgentMonitorManager
  37. def open(path: String): 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
    AppControllable
    Annotations
    @throws( classOf[java.io.IOException] )
  38. lazy val openAboutDialog: ShowAboutWindow
  39. lazy val openColorDialog: OpenColorDialog
  40. def openFromSource(source: String, path: String, modelType: ModelType): Unit
  41. 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.

  42. lazy val openPreferencesDialog: ShowPreferencesDialog
  43. lazy val owner: SimpleJobOwner
  44. def pressButton(name: String): Unit

    Not currently supported.

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

    name

    the button to press

    See also

    #commandLater

    #command

  45. def procedureSource: String
    Definition Classes
    App → ModelSections
  46. 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] )
  47. var recentFilesMenu: RecentFilesMenu
  48. 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
    AppControllable
    Annotations
    @throws( classOf[CompilerException] )
    Exceptions thrown

    IllegalStateException if called from the AWT event queue thread

    org.nlogo.core.CompilerException if the code fails to compile

  49. def resetZoom(): Unit
  50. def selectTab(number: Int): Unit

    Switches tabs.

    Switches tabs.

    number

    which tab to switch to. 0 is the Interface tab, 1 the Info tab, 2 the Code tab, 3 the Errors tab.

  51. def setFileManager(manager: FileManager): Unit
  52. def setMenuBar(menuBar: MenuBar): Unit
  53. 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

  54. def showAboutWindow(): Unit

    Internal use only.

  55. def showPreferencesDialog(): Unit

    Internal use only.

  56. def smartPack(targetSize: Dimension, allowShrink: Boolean): Unit
  57. def startLogging(properties: String): Unit
  58. def tabs: Tabs
  59. def turtleShapes: Seq[VectorShape]
    Definition Classes
    App → ModelSections
  60. def turtleShapesManager: ShapesManagerInterface
  61. def widgets: Seq[Widget]
    Definition Classes
    App → ModelSections
  62. def workspace: GUIWorkspace