Package jadex.tools.simcenter
Class SimulationServicePlugin
- java.lang.Object
-
- jadex.base.gui.plugin.AbstractJCCPlugin
-
- jadex.tools.generic.AbstractGenericPlugin<IService>
-
- jadex.tools.generic.AbstractServicePlugin
-
- jadex.tools.simcenter.SimulationServicePlugin
-
- All Implemented Interfaces:
IControlCenterPlugin
,IPropertiesProvider
public class SimulationServicePlugin extends AbstractServicePlugin
Plugin for starting components.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class jadex.base.gui.plugin.AbstractJCCPlugin
AbstractJCCPlugin.ShowRemoteControlCenterHandler
-
-
Field Summary
Fields Modifier and Type Field Description protected static javax.swing.UIDefaults
icons
The image icons.protected javax.swing.JRadioButtonMenuItem
time_date
The date time setting menu item.protected javax.swing.JRadioButtonMenuItem
time_long
The long time setting menu item.protected javax.swing.JRadioButtonMenuItem
time_rel
The relative time setting menu item.-
Fields inherited from class jadex.tools.generic.AbstractGenericPlugin
selectorpanel
-
Fields inherited from class jadex.base.gui.plugin.AbstractJCCPlugin
jcc
-
-
Constructor Summary
Constructors Constructor Description SimulationServicePlugin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.swing.JMenu[]
createMenuBar()
Create the menu bar.IFuture
createServicePanel(IService service)
Create the component panel.java.lang.Class
getServiceType()
Get the service type.javax.swing.Icon
getToolIcon(boolean selected)
Get the icon.IFuture
setProperties(Properties props)
Set the properties.protected void
updateMenu()
Change menu item state according to panel settings.-
Methods inherited from class jadex.tools.generic.AbstractServicePlugin
createSelectorPanel, getName
-
Methods inherited from class jadex.tools.generic.AbstractGenericPlugin
createView, getHelpID, getProperties, getSelectorPanel, shutdown
-
Methods inherited from class jadex.base.gui.plugin.AbstractJCCPlugin
createToolBar, getClassLoader, getJCC, getMenuBar, getToolBar, getView, init, isLazy, pushPlatformSettings
-
-
-
-
Field Detail
-
icons
protected static final javax.swing.UIDefaults icons
The image icons.
-
time_long
protected javax.swing.JRadioButtonMenuItem time_long
The long time setting menu item.
-
time_rel
protected javax.swing.JRadioButtonMenuItem time_rel
The relative time setting menu item.
-
time_date
protected javax.swing.JRadioButtonMenuItem time_date
The date time setting menu item.
-
-
Method Detail
-
getServiceType
public java.lang.Class getServiceType()
Get the service type.- Specified by:
getServiceType
in classAbstractServicePlugin
- Returns:
- The service type.
-
createServicePanel
public IFuture createServicePanel(IService service)
Create the component panel.- Specified by:
createServicePanel
in classAbstractServicePlugin
-
getToolIcon
public javax.swing.Icon getToolIcon(boolean selected)
Get the icon.- Specified by:
getToolIcon
in interfaceIControlCenterPlugin
- Specified by:
getToolIcon
in classAbstractServicePlugin
-
createMenuBar
public javax.swing.JMenu[] createMenuBar()
Create the menu bar.- Overrides:
createMenuBar
in classAbstractJCCPlugin
- Returns:
- The menubar.
-
updateMenu
protected void updateMenu()
Change menu item state according to panel settings.
-
setProperties
public IFuture setProperties(Properties props)
Set the properties. Updates menu after properties are set.- Specified by:
setProperties
in interfaceIPropertiesProvider
- Overrides:
setProperties
in classAbstractGenericPlugin<IService>
-
-