Class AbstractInteractionPlugin

    • Constructor Detail

      • AbstractInteractionPlugin

        public AbstractInteractionPlugin()
    • 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.
      • getWorldCoordinates

        public IVector2 getWorldCoordinates​(java.awt.Point p)