Index
All Classes and Interfaces|All Packages|Serialized Form
A
- AbstractSimulationScript - Class in org.opentrafficsim.swing.script
-
Template for simulation script.
- AbstractSimulationScript(String, String) - Constructor for class org.opentrafficsim.swing.script.AbstractSimulationScript
-
Constructor.
- actionPerformed(ActionEvent) - Method in class org.opentrafficsim.swing.gui.ColorControlPanel
- actionPerformed(ActionEvent) - Method in class org.opentrafficsim.swing.gui.OtsAnimationPanel
- actionPerformed(ActionEvent) - Method in class org.opentrafficsim.swing.gui.OtsControlPanel
- actionPerformed(ActionEvent) - Method in class org.opentrafficsim.swing.gui.OtsSearchPanel
- addAllToggleGISButtonText(String, GisRenderable2d, String) - Method in class org.opentrafficsim.swing.gui.OtsAnimationPanel
-
Add buttons for toggling all GIS layers on or off.
- addColorer(TrajectoryColorer, boolean) - Method in class org.opentrafficsim.swing.graphs.SwingTrajectoryPlot
-
Add colorer.
- addConsoleTab() - Method in class org.opentrafficsim.swing.gui.OtsSimulationPanel
-
Adds the console tab.
- addItem(Colorer<? super Gtu>) - Method in class org.opentrafficsim.swing.gui.ColorControlPanel
-
Add one item to this ColorControlPanel.
- addPopUpMenuItems(JPopupMenu) - Method in class org.opentrafficsim.swing.graphs.SwingContourPlot
- addPopUpMenuItems(JPopupMenu) - Method in class org.opentrafficsim.swing.graphs.SwingFundamentalDiagram
- addPopUpMenuItems(JPopupMenu) - Method in class org.opentrafficsim.swing.graphs.SwingPlot
-
Overridable method to add pop up items.
- addPopUpMenuItems(JPopupMenu) - Method in class org.opentrafficsim.swing.graphs.SwingSpaceTimePlot
- addPopUpMenuItems(JPopupMenu) - Method in class org.opentrafficsim.swing.graphs.SwingTrajectoryPlot
- addPropertiesTab() - Method in class org.opentrafficsim.swing.gui.OtsSimulationPanel
-
Adds the properties tab.
- addTabs() - Method in class org.opentrafficsim.swing.gui.OtsSimulationApplication
-
Adds tabs.
- addTabs(OtsSimulatorInterface, OtsSimulationApplication<?>) - Method in class org.opentrafficsim.swing.script.AbstractSimulationScript
-
Adds tabs to the animation.
- addToggleAnimationButtonIcon(String, Class<? extends Locatable>, String, String, boolean, boolean) - Method in class org.opentrafficsim.swing.gui.OtsAnimationPanel
-
Add a button for toggling an animatable class on or off.
- addToggleAnimationButtonText(String, Class<? extends Locatable>, String, boolean) - Method in class org.opentrafficsim.swing.gui.OtsAnimationPanel
-
Add a button for toggling an animatable class on or off.
- addToggleGISButtonText(String, String, GisRenderable2d, String) - Method in class org.opentrafficsim.swing.gui.OtsAnimationPanel
-
Add a button to toggle a GIS Layer on or off.
- addToggleText(String) - Method in class org.opentrafficsim.swing.gui.OtsAnimationPanel
-
Add a text to explain animatable classes.
- animateNetwork(Network, OtsAnimationPanel) - Method in class org.opentrafficsim.swing.script.AbstractSimulationScript
-
Creates animations for nodes, links and lanes.
- AnimationToggles - Class in org.opentrafficsim.swing.gui
-
Set the default animation toggles for the animation panel.
- Appearance - Enum Class in org.opentrafficsim.swing.gui
-
Contains a background color, foreground color and a font name, to be set throughout all components.
- AppearanceApplication - Class in org.opentrafficsim.swing.gui
-
Application with global appearance control.
- AppearanceApplication() - Constructor for class org.opentrafficsim.swing.gui.AppearanceApplication
-
Constructor that uses the default content pane.
- AppearanceApplication(JPanel) - Constructor for class org.opentrafficsim.swing.gui.AppearanceApplication
-
Constructor that sets the content pane.
- AppearanceControl - Interface in org.opentrafficsim.swing.gui
-
This interface allows on screen items to not obtain colors and/or the font from an
Appearance. - AppearanceControlComboBox<T> - Class in org.opentrafficsim.swing.gui
-
ComboBox for AppearanceControl.
- AppearanceControlComboBox() - Constructor for class org.opentrafficsim.swing.gui.AppearanceControlComboBox
-
Constructor.
- AppearanceControlTextField - Class in org.opentrafficsim.swing.gui
-
Text field that ignore appearance on foreground and background.
- AppearanceControlTextField() - Constructor for class org.opentrafficsim.swing.gui.AppearanceControlTextField
-
Constructor.
- autoPauseSimulator() - Method in class org.opentrafficsim.swing.gui.OtsControlPanel
-
Pause the simulator.
B
- BLUE - Enum constant in enum class org.opentrafficsim.swing.gui.Appearance
-
Blue.
- BOTTOM - Enum constant in enum class org.opentrafficsim.swing.gui.OtsAnimationPanel.DemoPanelPosition
-
Bottom.
- BRIGHT - Enum constant in enum class org.opentrafficsim.swing.gui.Appearance
-
Bright.
C
- cancelEvent(AbstractPlot) - Method in class org.opentrafficsim.swing.graphs.OtsPlotScheduler
- cancelTimer() - Method in class org.opentrafficsim.swing.gui.OtsControlPanel.ClockLabel
-
Cancel the timer task.
- changedUpdate(DocumentEvent) - Method in class org.opentrafficsim.swing.gui.GhostText
- changedUpdate(DocumentEvent) - Method in class org.opentrafficsim.swing.gui.OtsSearchPanel
- changeFont(Component, String) - Method in class org.opentrafficsim.swing.gui.AppearanceApplication
-
Change font on component.
- changeFontSize(Component) - Method in class org.opentrafficsim.swing.gui.AppearanceApplication
-
Changes the font size of the component.
- check() - Method in class org.opentrafficsim.swing.script.AbstractSimulationScript
- closed - Variable in class org.opentrafficsim.swing.gui.OtsSwingApplication
-
whether the application has been closed or not.
- closeHandlerRegistered - Variable in class org.opentrafficsim.swing.gui.OtsAnimationPanel
-
Has the window close handler been registered?
- closeHandlerRegistered - Variable in class org.opentrafficsim.swing.gui.OtsControlPanel
-
Has the window close handler been registered?
- ColorControlPanel - Class in org.opentrafficsim.swing.gui
-
Let the user select what the colors in the animation mean.
- ColorControlPanel() - Constructor for class org.opentrafficsim.swing.gui.ColorControlPanel
-
Add a ColorControlPanel to an AnimationPanel.
- constructModel() - Method in class org.opentrafficsim.swing.gui.CustomSimulation.CustomModel
- createDemoPanel(OtsAnimationPanel.DemoPanelPosition) - Method in class org.opentrafficsim.swing.gui.OtsAnimationPanel
-
Creates a demo panel within the animation area.
- CustomModel(OtsSimulatorInterface) - Constructor for class org.opentrafficsim.swing.gui.CustomSimulation.CustomModel
-
Constructor.
- CustomSimulation - Class in org.opentrafficsim.swing.gui
-
Custom simulation uses the custom model class where the network and other simulation aspects are externally specified.
- CustomSimulation(String, OtsAnimationPanel, CustomSimulation.CustomModel) - Constructor for class org.opentrafficsim.swing.gui.CustomSimulation
-
Create a custom simulation.
- CustomSimulation.CustomModel - Class in org.opentrafficsim.swing.gui
-
Custom simulation.
D
- DARK - Enum constant in enum class org.opentrafficsim.swing.gui.Appearance
-
Dark.
- DEFAULT_FONT_SIZE - Static variable in interface org.opentrafficsim.swing.gui.AppearanceControl
-
Default font size.
- DEFAULT_GTU_COLORERS - Static variable in class org.opentrafficsim.swing.gui.OtsSwingApplication
-
Default GTU colorers.
- delete() - Method in class org.opentrafficsim.swing.gui.GhostText
-
Delete ghost text.
- demo(boolean, OtsAnimator, CustomSimulation.CustomModel) - Static method in class org.opentrafficsim.swing.gui.CustomSimulation
-
Start the simulation.
- disableSimulationControlButtons() - Method in class org.opentrafficsim.swing.gui.OtsSimulationPanel
-
Disable the simulation or animation buttons in the GUI.
- DisposeOnCloseThread(OtsAnimationPanel) - Constructor for class org.opentrafficsim.swing.gui.OtsAnimationPanel.DisposeOnCloseThread
-
Constructor.
- DisposeOnCloseThread(OtsControlPanel) - Constructor for class org.opentrafficsim.swing.gui.OtsControlPanel.DisposeOnCloseThread
-
Constructor.
E
- enableSimulationControlButtons() - Method in class org.opentrafficsim.swing.gui.OtsSimulationPanel
-
Enable the simulation or animation buttons in the GUI.
F
- fixButtons() - Method in class org.opentrafficsim.swing.gui.OtsControlPanel
-
Update the enabled state of all the buttons.
- focusGained(FocusEvent) - Method in class org.opentrafficsim.swing.gui.GhostText
- focusGained(FocusEvent) - Method in class org.opentrafficsim.swing.gui.OtsSearchPanel
- focusLost(FocusEvent) - Method in class org.opentrafficsim.swing.gui.GhostText
- focusLost(FocusEvent) - Method in class org.opentrafficsim.swing.gui.OtsSearchPanel
- FOSIM - Enum constant in enum class org.opentrafficsim.swing.gui.Appearance
-
Green.
- frameProperties - Variable in class org.opentrafficsim.swing.gui.AppearanceApplication
-
Properties for the frame appearance (not simulation related).
G
- getACar() - Method in class org.opentrafficsim.swing.script.IdmOptions
-
Returns the maximum acceleration of cars.
- getAnimationPanel() - Method in class org.opentrafficsim.swing.gui.OtsAnimationPanel
-
Easy access to the AnimationPanel.
- getAnimationPanel() - Method in class org.opentrafficsim.swing.gui.OtsSimulationApplication
-
Returns the animation panel.
- getAppearance() - Method in class org.opentrafficsim.swing.gui.AppearanceApplication
-
Returns the appearance.
- getATruck() - Method in class org.opentrafficsim.swing.script.IdmOptions
-
Returns the maximum acceleration of trucks.
- getB() - Method in class org.opentrafficsim.swing.script.IdmOptions
-
Returns the maximum comfortable deceleration.
- getBackdrop() - Method in enum class org.opentrafficsim.swing.gui.Appearance
-
Returns the backdrop color.
- getBackground() - Method in enum class org.opentrafficsim.swing.gui.Appearance
-
Returns the background color.
- getBorderLayoutPosition() - Method in enum class org.opentrafficsim.swing.gui.OtsAnimationPanel.DemoPanelPosition
-
Return border layout position.
- getChartMouseListener() - Method in class org.opentrafficsim.swing.graphs.SwingFundamentalDiagram
- getChartMouseListener() - Method in class org.opentrafficsim.swing.graphs.SwingPlot
-
Overridable; may return a chart listener for additional functions.
- getChartMouseListener() - Method in class org.opentrafficsim.swing.graphs.SwingTrajectoryPlot
-
Overridable; may return a chart listener for additional functions.
- getChartPanel() - Method in class org.opentrafficsim.swing.graphs.SwingPlot
-
Returns the chart panel.
- getColorControlPanel() - Method in class org.opentrafficsim.swing.gui.OtsAnimationPanel
-
Access the ColorControlPanel of this ControlPanel.
- getConsole() - Method in class org.opentrafficsim.swing.gui.OtsSimulationPanel
-
Return console.
- getDemoPanel() - Method in class org.opentrafficsim.swing.gui.OtsAnimationPanel
-
Return a panel for on-screen demo controls.
- getFont() - Method in enum class org.opentrafficsim.swing.gui.Appearance
-
Returns the font name.
- getFontSize() - Method in interface org.opentrafficsim.swing.gui.AppearanceControl
-
Returns the font size.
- getFontSize() - Method in class org.opentrafficsim.swing.gui.OtsControlPanel.ClockLabel
- getFontSize() - Method in class org.opentrafficsim.swing.gui.OtsControlPanel.TimeEdit
- getForeground() - Method in enum class org.opentrafficsim.swing.gui.Appearance
-
Returns the foreground color.
- getGhostColor() - Method in class org.opentrafficsim.swing.gui.GhostText
-
Get ghost color.
- getGtuColorerManager() - Method in class org.opentrafficsim.swing.gui.ColorControlPanel
-
Returns the GTU colorer manager.
- getGtuColorers() - Method in class org.opentrafficsim.swing.script.AbstractSimulationScript
-
Returns the GTU colorers.
- getGtuMarkers() - Method in class org.opentrafficsim.swing.script.AbstractSimulationScript
-
Returns map of (non-default) GTU type markers.
- getMarkers() - Method in class org.opentrafficsim.swing.gui.OtsSimulationApplication
-
Returns the GTU type markers.
- getModel() - Method in class org.opentrafficsim.swing.gui.OtsSwingApplication
-
Return model.
- getName() - Method in enum class org.opentrafficsim.swing.gui.Appearance
-
Returns the name.
- getNetwork() - Method in class org.opentrafficsim.swing.gui.CustomSimulation.CustomModel
- getNetwork() - Method in class org.opentrafficsim.swing.script.AbstractSimulationScript
-
Returns the network.
- getOtsControlPanel() - Method in class org.opentrafficsim.swing.gui.OtsSimulationPanel
-
Return the OtsControlPanel of this OtsSimulationPanel.
- getOtsModel() - Method in class org.opentrafficsim.swing.gui.OtsSimulationPanel
-
Return model.
- getOtsSearchPanel() - Method in class org.opentrafficsim.swing.gui.OtsControlPanel
-
Provide access to the search panel.
- getPlot() - Method in class org.opentrafficsim.swing.graphs.SwingContourPlot
- getPlot() - Method in class org.opentrafficsim.swing.graphs.SwingFundamentalDiagram
-
Retrieve the plot.
- getPlot() - Method in class org.opentrafficsim.swing.graphs.SwingPlot
-
Retrieve the plot.
- getPlot() - Method in class org.opentrafficsim.swing.graphs.SwingSpaceTimePlot
- getPlot() - Method in class org.opentrafficsim.swing.graphs.SwingTrajectoryPlot
-
Retrieve the plot.
- getProbabilities() - Method in class org.opentrafficsim.swing.gui.ProbabilityDistributionEditor
-
Retrieve the current probability values.
- getProbability(int) - Method in class org.opentrafficsim.swing.gui.ProbabilityDistributionEditor
-
Returns the probability of category with given index.
- getProbability(T) - Method in class org.opentrafficsim.swing.gui.ProbabilityDistributionEditor
-
Returns the probability of the given category.
- getSeed() - Method in class org.opentrafficsim.swing.script.AbstractSimulationScript
-
Returns the seed.
- getSimulationTime() - Method in class org.opentrafficsim.swing.script.AbstractSimulationScript
-
Returns the simulation time.
- getSimulator() - Method in class org.opentrafficsim.swing.gui.OtsControlPanel
-
Return simulator.
- getSimulator() - Method in class org.opentrafficsim.swing.gui.OtsSimulationPanel
-
Return simulator.
- getSimulator() - Method in class org.opentrafficsim.swing.script.AbstractSimulationScript
-
Returns the simulator.
- getSpeed(double) - Method in class org.opentrafficsim.swing.gui.OtsControlPanel.ClockLabel
-
Returns the simulation speed.
- getSpeedLabel() - Method in class org.opentrafficsim.swing.gui.OtsControlPanel.ClockLabel
-
Return speed label.
- getStartTime() - Method in class org.opentrafficsim.swing.script.AbstractSimulationScript
-
Returns the start time.
- getTabbedPane() - Method in class org.opentrafficsim.swing.gui.OtsSimulationPanel
-
Return tabbed pane.
- getTime() - Method in class org.opentrafficsim.swing.graphs.OtsPlotScheduler
- getTimeFont() - Method in class org.opentrafficsim.swing.gui.OtsControlPanel
-
Return time font.
- getTMax() - Method in class org.opentrafficsim.swing.script.IdmOptions
-
Returns the normal desired headway.
- getTMin() - Method in class org.opentrafficsim.swing.script.IdmOptions
-
Returns the minimum desired headway.
- getWarmupTime() - Method in class org.opentrafficsim.swing.script.AbstractSimulationScript
-
Returns the warm-up time.
- GhostText - Class in org.opentrafficsim.swing.gui
-
Code taken from stack overflow.
- GhostText(JTextComponent, String) - Constructor for class org.opentrafficsim.swing.gui.GhostText
-
Constructor.
- GRAY - Enum constant in enum class org.opentrafficsim.swing.gui.Appearance
-
Gray.
- GREEN - Enum constant in enum class org.opentrafficsim.swing.gui.Appearance
-
Green.
H
- hideAnimationClass(OtsAnimationPanel, Class<? extends Locatable>) - Static method in class org.opentrafficsim.swing.gui.AnimationToggles
-
Set a class to be shown in the animation to false.
- hideGISLayer(String) - Method in class org.opentrafficsim.swing.gui.OtsAnimationPanel
-
Set a GIS layer to be hidden in the animation to true.
I
- IdmOptions - Class in org.opentrafficsim.swing.script
-
Class containing a set of command line options for the intelligent driver model (IDM).
- IdmOptions() - Constructor for class org.opentrafficsim.swing.script.IdmOptions
-
Constructor.
- insertUpdate(DocumentEvent) - Method in class org.opentrafficsim.swing.gui.GhostText
- insertUpdate(DocumentEvent) - Method in class org.opentrafficsim.swing.gui.OtsSearchPanel
- installWindowCloseHandler() - Method in class org.opentrafficsim.swing.gui.OtsAnimationPanel
-
Install a handler for the window closed event that stops the simulator (if it is running).
- installWindowCloseHandler() - Method in class org.opentrafficsim.swing.gui.OtsControlPanel
-
Install a handler for the window closed event that stops the simulator (if it is running).
- isAutorun() - Method in class org.opentrafficsim.swing.script.AbstractSimulationScript
-
Returns whether to autorun.
- isBackground() - Method in class org.opentrafficsim.swing.gui.AppearanceControlTextField
- isBackground() - Method in class org.opentrafficsim.swing.gui.ColorControlPanel
- isBackground() - Method in class org.opentrafficsim.swing.gui.OtsControlPanel.ClockLabel
- isClosed() - Method in class org.opentrafficsim.swing.gui.OtsSwingApplication
-
Return whether the application is closed.
- isFont() - Method in class org.opentrafficsim.swing.gui.AppearanceControlComboBox
- isForeground() - Method in class org.opentrafficsim.swing.gui.AppearanceControlTextField
- isForeground() - Method in class org.opentrafficsim.swing.gui.ColorControlPanel
- isForeground() - Method in class org.opentrafficsim.swing.gui.OtsControlPanel.ClockLabel
J
- JFileChooserWithSettings - Class in org.opentrafficsim.swing.gui
-
Small helper class that adds some components to a JFileChooser, the contents of which can be used to retrieve user settings for output.
- JFileChooserWithSettings(Component...) - Constructor for class org.opentrafficsim.swing.gui.JFileChooserWithSettings
-
Constructor that adds components to the left of the 'Save' and 'Cancel' button.
L
- LabeledPanel - Class in org.opentrafficsim.swing.gui
-
JPanel with an outline and a name.
- LabeledPanel(String) - Constructor for class org.opentrafficsim.swing.gui.LabeledPanel
-
Create a JPanel with border and caption.
- LEFT - Enum constant in enum class org.opentrafficsim.swing.gui.OtsAnimationPanel.DemoPanelPosition
-
Left.
- LEGACY - Enum constant in enum class org.opentrafficsim.swing.gui.Appearance
-
Legacy, as the initial OTS had.
- loadGrayscaleIcon(String) - Static method in class org.opentrafficsim.swing.gui.OtsControlPanel
-
Attempt to load and return an icon, which will be made gray-scale.
- loadIcon(String) - Static method in class org.opentrafficsim.swing.gui.OtsControlPanel
-
Attempt to load and return an icon.
M
- makeAnimationRectangle() - Method in class org.opentrafficsim.swing.gui.OtsSwingApplication
-
Return the initial 'home' extent for the animation.
- mapIndexToValue(int) - Method in class org.opentrafficsim.swing.gui.ProbabilityDistributionEditor
- MOTUS - Enum constant in enum class org.opentrafficsim.swing.gui.Appearance
-
MOTUS mimic.
N
- notify(Event) - Method in class org.opentrafficsim.swing.graphs.SwingContourPlot
- notify(Event) - Method in class org.opentrafficsim.swing.gui.OtsAnimationPanel
- notify(Event) - Method in class org.opentrafficsim.swing.gui.OtsControlPanel
- notify(Event) - Method in class org.opentrafficsim.swing.script.AbstractSimulationScript
O
- onSimulationEnd() - Method in class org.opentrafficsim.swing.script.AbstractSimulationScript
-
Method that is called when the simulation has ended.
- org.opentrafficsim.swing.graphs - package org.opentrafficsim.swing.graphs
-
Swing components for graphs that are used in OpenTrafficSim.
- org.opentrafficsim.swing.gui - package org.opentrafficsim.swing.gui
-
Swing components that are used in OpenTrafficSim.
- org.opentrafficsim.swing.script - package org.opentrafficsim.swing.script
-
Helper classes for animation.
- OtsAnimationPanel - Class in org.opentrafficsim.swing.gui
-
Animation panel with various controls.
- OtsAnimationPanel(Rectangle2D, OtsAnimator, OtsModelInterface, List<Colorer<? super Gtu>>, Network) - Constructor for class org.opentrafficsim.swing.gui.OtsAnimationPanel
-
Construct a panel that looks like the DSOLPanel for quick building of OTS applications.
- OtsAnimationPanel.DemoPanelPosition - Enum Class in org.opentrafficsim.swing.gui
-
Enum for demo panel position.
- OtsAnimationPanel.DisposeOnCloseThread - Class in org.opentrafficsim.swing.gui
-
Install the dispose on close when the OtsControlPanel is registered as part of a frame.
- OtsAnimationPanel.UpdateTimer - Class in org.opentrafficsim.swing.gui
-
UpdateTimer class to update the coordinate on the screen.
- OtsControlPanel - Class in org.opentrafficsim.swing.gui
-
Peter's improved simulation control panel.
- OtsControlPanel(OtsSimulatorInterface, OtsModelInterface, OtsAnimationPanel) - Constructor for class org.opentrafficsim.swing.gui.OtsControlPanel
-
Decorate a SimpleSimulator with a different set of control buttons.
- OtsControlPanel.ClockLabel - Class in org.opentrafficsim.swing.gui
-
JLabel that displays the simulation time.
- OtsControlPanel.DisposeOnCloseThread - Class in org.opentrafficsim.swing.gui
-
Install the dispose on close when the OtsControlPanel is registered as part of a frame.
- OtsControlPanel.TimeEdit - Class in org.opentrafficsim.swing.gui
-
Entry field for time.
- OtsPlotScheduler - Class in org.opentrafficsim.swing.graphs
-
This scheduler allows plots to work live with an OTS simulation.
- OtsPlotScheduler(OtsSimulatorInterface) - Constructor for class org.opentrafficsim.swing.graphs.OtsPlotScheduler
-
Constructor.
- OtsSearchPanel - Class in org.opentrafficsim.swing.gui
-
The OTS search panel.
- OtsSearchPanel(OtsAnimationPanel) - Constructor for class org.opentrafficsim.swing.gui.OtsSearchPanel
-
Construct a new OtsSearchPanel.
- OtsSimulationApplication<T extends OtsModelInterface> - Class in org.opentrafficsim.swing.gui
-
Extension of a swing application with standard preparation.
- OtsSimulationApplication(T, OtsAnimationPanel, Map<GtuType, DefaultCarAnimation.GtuData.GtuMarker>) - Constructor for class org.opentrafficsim.swing.gui.OtsSimulationApplication
-
Constructor.
- OtsSimulationPanel - Class in org.opentrafficsim.swing.gui
-
GUI with simulator, console, control panel, status bar, etc.
- OtsSimulationPanel(OtsSimulatorInterface, OtsModelInterface) - Constructor for class org.opentrafficsim.swing.gui.OtsSimulationPanel
-
Construct a panel that looks like the DSOLPanel for quick building of OTS applications.
- OtsSwingApplication<T extends OtsModelInterface> - Class in org.opentrafficsim.swing.gui
-
Wrap a DSOL simulation model, or any (descendant of a) JPanel in a JFrame (wrap it in a window).
- OtsSwingApplication(T, JPanel) - Constructor for class org.opentrafficsim.swing.gui.OtsSwingApplication
-
Wrap an OtsModel in a JFrame.
P
- paint(Graphics) - Method in class org.opentrafficsim.swing.gui.ProbabilityDistributionEditor
- plot - Variable in class org.opentrafficsim.swing.graphs.SwingPlot
-
The JFreeChart plot.
- ProbabilityDistributionEditor<T> - Class in org.opentrafficsim.swing.gui
-
Editor for a distribution of probabilities of all possible categories.
- ProbabilityDistributionEditor(List<T>, double[], int) - Constructor for class org.opentrafficsim.swing.gui.ProbabilityDistributionEditor
-
Constructor.
- propertyChange(PropertyChangeEvent) - Method in class org.opentrafficsim.swing.gui.GhostText
- propertyChange(PropertyChangeEvent) - Method in class org.opentrafficsim.swing.gui.OtsControlPanel
R
- RED - Enum constant in enum class org.opentrafficsim.swing.gui.Appearance
-
Red.
- removeUpdate(DocumentEvent) - Method in class org.opentrafficsim.swing.gui.GhostText
- removeUpdate(DocumentEvent) - Method in class org.opentrafficsim.swing.gui.OtsSearchPanel
- RIGHT - Enum constant in enum class org.opentrafficsim.swing.gui.OtsAnimationPanel.DemoPanelPosition
-
Right.
- run() - Method in class org.opentrafficsim.swing.gui.OtsAnimationPanel.DisposeOnCloseThread
- run() - Method in class org.opentrafficsim.swing.gui.OtsAnimationPanel.UpdateTimer
- run() - Method in class org.opentrafficsim.swing.gui.OtsControlPanel.DisposeOnCloseThread
S
- scheduleUpdate(Duration, AbstractPlot) - Method in class org.opentrafficsim.swing.graphs.OtsPlotScheduler
- selectAndTrackObject(String, String, boolean) - Method in class org.opentrafficsim.swing.gui.OtsSearchPanel
-
Update all values at once.
- separatedName(String) - Static method in class org.opentrafficsim.swing.gui.OtsAnimationPanel
-
Adds a thin space before each capital character in a
String, except the first. - setAnimationToggles() - Method in class org.opentrafficsim.swing.gui.OtsSimulationApplication
-
Set animation toggles.
- setAnimationToggles(OtsAnimationPanel) - Method in class org.opentrafficsim.swing.script.AbstractSimulationScript
-
Sets the animation toggles.
- setAppearance(Appearance) - Method in class org.opentrafficsim.swing.gui.AppearanceApplication
-
Sets an appearance.
- setAutoPan(String, OtsSearchPanel.ObjectKind<?>, boolean) - Method in class org.opentrafficsim.swing.gui.OtsAnimationPanel
-
Change auto pan target.
- setBackground(Color) - Method in class org.opentrafficsim.swing.gui.OtsControlPanel.ClockLabel
- setCategoryFontSize(float) - Method in class org.opentrafficsim.swing.gui.ProbabilityDistributionEditor
-
Set the font size for the category labels.
- setCategoryLabelFunction(BiFunction<T, Double, String>) - Method in class org.opentrafficsim.swing.gui.ProbabilityDistributionEditor
-
Sets the label function.
- setChart(JFreeChart) - Method in class org.opentrafficsim.swing.graphs.SwingPlot
-
Add the chart.
- setDefaultFont() - Static method in class org.opentrafficsim.swing.gui.AppearanceApplication
-
Sets default font in the UIManager.
- setExitOnClose(boolean) - Method in class org.opentrafficsim.swing.gui.OtsSwingApplication
-
Set exit on close.
- setFontScale(String) - Method in class org.opentrafficsim.swing.gui.AppearanceApplication
-
Set font scale.
- setForeground(Color) - Method in class org.opentrafficsim.swing.gui.ColorControlPanel
- setGhostColor(Color) - Method in class org.opentrafficsim.swing.gui.GhostText
-
Set ghost color.
- setGtuColorers(List<Colorer<? super Gtu>>) - Method in class org.opentrafficsim.swing.script.AbstractSimulationScript
-
Set GTU colorers.
- setIconAnimationTogglesFull(OtsAnimationPanel) - Static method in class org.opentrafficsim.swing.gui.AnimationToggles
-
Set all animation on, and create the toggles on the left hand side.
- setIconAnimationTogglesStandard(OtsAnimationPanel) - Static method in class org.opentrafficsim.swing.gui.AnimationToggles
-
Set the most common animation on, and create the toggles on the left hand side.
- setNetwork(RoadNetwork) - Method in class org.opentrafficsim.swing.gui.CustomSimulation.CustomModel
-
Set network.
- setSimulationControlButtons(boolean) - Method in class org.opentrafficsim.swing.gui.OtsControlPanel
-
Change the enabled/disabled state of the various simulation control buttons.
- setStatusLabel(String) - Method in class org.opentrafficsim.swing.graphs.SwingPlot
-
Manually set status label from sub class.
- setTextAnimationTogglesFull(OtsAnimationPanel) - Static method in class org.opentrafficsim.swing.gui.AnimationToggles
-
Set all animation on, and create the toggles on the left hand side.
- setTextAnimationTogglesStandard(OtsAnimationPanel) - Static method in class org.opentrafficsim.swing.gui.AnimationToggles
-
Set the most common animation on, and create the toggles on the left hand side.
- setTime(Time) - Method in class org.opentrafficsim.swing.gui.OtsControlPanel.TimeEdit
-
Set or update the time shown in this TimeEdit.
- setupDemo(OtsAnimationPanel, RoadNetwork) - Method in class org.opentrafficsim.swing.script.AbstractSimulationScript
-
Method that is called when the animation has been created, to add components for a demo.
- setupSimulation(OtsSimulatorInterface) - Method in class org.opentrafficsim.swing.script.AbstractSimulationScript
-
Sets up the simulation based on provided properties.
- showAnimationClass(OtsAnimationPanel, Class<? extends Locatable>) - Static method in class org.opentrafficsim.swing.gui.AnimationToggles
-
Set a class to be shown in the animation to true.
- showAnimationFull(OtsAnimationPanel) - Static method in class org.opentrafficsim.swing.gui.AnimationToggles
-
Set all animation on, and create the toggles on the left hand side.
- showAnimationStandard(OtsAnimationPanel) - Static method in class org.opentrafficsim.swing.gui.AnimationToggles
-
Set the most common animation on, and create the toggles on the left hand side.
- showGISLayer(String) - Method in class org.opentrafficsim.swing.gui.OtsAnimationPanel
-
Set a GIS layer to be shown in the animation to true.
- start() - Method in class org.opentrafficsim.swing.script.AbstractSimulationScript
-
Starts the simulation.
- SwingContourPlot - Class in org.opentrafficsim.swing.graphs
-
Embed a ContourPlot in a Swing JPanel.
- SwingContourPlot(AbstractContourPlot<?>) - Constructor for class org.opentrafficsim.swing.graphs.SwingContourPlot
-
Create a new SwingContourPlot with embedded plot.
- SwingFundamentalDiagram - Class in org.opentrafficsim.swing.graphs
-
Embed a FundamentalDiagram in a Swing JPanel.
- SwingFundamentalDiagram(FundamentalDiagram) - Constructor for class org.opentrafficsim.swing.graphs.SwingFundamentalDiagram
-
Construct a new Swing container for FundamentalDiagram plot.
- SwingPlot - Class in org.opentrafficsim.swing.graphs
-
Swing wrapper of all plots.
- SwingPlot(AbstractPlot) - Constructor for class org.opentrafficsim.swing.graphs.SwingPlot
-
Construct a new Swing container for an AbstractPlot.
- SwingSpaceTimePlot - Class in org.opentrafficsim.swing.graphs
-
Embed a SpaceTimePlot in a Swing JPanel.
- SwingSpaceTimePlot(AbstractSpaceTimePlot) - Constructor for class org.opentrafficsim.swing.graphs.SwingSpaceTimePlot
-
Construct a new Swing container for SpaceTimePlot.
- SwingTrajectoryPlot - Class in org.opentrafficsim.swing.graphs
-
Embed a TrajectoryPlot in a Swing JPanel.
- SwingTrajectoryPlot(TrajectoryPlot) - Constructor for class org.opentrafficsim.swing.graphs.SwingTrajectoryPlot
-
Construct a new Swing container for a TrajectoryPlot.
- SwingTrajectoryPlot(TrajectoryPlot, boolean) - Constructor for class org.opentrafficsim.swing.graphs.SwingTrajectoryPlot
-
Constructor.
T
- toggleGISLayer(String) - Method in class org.opentrafficsim.swing.gui.OtsAnimationPanel
-
Toggle a GIS layer to be displayed in the animation to its reverse value.
- TOP - Enum constant in enum class org.opentrafficsim.swing.gui.OtsAnimationPanel.DemoPanelPosition
-
Top.
- toString() - Method in class org.opentrafficsim.swing.gui.AppearanceControlComboBox
- toString() - Method in class org.opentrafficsim.swing.gui.AppearanceControlTextField
- toString() - Method in class org.opentrafficsim.swing.gui.ColorControlPanel
- toString() - Method in class org.opentrafficsim.swing.gui.JFileChooserWithSettings
- toString() - Method in class org.opentrafficsim.swing.gui.LabeledPanel
- toString() - Method in class org.opentrafficsim.swing.gui.OtsAnimationPanel.DisposeOnCloseThread
- toString() - Method in class org.opentrafficsim.swing.gui.OtsAnimationPanel.UpdateTimer
- toString() - Method in class org.opentrafficsim.swing.gui.OtsControlPanel.ClockLabel
- toString() - Method in class org.opentrafficsim.swing.gui.OtsControlPanel.DisposeOnCloseThread
- toString() - Method in class org.opentrafficsim.swing.gui.OtsControlPanel.TimeEdit
- toString() - Method in class org.opentrafficsim.swing.gui.OtsControlPanel
- toString() - Method in class org.opentrafficsim.swing.gui.OtsSimulationPanel
U
- updateAnimationClassCheckBox(Class<? extends Locatable>) - Method in class org.opentrafficsim.swing.gui.OtsAnimationPanel
-
Update the checkmark related to a programmatically changed animation state.
- UpdateTimer() - Constructor for class org.opentrafficsim.swing.gui.OtsAnimationPanel.UpdateTimer
-
Constructor.
- updateWorldCoordinate() - Method in class org.opentrafficsim.swing.gui.OtsAnimationPanel
-
Display the latest world coordinate based on the mouse position on the screen.
V
- valueOf(String) - Static method in enum class org.opentrafficsim.swing.gui.Appearance
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.opentrafficsim.swing.gui.OtsAnimationPanel.DemoPanelPosition
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class org.opentrafficsim.swing.gui.Appearance
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class org.opentrafficsim.swing.gui.OtsAnimationPanel.DemoPanelPosition
-
Returns an array containing the constants of this enum class, in the order they are declared.
W
- windowActivated(WindowEvent) - Method in class org.opentrafficsim.swing.gui.OtsAnimationPanel
- windowActivated(WindowEvent) - Method in class org.opentrafficsim.swing.gui.OtsControlPanel
- windowClosed(WindowEvent) - Method in class org.opentrafficsim.swing.gui.OtsAnimationPanel
- windowClosed(WindowEvent) - Method in class org.opentrafficsim.swing.gui.OtsControlPanel
- windowClosing(WindowEvent) - Method in class org.opentrafficsim.swing.gui.OtsAnimationPanel
- windowClosing(WindowEvent) - Method in class org.opentrafficsim.swing.gui.OtsControlPanel
- windowDeactivated(WindowEvent) - Method in class org.opentrafficsim.swing.gui.OtsAnimationPanel
- windowDeactivated(WindowEvent) - Method in class org.opentrafficsim.swing.gui.OtsControlPanel
- windowDeiconified(WindowEvent) - Method in class org.opentrafficsim.swing.gui.OtsAnimationPanel
- windowDeiconified(WindowEvent) - Method in class org.opentrafficsim.swing.gui.OtsControlPanel
- windowExited - Variable in class org.opentrafficsim.swing.gui.OtsAnimationPanel
-
Indicate the window has been closed and the timer thread can stop.
- windowIconified(WindowEvent) - Method in class org.opentrafficsim.swing.gui.OtsAnimationPanel
- windowIconified(WindowEvent) - Method in class org.opentrafficsim.swing.gui.OtsControlPanel
- windowOpened(WindowEvent) - Method in class org.opentrafficsim.swing.gui.OtsAnimationPanel
- windowOpened(WindowEvent) - Method in class org.opentrafficsim.swing.gui.OtsControlPanel
All Classes and Interfaces|All Packages|Serialized Form