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 SummaryFields Modifier and Type Field Description protected java.awt.event.MouseListenerml- 
Fields inherited from class jadex.commons.SimplePropertyObjectpcs, properties
 
- 
 - 
Constructor SummaryConstructors Constructor Description AddWastePlugin()
 - 
Method SummaryAll 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.AbstractInteractionPluginaddMouseListener, cleanUp, getWorldCoordinates, handleObjectClick, refresh, removeMouseListener, start, startUp
 - 
Methods inherited from class jadex.commons.SimplePropertyObjectaddPropertyChangeListener, getProperties, getProperty, getPropertyNames, hasProperty, removePropertyChangeListener, setProperties, setProperty, toString
 
- 
 
- 
- 
- 
Method Detail- 
initializeprotected void initialize(ObserverCenter center) Initializes the plugin. This method is invoked once when the ObserverCenter becomes available.- Specified by:
- initializein class- AbstractInteractionPlugin
- Parameters:
- center- The OberverCenter.
 
 - 
shutdownpublic void shutdown() Description copied from interface:IObserverCenterPluginStops the plugin- Specified by:
- shutdownin interface- IObserverCenterPlugin
- Overrides:
- shutdownin class- AbstractInteractionPlugin
 
 - 
getNamepublic java.lang.String getName() Get the plugin name.- Returns:
- name of the plugin
 
 - 
getIconPathpublic java.lang.String getIconPath() Description copied from interface:IObserverCenterPluginReturns the path to the icon for the plugin in the toolbar.- Specified by:
- getIconPathin interface- IObserverCenterPlugin
- Overrides:
- getIconPathin class- AbstractInteractionPlugin
- Returns:
- path to the icon
 
 - 
getViewpublic java.awt.Component getView() Get the plugin view.- Returns:
- viewable component of the plugin
 
 - 
isVisiblepublic boolean isVisible() Should plugin be visible.
 - 
isStartOnLoadpublic boolean isStartOnLoad() Should plugin be started on load.
 
- 
 
-