Class AbstractInteractionPlugin
- java.lang.Object
- 
- jadex.commons.SimplePropertyObject
- 
- jadex.extension.envsupport.observer.gui.plugin.AbstractInteractionPlugin
 
 
- 
- All Implemented Interfaces:
- IPropertyObject,- IObserverCenterPlugin
 - Direct Known Subclasses:
- AddWastePlugin,- InteractionTestPlugin
 
 public abstract class AbstractInteractionPlugin extends SimplePropertyObject implements IObserverCenterPlugin 
- 
- 
Field Summary- 
Fields inherited from class jadex.commons.SimplePropertyObjectpcs, properties
 
- 
 - 
Constructor SummaryConstructors Constructor Description AbstractInteractionPlugin()
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidaddMouseListener(java.awt.event.MouseListener listener)Adds a MouseListener.protected voidcleanUp(ObserverCenter center)This method is executed when the plugins shuts down.java.lang.StringgetIconPath()Returns the path to the icon for the plugin in the toolbar.IVector2getWorldCoordinates(java.awt.Point p)protected voidhandleObjectClick(ISpaceObject object)This method receives space objects on left-clicks.protected abstract voidinitialize(ObserverCenter center)Initializes the plugin.voidrefresh()Refreshes the displayvoidremoveMouseListener(java.awt.event.MouseListener listener)Removes a MouseListener.voidshutdown()Stops the pluginvoidstart(ObserverCenter main)Starts the pluginprotected voidstartUp(ObserverCenter center)This method is executed when the plugins starts.- 
Methods inherited from class jadex.commons.SimplePropertyObjectaddPropertyChangeListener, getProperties, getProperty, getPropertyNames, hasProperty, removePropertyChangeListener, setProperties, setProperty, toString
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface jadex.extension.envsupport.observer.gui.plugin.IObserverCenterPlugingetName, getView, isStartOnLoad, isVisible
 
- 
 
- 
- 
- 
Method Detail- 
addMouseListenerpublic void addMouseListener(java.awt.event.MouseListener listener) Adds a MouseListener.- Parameters:
- listener- The MouseListener.
 
 - 
removeMouseListenerpublic void removeMouseListener(java.awt.event.MouseListener listener) Removes a MouseListener.- Parameters:
- listener- The MouseListener.
 
 - 
initializeprotected abstract void initialize(ObserverCenter center) Initializes the plugin. This method is invoked once when the ObserverCenter becomes available.- Parameters:
- center- The OberverCenter.
 
 - 
startUpprotected void startUp(ObserverCenter center) This method is executed when the plugins starts.- Parameters:
- center- The OberverCenter.
 
 - 
cleanUpprotected void cleanUp(ObserverCenter center) This method is executed when the plugins shuts down.- Parameters:
- center- The OberverCenter.
 
 - 
handleObjectClickprotected void handleObjectClick(ISpaceObject object) This method receives space objects on left-clicks.- Parameters:
- object- space object that was clicked.
 
 - 
refreshpublic void refresh() Description copied from interface:IObserverCenterPluginRefreshes the display- Specified by:
- refreshin interface- IObserverCenterPlugin
 
 - 
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
- Returns:
- path to the icon
 
 - 
shutdownpublic void shutdown() Description copied from interface:IObserverCenterPluginStops the plugin- Specified by:
- shutdownin interface- IObserverCenterPlugin
 
 - 
startpublic final void start(ObserverCenter main) Description copied from interface:IObserverCenterPluginStarts the plugin- Specified by:
- startin interface- IObserverCenterPlugin
 
 - 
getWorldCoordinatespublic IVector2 getWorldCoordinates(java.awt.Point p) 
 
- 
 
-