public abstract class AbstractInteractionPlugin extends SimplePropertyObject implements IObserverCenterPlugin
pcs, properties| Constructor and Description |
|---|
AbstractInteractionPlugin() |
| Modifier and Type | Method and 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 display
|
void |
removeMouseListener(java.awt.event.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.
|
addPropertyChangeListener, getProperties, getProperty, getPropertyNames, hasProperty, removePropertyChangeListener, setProperties, setProperty, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetName, getView, isStartOnLoad, isVisiblepublic void addMouseListener(java.awt.event.MouseListener listener)
listener - The MouseListener.public void removeMouseListener(java.awt.event.MouseListener listener)
listener - The MouseListener.protected abstract void initialize(ObserverCenter center)
center - The OberverCenter.protected void startUp(ObserverCenter center)
center - The OberverCenter.protected void cleanUp(ObserverCenter center)
center - The OberverCenter.protected void handleObjectClick(ISpaceObject object)
object - space object that was clicked.public void refresh()
IObserverCenterPluginrefresh in interface IObserverCenterPluginpublic java.lang.String getIconPath()
IObserverCenterPlugingetIconPath in interface IObserverCenterPluginpublic void shutdown()
IObserverCenterPluginshutdown in interface IObserverCenterPluginpublic final void start(ObserverCenter main)
IObserverCenterPluginstart in interface IObserverCenterPluginpublic IVector2 getWorldCoordinates(java.awt.Point p)