com.croftsoft.apps.fraction
Class FractionHeroSprite

java.lang.Object
  extended by 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

Constructor Summary
FractionHeroSprite()
          Main constructor.
 
Method Summary
 int getHorizontalMovementY()
           
 void getPaintBounds(Rectangle paintBounds)
           
 int getVerticalMovementX()
           
 int getX()
           
 int getY()
           
 void mouseClicked(MouseEvent mouseEvent)
           
 void mouseDragged(MouseEvent mouseEvent)
           
 void mouseEntered(MouseEvent mouseEvent)
           
 void mouseExited(MouseEvent mouseEvent)
           
 void mouseMoved(MouseEvent mouseEvent)
           
 void mousePressed(MouseEvent mouseEvent)
           
 void mouseReleased(MouseEvent mouseEvent)
           
 void paint(JComponent component, Graphics2D graphics)
           
 void setDiameter(int diameter)
           
 void setHorizontalMovementY(int horizontalMovementY)
           
 void setVerticalMovementX(int verticalMovementX)
           
 void setX(int x)
           
 void setY(int y)
           
 void update(JComponent component)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FractionHeroSprite

public FractionHeroSprite()
Main constructor.

Method Detail

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 Javadoc

CroftSoft Apps Javadoc (2008-09-28 21:15:07)