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.SimplePropertyObject
pcs, properties
-
-
Constructor Summary
Constructors Constructor Description AbstractInteractionPlugin()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
addMouseListener(java.awt.event.MouseListener listener)
Adds a MouseListener.protected void
cleanUp(ObserverCenter center)
This method is executed when the plugins shuts down.java.lang.String
getIconPath()
Returns the path to the icon for the plugin in the toolbar.IVector2
getWorldCoordinates(java.awt.Point p)
protected void
handleObjectClick(ISpaceObject object)
This method receives space objects on left-clicks.protected abstract void
initialize(ObserverCenter center)
Initializes the plugin.void
refresh()
Refreshes the displayvoid
removeMouseListener(java.awt.event.MouseListener listener)
Removes a MouseListener.void
shutdown()
Stops the pluginvoid
start(ObserverCenter main)
Starts the pluginprotected void
startUp(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:IObserverCenterPlugin
Refreshes the display- Specified by:
refresh
in interfaceIObserverCenterPlugin
-
getIconPath
public java.lang.String getIconPath()
Description copied from interface:IObserverCenterPlugin
Returns the path to the icon for the plugin in the toolbar.- Specified by:
getIconPath
in interfaceIObserverCenterPlugin
- Returns:
- path to the icon
-
shutdown
public void shutdown()
Description copied from interface:IObserverCenterPlugin
Stops the plugin- Specified by:
shutdown
in interfaceIObserverCenterPlugin
-
start
public final void start(ObserverCenter main)
Description copied from interface:IObserverCenterPlugin
Starts the plugin- Specified by:
start
in interfaceIObserverCenterPlugin
-
getWorldCoordinates
public IVector2 getWorldCoordinates(java.awt.Point p)
-
-