backend
Class SphereWinMouseListener

java.lang.Object
  extended by backend.SphereWinMouseListener
All Implemented Interfaces:
java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.util.EventListener

public class SphereWinMouseListener
extends java.lang.Object
implements java.awt.event.MouseListener, java.awt.event.MouseMotionListener

SphereWinMouselIstener is a class designed to help SphereWindow


Constructor Summary
SphereWinMouseListener(MouseHandler theMouseHandler, SphereWorld theWorld, double sphereRadius)
          SphereWinMouseListener is the MouseLister for the SphereWindow class.
 
Method Summary
 void mouseClicked(java.awt.event.MouseEvent e)
           
 void mouseDragged(java.awt.event.MouseEvent arg0)
           
 void mouseEntered(java.awt.event.MouseEvent arg0)
           
 void mouseExited(java.awt.event.MouseEvent arg0)
           
 void mouseMoved(java.awt.event.MouseEvent arg0)
           
 void mousePressed(java.awt.event.MouseEvent arg0)
           
 void mouseReleased(java.awt.event.MouseEvent arg0)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SphereWinMouseListener

public SphereWinMouseListener(MouseHandler theMouseHandler,
                              SphereWorld theWorld,
                              double sphereRadius)
SphereWinMouseListener is the MouseLister for the SphereWindow class. It was designed to take the task of handling mouse events since the code started to get pretty long. So all mouse listener tasks relating to the SphereWindow should be done in this class.

Parameters:
theMouseHandler - is the MouseHandler to send information to
theWorld - is the SphereWorld this MouseListener is revolving around
sphereRadius - is the radius of the current sphere
Method Detail

mousePressed

public void mousePressed(java.awt.event.MouseEvent arg0)
Specified by:
mousePressed in interface java.awt.event.MouseListener

mouseMoved

public void mouseMoved(java.awt.event.MouseEvent arg0)
Specified by:
mouseMoved in interface java.awt.event.MouseMotionListener

mouseDragged

public void mouseDragged(java.awt.event.MouseEvent arg0)
Specified by:
mouseDragged in interface java.awt.event.MouseMotionListener

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent e)
Specified by:
mouseClicked in interface java.awt.event.MouseListener

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent arg0)
Specified by:
mouseEntered in interface java.awt.event.MouseListener

mouseExited

public void mouseExited(java.awt.event.MouseEvent arg0)
Specified by:
mouseExited in interface java.awt.event.MouseListener

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent arg0)
Specified by:
mouseReleased in interface java.awt.event.MouseListener