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, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getName, getView, isStartOnLoad, isVisible
public 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()
IObserverCenterPlugin
refresh
in interface IObserverCenterPlugin
public java.lang.String getIconPath()
IObserverCenterPlugin
getIconPath
in interface IObserverCenterPlugin
public void shutdown()
IObserverCenterPlugin
shutdown
in interface IObserverCenterPlugin
public final void start(ObserverCenter main)
IObserverCenterPlugin
start
in interface IObserverCenterPlugin
public IVector2 getWorldCoordinates(java.awt.Point p)