Package repast.simphony.ui
Class RSGui
java.lang.Object
repast.simphony.ui.RSGui
- All Implemented Interfaces:
PropertyChangeListener,EventListener,saf.core.ui.event.DockableFrameListener
public class RSGui
extends Object
implements saf.core.ui.event.DockableFrameListener, PropertyChangeListener
Mediator for gui manipulation.
- Version:
- $Revision: 1.2 $ $Date: 2006/01/03 15:24:30 $
- Author:
- Nick Collier
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCustomUserPanel(JPanel panel) saf.core.ui.dock.DockableFrameaddLogView(String id, String title, JComponent comp) addParameterView(Parameters params, File currentDirectory, RSApplication rsApp) voidsaf.core.ui.dock.DockableFrameaddProbeView(String id, String title, JPanel panel) voidaddRunOptionsView(RunOptionsModel model) voidaddViewListener(saf.core.ui.event.DockableFrameListener listener) Adds the specified listener as a listener for view events.voidaddViewsFromRegistry(GUIRegistry registry, ProbeManager probeManager) saf.core.ui.dock.DockableFrameaddVizualization(String name, JComponent component) voiddockableClosed(saf.core.ui.event.DockableFrameEvent viewEvent) voiddockableClosing(saf.core.ui.event.DockableFrameEvent arg0) voiddockableFloated(saf.core.ui.event.DockableFrameEvent viewEvent) voiddockableFloating(saf.core.ui.event.DockableFrameEvent arg0) voiddockableMaximized(saf.core.ui.event.DockableFrameEvent viewEvent) voiddockableMaximizing(saf.core.ui.event.DockableFrameEvent evt) voiddockableMinimized(saf.core.ui.event.DockableFrameEvent viewEvent) voiddockableMinimizing(saf.core.ui.event.DockableFrameEvent evt) voiddockableRestored(saf.core.ui.event.DockableFrameEvent viewEvent) voiddockableRestoring(saf.core.ui.event.DockableFrameEvent arg0) saf.core.ui.dock.DockableFramegetDockable(String id) getFrame()Gets the main application frame.Gets the current TickCountFormatter that is used to format the text in the tick label.getToolBar(JComponent comp) booleanvoidvoidCalled when probed properties are updated.voidvoidvoidremoveViewListener(saf.core.ui.event.DockableFrameListener listener) Removes the specified listener as a listener for view events.voidreset()voidresetLayout(InputStream stream) Resets the layout using a layout file that defines the initial state.voidsaveLayout(File file) Saves the current frame layout to the specified file.voidsetActiveView(saf.core.ui.dock.DockableFrame dockable) voidvoidvoidvoidvoidvoidvoidsetStatusBarText(Color color, String text) Sets the status bar to the specified text and text color.voidsetStatusBarText(Font font, Color color, String text) Sets the status bar to the specified text and text color.voidsetStatusBarText(String text) Sets the status bar to the specified text..voidsetTickCountFormatter(TickCountFormatter formatter) Sets the current TickCountFormatter that is used to format the text in the tick label.voidvoidupdateProbePanel(Probe probe, MutableParameters params) voidupdateTickCountLabel(double newTick)
-
Constructor Details
-
RSGui
-
-
Method Details
-
getDockable
-
addLogView
-
resetLayout
Resets the layout using a layout file that defines the initial state. -
saveLayout
Saves the current frame layout to the specified file.- Parameters:
file- the file to save the layout to
-
addVizualization
-
addViewListener
public void addViewListener(saf.core.ui.event.DockableFrameListener listener) Adds the specified listener as a listener for view events. View events are such things as view closed, iconified, etc.- Parameters:
listener- the listener to add
-
removeViewListener
public void removeViewListener(saf.core.ui.event.DockableFrameListener listener) Removes the specified listener as a listener for view events. View events are such things as view closed, iconified, etc.- Parameters:
listener- the listener to remove
-
addViewsFromRegistry
-
reset
public void reset() -
removeParameterViews
public void removeParameterViews() -
updateProbePanel
-
addPlaceHolderUserPanel
public void addPlaceHolderUserPanel() -
addCustomUserPanel
-
hasCustomUserPanelDefined
public boolean hasCustomUserPanelDefined() -
removeCustomUserPanel
public void removeCustomUserPanel() -
addRunOptionsView
-
addParameterView
public ParametersUI addParameterView(Parameters params, File currentDirectory, RSApplication rsApp) throws FileNotFoundException, XMLStreamException -
setGUIForStarted
public void setGUIForStarted() -
setGUIForStepped
public void setGUIForStepped() -
setGUIForPaused
public void setGUIForPaused() -
setGUIForStopped
public void setGUIForStopped() -
setGUIForPostSimInit
public void setGUIForPostSimInit() -
setGUIForModelLoaded
public void setGUIForModelLoaded() -
init
-
getTickCountFormatter
Gets the current TickCountFormatter that is used to format the text in the tick label.- Returns:
- the current TickCountFormatter that is used to format the text in the tick label.
-
setTickCountFormatter
Sets the current TickCountFormatter that is used to format the text in the tick label.- Parameters:
formatter- the formatter to use
-
updateTickCountLabel
public void updateTickCountLabel(double newTick) -
setStatusBarText
Sets the status bar to the specified text..- Parameters:
text- the new status bar text
-
setStatusBarText
Sets the status bar to the specified text and text color.- Parameters:
color- the new colortext- the new text
-
setStatusBarText
Sets the status bar to the specified text and text color.- Parameters:
font- the new fontcolor- the new colortext- the new text
-
setTitle
-
getFrame
Gets the main application frame.- Returns:
- the main application frame.
-
getToolBar
-
dockableClosed
public void dockableClosed(saf.core.ui.event.DockableFrameEvent viewEvent) - Specified by:
dockableClosedin interfacesaf.core.ui.event.DockableFrameListener
-
dockableFloated
public void dockableFloated(saf.core.ui.event.DockableFrameEvent viewEvent) - Specified by:
dockableFloatedin interfacesaf.core.ui.event.DockableFrameListener
-
dockableMaximized
public void dockableMaximized(saf.core.ui.event.DockableFrameEvent viewEvent) - Specified by:
dockableMaximizedin interfacesaf.core.ui.event.DockableFrameListener
-
dockableMinimized
public void dockableMinimized(saf.core.ui.event.DockableFrameEvent viewEvent) - Specified by:
dockableMinimizedin interfacesaf.core.ui.event.DockableFrameListener
-
dockableRestored
public void dockableRestored(saf.core.ui.event.DockableFrameEvent viewEvent) - Specified by:
dockableRestoredin interfacesaf.core.ui.event.DockableFrameListener
-
setActiveView
public void setActiveView(saf.core.ui.dock.DockableFrame dockable) -
addProbeView
-
showError
-
propertyChange
Called when probed properties are updated.- Specified by:
propertyChangein interfacePropertyChangeListener
-
dockableClosing
public void dockableClosing(saf.core.ui.event.DockableFrameEvent arg0) - Specified by:
dockableClosingin interfacesaf.core.ui.event.DockableFrameListener
-
dockableFloating
public void dockableFloating(saf.core.ui.event.DockableFrameEvent arg0) - Specified by:
dockableFloatingin interfacesaf.core.ui.event.DockableFrameListener
-
dockableRestoring
public void dockableRestoring(saf.core.ui.event.DockableFrameEvent arg0) - Specified by:
dockableRestoringin interfacesaf.core.ui.event.DockableFrameListener
-
dockableMaximizing
public void dockableMaximizing(saf.core.ui.event.DockableFrameEvent evt) - Specified by:
dockableMaximizingin interfacesaf.core.ui.event.DockableFrameListener
-
dockableMinimizing
public void dockableMinimizing(saf.core.ui.event.DockableFrameEvent evt) - Specified by:
dockableMinimizingin interfacesaf.core.ui.event.DockableFrameListener
-