CSE115.Snowman
Class SnowmanShape
java.lang.Object
CSE115.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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SnowmanShape
public SnowmanShape()
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