jadex.application.space.envsupport.observer.gui.plugin
Class AbstractInteractionPlugin

java.lang.Object
  extended by jadex.commons.SimplePropertyObject
      extended by jadex.application.space.envsupport.observer.gui.plugin.AbstractInteractionPlugin
All Implemented Interfaces:
IObserverCenterPlugin, IPropertyObject
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
AbstractInteractionPlugin()
           
 
Method Summary
 void addMouseListener(MouseListener listener)
          Adds a MouseListener.
protected  void cleanUp(ObserverCenter center)
          This method is executed when the plugins shuts down.
 String getIconPath()
          Returns the path to the icon for the plugin in the toolbar.
 IVector2 getWorldCoordinates(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 display
 void removeMouseListener(MouseListener listener)
          Removes a MouseListener.
 void shutdown()
          Stops the plugin
 void start(ObserverCenter main)
          Starts the plugin
protected  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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface jadex.application.space.envsupport.observer.gui.plugin.IObserverCenterPlugin
getName, getView
 

Constructor Detail

AbstractInteractionPlugin

public AbstractInteractionPlugin()
Method Detail

addMouseListener

public void addMouseListener(MouseListener listener)
Adds a MouseListener.

Parameters:
listener - The MouseListener.

removeMouseListener

public void removeMouseListener(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 interface IObserverCenterPlugin

getIconPath

public String getIconPath()
Description copied from interface: IObserverCenterPlugin
Returns the path to the icon for the plugin in the toolbar.

Specified by:
getIconPath in interface IObserverCenterPlugin
Returns:
path to the icon

shutdown

public final void shutdown()
Description copied from interface: IObserverCenterPlugin
Stops the plugin

Specified by:
shutdown in interface IObserverCenterPlugin

start

public final void start(ObserverCenter main)
Description copied from interface: IObserverCenterPlugin
Starts the plugin

Specified by:
start in interface IObserverCenterPlugin

getWorldCoordinates

public IVector2 getWorldCoordinates(Point p)


Copyright © 2010. All Rights Reserved.