ch.hearc.I04_05s08.GUI.Graph
Class GraphListener

java.lang.Object
  extended bych.hearc.I04_05s08.GUI.Graph.GraphListener
All Implemented Interfaces:
EventListener, MouseListener, MouseMotionListener

public class GraphListener
extends Object
implements MouseListener, MouseMotionListener

Graph listener

Author:
Blanc, Yoan
Licence:
MIT
Copyright:
2005 Yoan Blanc, HE-ARC Ing�nierie

Field Summary
 GraphPanel graph
          The graph
 
Constructor Summary
GraphListener(GraphPanel graph)
          Build the listener (auto set the listeners to the GraphPanel)
 
Method Summary
 void mouseClicked(MouseEvent e)
           
 void mouseDragged(MouseEvent e)
           
 void mouseEntered(MouseEvent e)
           
 void mouseExited(MouseEvent e)
           
 void mouseMoved(MouseEvent e)
           
 void mousePressed(MouseEvent e)
           
 void mouseReleased(MouseEvent e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

graph

public GraphPanel graph
The graph

Constructor Detail

GraphListener

public GraphListener(GraphPanel graph)
Build the listener (auto set the listeners to the GraphPanel)

Parameters:
graph - the GraphPanel which is listened
Method Detail

mousePressed

public void mousePressed(MouseEvent e)
Specified by:
mousePressed in interface MouseListener

mouseReleased

public void mouseReleased(MouseEvent e)
Specified by:
mouseReleased in interface MouseListener

mouseClicked

public void mouseClicked(MouseEvent e)
Specified by:
mouseClicked in interface MouseListener

mouseEntered

public void mouseEntered(MouseEvent e)
Specified by:
mouseEntered in interface MouseListener

mouseExited

public void mouseExited(MouseEvent e)
Specified by:
mouseExited in interface MouseListener

mouseMoved

public void mouseMoved(MouseEvent e)
Specified by:
mouseMoved in interface MouseMotionListener

mouseDragged

public void mouseDragged(MouseEvent e)
Specified by:
mouseDragged in interface MouseMotionListener


A project by Blanc, Yoan – supervised by Dr. Ghorbel, Hatem.
2004 © Blanc, Yoan - HE-ARC