Package jadex.bdi.examples.cleanerworld
Class AddWastePlugin
- java.lang.Object
-
- jadex.commons.SimplePropertyObject
-
- jadex.extension.envsupport.observer.gui.plugin.AbstractInteractionPlugin
-
- jadex.bdi.examples.cleanerworld.AddWastePlugin
-
- All Implemented Interfaces:
IPropertyObject,IObserverCenterPlugin
public class AddWastePlugin extends AbstractInteractionPlugin
Plugin that allows for adding waste via mouse clicks.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.awt.event.MouseListenerml-
Fields inherited from class jadex.commons.SimplePropertyObject
pcs, properties
-
-
Constructor Summary
Constructors Constructor Description AddWastePlugin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetIconPath()Returns the path to the icon for the plugin in the toolbar.java.lang.StringgetName()Get the plugin name.java.awt.ComponentgetView()Get the plugin view.protected voidinitialize(ObserverCenter center)Initializes the plugin.booleanisStartOnLoad()Should plugin be started on load.booleanisVisible()Should plugin be visible.voidshutdown()Stops the plugin-
Methods inherited from class jadex.extension.envsupport.observer.gui.plugin.AbstractInteractionPlugin
addMouseListener, cleanUp, getWorldCoordinates, handleObjectClick, refresh, removeMouseListener, start, startUp
-
Methods inherited from class jadex.commons.SimplePropertyObject
addPropertyChangeListener, getProperties, getProperty, getPropertyNames, hasProperty, removePropertyChangeListener, setProperties, setProperty, toString
-
-
-
-
Method Detail
-
initialize
protected void initialize(ObserverCenter center)
Initializes the plugin. This method is invoked once when the ObserverCenter becomes available.- Specified by:
initializein classAbstractInteractionPlugin- Parameters:
center- The OberverCenter.
-
shutdown
public void shutdown()
Description copied from interface:IObserverCenterPluginStops the plugin- Specified by:
shutdownin interfaceIObserverCenterPlugin- Overrides:
shutdownin classAbstractInteractionPlugin
-
getName
public java.lang.String getName()
Get the plugin name.- Returns:
- name of the plugin
-
getIconPath
public java.lang.String getIconPath()
Description copied from interface:IObserverCenterPluginReturns the path to the icon for the plugin in the toolbar.- Specified by:
getIconPathin interfaceIObserverCenterPlugin- Overrides:
getIconPathin classAbstractInteractionPlugin- Returns:
- path to the icon
-
getView
public java.awt.Component getView()
Get the plugin view.- Returns:
- viewable component of the plugin
-
isVisible
public boolean isVisible()
Should plugin be visible.
-
isStartOnLoad
public boolean isStartOnLoad()
Should plugin be started on load.
-
-