com.croftsoft.apps.fraction
Class FractionHeroSprite
java.lang.Object
com.croftsoft.apps.fraction.FractionHeroSprite
- All Implemented Interfaces:
- MouseListener, MouseMotionListener, EventListener, MouseInputListener
public class FractionHeroSprite
- extends Object
- implements MouseInputListener
The Fraction hero sprite.
- Since:
- 2002-04-28
- Version:
- 2003-02-12
- Author:
- David Wallace Croft
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FractionHeroSprite
public FractionHeroSprite()
- Main constructor.
getX
public int getX()
getY
public int getY()
getHorizontalMovementY
public int getHorizontalMovementY()
getVerticalMovementX
public int getVerticalMovementX()
setDiameter
public void setDiameter(int diameter)
setX
public void setX(int x)
setY
public void setY(int y)
setHorizontalMovementY
public void setHorizontalMovementY(int horizontalMovementY)
setVerticalMovementX
public void setVerticalMovementX(int verticalMovementX)
update
public void update(JComponent component)
paint
public void paint(JComponent component,
Graphics2D graphics)
getPaintBounds
public void getPaintBounds(Rectangle paintBounds)
mouseClicked
public void mouseClicked(MouseEvent mouseEvent)
- Specified by:
mouseClicked
in interface MouseListener
mouseDragged
public void mouseDragged(MouseEvent mouseEvent)
- Specified by:
mouseDragged
in interface MouseMotionListener
mouseEntered
public void mouseEntered(MouseEvent mouseEvent)
- Specified by:
mouseEntered
in interface MouseListener
mouseExited
public void mouseExited(MouseEvent mouseEvent)
- Specified by:
mouseExited
in interface MouseListener
mouseMoved
public void mouseMoved(MouseEvent mouseEvent)
- Specified by:
mouseMoved
in interface MouseMotionListener
mousePressed
public void mousePressed(MouseEvent mouseEvent)
- Specified by:
mousePressed
in interface MouseListener
mouseReleased
public void mouseReleased(MouseEvent mouseEvent)
- Specified by:
mouseReleased
in interface MouseListener
CroftSoft Apps Javadoc (2008-09-28 21:15:07)