This component is a wrapper around the contents of the interface panel that can be embedded in another application.
Once created, an InterfaceComponent can't be garbage collected, so you should open successive models in the same InterfaceComponent, rather than making new instances.
See the "Controlling" section of the NetLogo User Manual for example code.
Attributes
- Companion
- object
- Source
- InterfaceComponent.scala
- Graph
-
- Supertypes
-
trait LinkChildclass LitePaneltrait ControlSettrait LinkRoottrait LinkParenttrait Handlerclass JPaneltrait Accessibleclass JComponentclass Containerclass Componenttrait Serializabletrait MenuContainertrait ImageObserverclass Objecttrait Matchableclass AnyShow all
Members list
Type members
Inherited classlikes
Attributes
- Inherited from:
- JComponent
- Supertypes
-
class Objecttrait Matchableclass Any
Inherited and Abstract classlikes
Attributes
- Inherited from:
- JComponent
- Supertypes
-
trait AccessibleExtendedComponenttrait AccessibleComponenttrait Serializableclass AccessibleContextclass Objecttrait Matchableclass AnyShow all
Value members
Concrete methods
Recompiles the model. Useful after calling setProcedures()
.
Recompiles the model. Useful after calling setProcedures()
.
Attributes
- See also
-
#setProcedures
- Source
- InterfaceComponent.scala
Attributes
- Source
- InterfaceComponent.scala
internal use only
returns a graphical image of the current contents of the plot with the given name. This image can be saved to disk, displayed to the user later, etc.
returns a graphical image of the current contents of the plot with the given name. This image can be saved to disk, displayed to the user later, etc.
Value parameters
- name
-
the display name of the widget to reveal.
Attributes
- Source
- InterfaceComponent.scala
returns the current contents of the 2D view. This image can be saved to disk, displayed to the user later, etc.
returns the current contents of the 2D view. This image can be saved to disk, displayed to the user later, etc.
Attributes
- Source
- InterfaceComponent.scala
hides a particular widget. This method makes the specified widget invisible in the NetLogo interface panel. It does not completely remove the widget, which can later be brought back with showWidget()
. This method uses the "display name" to identify the widget. Display names are not necessarily unique within a particular model. It is only safe to use this method on widgets with unique display names. Otherwise the behavior is unspecified.
hides a particular widget. This method makes the specified widget invisible in the NetLogo interface panel. It does not completely remove the widget, which can later be brought back with showWidget()
. This method uses the "display name" to identify the widget. Display names are not necessarily unique within a particular model. It is only safe to use this method on widgets with unique display names. Otherwise the behavior is unspecified.
Value parameters
- name
-
the display name of the widget to hide.
Attributes
- See also
-
#hideWidget
- Source
- InterfaceComponent.scala
Adds new widget to Interface tab given its specification, in the same format found in a saved model.
Adds new widget to Interface tab given its specification, in the same format found in a saved model.
Value parameters
- text
-
the widget specification
Attributes
- Source
- InterfaceComponent.scala
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
- Source
- InterfaceComponent.scala
Simulates a button press in the current model, exactly as if the user had pressed the button. If the button is a "once" button, this method does not return until the button has popped back up. (For "forever" buttons, it returns immediately.)
Simulates a button press in the current model, exactly as if the user had pressed the button. If the button is a "once" button, this method does not return until the button has popped back up. (For "forever" buttons, it returns immediately.)
Attributes
- Source
- InterfaceComponent.scala
evaluates a reporter and return the value to continuation object. This is a convenience method for evaluating reporters on the event thread. Since it is an error to call report()
from the event thread, this method creates a new thread to call report()
and then passes the result to the given InvocationListener
.
evaluates a reporter and return the value to continuation object. This is a convenience method for evaluating reporters on the event thread. Since it is an error to call report()
from the event thread, this method creates a new thread to call report()
and then passes the result to the given InvocationListener
.
This method may be called from any thread, including the AWT Event Thread.
Attributes
- Source
- InterfaceComponent.scala
reveals a particular widget. This method makes the specified widget visible in the NetLogo interface panel, if it has previously been hidden by a call to hideWidget()
. This method uses the "display name" to identify the widget. Display names are not necessarily unique within a particular model. It is only safe to use this method on widgets with unique display names. Otherwise the behavior is unspecified.
reveals a particular widget. This method makes the specified widget visible in the NetLogo interface panel, if it has previously been hidden by a call to hideWidget()
. This method uses the "display name" to identify the widget. Display names are not necessarily unique within a particular model. It is only safe to use this method on widgets with unique display names. Otherwise the behavior is unspecified.
Value parameters
- name
-
the display name of the widget to reveal.
Attributes
- See also
-
#hideWidget
- Source
- InterfaceComponent.scala
Inherited methods
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- LinkRoot
- Source
- LinkRoot.scala
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
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.CompilerExceptionif the code fails to compile
- See also
-
#commandLater
- Inherited from:
- LitePanel
- Source
- LitePanel.scala
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
- Inherited from:
- LitePanel
- Source
- LitePanel.scala
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- LitePanel
- Source
- LitePanel.scala
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- JPanel
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- Component
internal use only
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- LinkRoot
- Source
- LinkRoot.scala
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Returns the contents of the Code tab.
Returns the contents of the Code tab.
Attributes
- Returns
-
contents of Code tab
- Inherited from:
- LitePanel
- Source
- LitePanel.scala
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- JPanel
Attributes
- Inherited from:
- JPanel
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
internal use only
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
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
- Inherited from:
- LitePanel
- Source
- LitePanel.scala
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- LinkRoot
- Source
- LinkRoot.scala
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
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.CompilerExceptionif the code fails to compile
- Inherited from:
- LitePanel
- Source
- LitePanel.scala
LitePanel passes the focus request to the InterfacePanel
LitePanel passes the focus request to the InterfacePanel
Attributes
- Definition Classes
- Inherited from:
- LitePanel
- Source
- LitePanel.scala
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
internal use only
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
sets the current working directory
sets the current working directory
Value parameters
- url
-
the directory as java.net.URL
Attributes
- Inherited from:
- LitePanel
- Source
- LitePanel.scala
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
- Inherited from:
- LitePanel
- Source
- LitePanel.scala
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JPanel
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Returns a string representation of the object.
Returns a string representation of the object.
The default representation is platform dependent.
Attributes
- Returns
-
a string representation of the object.
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- LitePanel
- Source
- LitePanel.scala
Attributes
- Inherited from:
- LitePanel
- Source
- LitePanel.scala
Deprecated and Inherited methods
Attributes
- Deprecated
-
[Since version ]
see corresponding Javadoc for more information. - Inherited from:
- Component
Attributes
- Deprecated
-
[Since version ]
see corresponding Javadoc for more information. - Inherited from:
- Component
Attributes
- Deprecated
-
[Since version ]
see corresponding Javadoc for more information. - Inherited from:
- Container
Attributes
- Deprecated
-
[Since version ]
see corresponding Javadoc for more information. - Inherited from:
- Container
Attributes
- Deprecated
-
[Since version ]
see corresponding Javadoc for more information. - Inherited from:
- JComponent
Attributes
- Deprecated
-
[Since version ]
see corresponding Javadoc for more information. - Inherited from:
- JComponent
Attributes
- Deprecated
-
[Since version ]
see corresponding Javadoc for more information. - Inherited from:
- Component
Attributes
- Deprecated
-
[Since version ]
see corresponding Javadoc for more information. - Inherited from:
- JComponent
Attributes
- Deprecated
-
[Since version ]
see corresponding Javadoc for more information. - Inherited from:
- Component
Attributes
- Deprecated
-
[Since version ]
see corresponding Javadoc for more information. - Inherited from:
- Component
Attributes
- Deprecated
-
[Since version ]
see corresponding Javadoc for more information. - Inherited from:
- JComponent
Attributes
- Deprecated
-
[Since version ]
see corresponding Javadoc for more information. - Inherited from:
- Container
Attributes
- Deprecated
-
[Since version ]
see corresponding Javadoc for more information. - Inherited from:
- Component
Attributes
- Deprecated
-
[Since version ]
see corresponding Javadoc for more information. - Inherited from:
- Component
Attributes
- Deprecated
-
[Since version ]
see corresponding Javadoc for more information. - Inherited from:
- JComponent
Attributes
- Deprecated
-
[Since version ]
see corresponding Javadoc for more information. - Inherited from:
- Component
Attributes
- Deprecated
-
[Since version ]
see corresponding Javadoc for more information. - Inherited from:
- Component
Attributes
- Deprecated
-
[Since version ]
see corresponding Javadoc for more information. - Inherited from:
- Container
Attributes
- Deprecated
-
[Since version ]
see corresponding Javadoc for more information. - Inherited from:
- Container
Attributes
- Deprecated
-
[Since version ]
see corresponding Javadoc for more information. - Inherited from:
- Component
Attributes
- Deprecated
-
[Since version ]
see corresponding Javadoc for more information. - Inherited from:
- Component
Attributes
- Deprecated
-
[Since version ]
see corresponding Javadoc for more information. - Inherited from:
- Container
Attributes
- Deprecated
-
[Since version ]
see corresponding Javadoc for more information. - Inherited from:
- Component
Attributes
- Deprecated
-
[Since version ]
see corresponding Javadoc for more information. - Inherited from:
- Component
Attributes
- Deprecated
-
[Since version ]
see corresponding Javadoc for more information. - Inherited from:
- Component
Attributes
- Deprecated
-
[Since version ]
see corresponding Javadoc for more information. - Inherited from:
- Component
Attributes
- Deprecated
-
[Since version ]
see corresponding Javadoc for more information. - Inherited from:
- Component
Attributes
- Deprecated
-
[Since version ]
see corresponding Javadoc for more information. - Inherited from:
- Component
Attributes
- Deprecated
-
[Since version ]
see corresponding Javadoc for more information. - Inherited from:
- Component
Attributes
- Deprecated
-
[Since version ]
see corresponding Javadoc for more information. - Inherited from:
- Component
Attributes
- Deprecated
-
[Since version ]
see corresponding Javadoc for more information. - Inherited from:
- Component
Attributes
- Deprecated
-
[Since version ]
see corresponding Javadoc for more information. - Inherited from:
- Container
Attributes
- Deprecated
-
[Since version ]
see corresponding Javadoc for more information. - Inherited from:
- JComponent
Attributes
- Deprecated
-
[Since version ]
see corresponding Javadoc for more information. - Inherited from:
- JComponent
Attributes
- Deprecated
-
[Since version ]
see corresponding Javadoc for more information. - Inherited from:
- Component
Attributes
- Deprecated
-
[Since version ]
see corresponding Javadoc for more information. - Inherited from:
- Component
Attributes
- Deprecated
-
[Since version ]
see corresponding Javadoc for more information. - Inherited from:
- JComponent
Attributes
- Deprecated
-
[Since version ]
see corresponding Javadoc for more information. - Inherited from:
- Component
Attributes
- Deprecated
-
[Since version ]
see corresponding Javadoc for more information. - Inherited from:
- Component
Attributes
- Deprecated
-
[Since version ]
see corresponding Javadoc for more information. - Inherited from:
- Component
Inherited fields
Attributes
- Inherited from:
- LitePanel
- Source
- LitePanel.scala
Attributes
- Inherited from:
- LitePanel
- Source
- LitePanel.scala
Attributes
- Inherited from:
- LitePanel
- Source
- LitePanel.scala
Attributes
- Inherited from:
- LinkRoot
- Source
- LinkRoot.scala
The NetLogoListenerManager stored in this field can be used to add and remove NetLogoListeners, so the embedding environment can receive notifications of events happening within NetLogo. Relevant methods on NetLogoListenerManager are addListener(), removeListener(), and clearListeners(). The first two take a NetLogoListener as input.
The NetLogoListenerManager stored in this field can be used to add and remove NetLogoListeners, so the embedding environment can receive notifications of events happening within NetLogo. Relevant methods on NetLogoListenerManager are addListener(), removeListener(), and clearListeners(). The first two take a NetLogoListener as input.
Attributes
- Inherited from:
- LitePanel
- Source
- LitePanel.scala
Attributes
- Inherited from:
- LitePanel
- Source
- LitePanel.scala
Attributes
- Inherited from:
- LitePanel
- Source
- LitePanel.scala
Attributes
- Inherited from:
- LitePanel
- Source
- LitePanel.scala
Attributes
- Inherited from:
- LitePanel
- Source
- LitePanel.scala
Attributes
- Inherited from:
- LitePanel
- Source
- LitePanel.scala