Class AbstractInteractionPlugin
- java.lang.Object
-
- jadex.commons.SimplePropertyObject
-
- jadex.extension.envsupport.observer.gui.plugin.AbstractInteractionPlugin
-
- All Implemented Interfaces:
IPropertyObject,IObserverCenterPlugin
- Direct Known Subclasses:
InteractionTestPlugin
public abstract class AbstractInteractionPlugin extends SimplePropertyObject implements IObserverCenterPlugin
-
-
Field Summary
-
Fields inherited from class jadex.commons.SimplePropertyObject
pcs, properties
-
-
Constructor Summary
Constructors Constructor Description AbstractInteractionPlugin()
-
Method Summary
All 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.SimplePropertyObject
addPropertyChangeListener, getProperties, getProperty, getPropertyNames, hasProperty, removePropertyChangeListener, setProperties, setProperty, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface jadex.extension.envsupport.observer.gui.plugin.IObserverCenterPlugin
getName, getView, isStartOnLoad, isVisible
-
-
-
-
Method Detail
-
addMouseListener
public void addMouseListener(java.awt.event.MouseListener listener)
Adds a MouseListener.- Parameters:
listener- The MouseListener.
-
removeMouseListener
public void removeMouseListener(java.awt.event.MouseListener listener)
Removes a MouseListener.- Parameters:
listener- The MouseListener.
-
initialize
protected abstract void initialize(ObserverCenter center)
Initializes the plugin. This method is invoked once when the ObserverCenter becomes available.- Parameters:
center- The OberverCenter.
-
startUp
protected void startUp(ObserverCenter center)
This method is executed when the plugins starts.- Parameters:
center- The OberverCenter.
-
cleanUp
protected void cleanUp(ObserverCenter center)
This method is executed when the plugins shuts down.- Parameters:
center- The OberverCenter.
-
handleObjectClick
protected void handleObjectClick(ISpaceObject object)
This method receives space objects on left-clicks.- Parameters:
object- space object that was clicked.
-
refresh
public void refresh()
Description copied from interface:IObserverCenterPluginRefreshes the display- Specified by:
refreshin interfaceIObserverCenterPlugin
-
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- Returns:
- path to the icon
-
shutdown
public void shutdown()
Description copied from interface:IObserverCenterPluginStops the plugin- Specified by:
shutdownin interfaceIObserverCenterPlugin
-
start
public final void start(ObserverCenter main)
Description copied from interface:IObserverCenterPluginStarts the plugin- Specified by:
startin interfaceIObserverCenterPlugin
-
getWorldCoordinates
public IVector2 getWorldCoordinates(java.awt.Point p)
-
-