backend
Class SphereWinMouseListener
java.lang.Object
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
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 totheWorld
- is the SphereWorld this MouseListener is revolving aroundsphereRadius
- is the radius of the current sphere
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