antsnest.level.defaults
Class ProjectTreeListener

java.lang.Object
  extended by java.awt.event.MouseAdapter
      extended by antsnest.level.defaults.ProjectTreeListener
All Implemented Interfaces:
MouseListener, EventListener

public class ProjectTreeListener
extends MouseAdapter

Listens for events on the project tree

Author:
Chris Clohosy

Constructor Summary
ProjectTreeListener(ProjectPanel projPanel)
          Constructs a new listener
 
Method Summary
 void isMouseOver(boolean in)
          Sets whether the mouse is over the tree
 void mouseEntered(MouseEvent e)
          Called when the mouse is over the tree
 void mouseExited(MouseEvent e)
          Called when the mouse is not over the tree
 void mousePressed(MouseEvent e)
          Called when the mouse is pressed
 void mouseReleased(MouseEvent e)
          Called when the mouse button is released
 
Methods inherited from class java.awt.event.MouseAdapter
mouseClicked
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProjectTreeListener

public ProjectTreeListener(ProjectPanel projPanel)
Constructs a new listener

Parameters:
projPanel - the project panel that contains the tree
Method Detail

mouseReleased

public void mouseReleased(MouseEvent e)
Called when the mouse button is released

Specified by:
mouseReleased in interface MouseListener
Overrides:
mouseReleased in class MouseAdapter
Parameters:
e - the event that caused the call

mousePressed

public void mousePressed(MouseEvent e)
Called when the mouse is pressed

Specified by:
mousePressed in interface MouseListener
Overrides:
mousePressed in class MouseAdapter
Parameters:
e - the event that caused the call

mouseEntered

public void mouseEntered(MouseEvent e)
Called when the mouse is over the tree

Specified by:
mouseEntered in interface MouseListener
Overrides:
mouseEntered in class MouseAdapter
Parameters:
e - the event that caused this call

mouseExited

public void mouseExited(MouseEvent e)
Called when the mouse is not over the tree

Specified by:
mouseExited in interface MouseListener
Overrides:
mouseExited in class MouseAdapter
Parameters:
e - the event that caused this call

isMouseOver

public void isMouseOver(boolean in)
Sets whether the mouse is over the tree

Parameters:
in - whether the mouse is over the tree