CSE115.Snowman
Class SnowmanShape

java.lang.Object
  extended byCSE115.Snowman.SnowmanShape
All Implemented Interfaces:
EventListener, MouseListener

public class SnowmanShape
extends Object
implements MouseListener

The shape of a snowman, that can be clicked on.

Author:
Phil Ventura

Constructor Summary
SnowmanShape()
           
 
Method Summary
 void mouseClicked(MouseEvent e)
           
 void mouseEntered(MouseEvent e)
           
 void mouseExited(MouseEvent e)
           
 void mousePressed(MouseEvent e)
           
 void mouseReleased(MouseEvent e)
           
 void react()
          This method is called when a mouse click is detected on the snowman.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SnowmanShape

public SnowmanShape()
Method Detail

react

public void react()
This method is called when a mouse click is detected on the snowman. For this class, the method does not do anything, you have to subclass from the SnowmanShape and redefine this method to make it do something userful in response to the mouse click.


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

mousePressed

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

mouseReleased

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