com.hammingweight.hammock.mocks.microedition.lcdui.game
Class MockSprite

java.lang.Object
  extended by javax.microedition.lcdui.game.Layer
      extended by javax.microedition.lcdui.game.Sprite
          extended by com.hammingweight.hammock.mocks.microedition.lcdui.game.MockSprite
All Implemented Interfaces:
IMockObject

public class MockSprite
extends javax.microedition.lcdui.game.Sprite
implements IMockObject


Field Summary
static MockMethod MTHD_DEFINE_COLLISION_RECTANGLE_$_INT_INT_INT_INT
           
static MockMethod MTHD_DEFINE_REFERENCE_PIXEL_$_INT_INT
           
static MockMethod MTHD_GET_FRAME_SEQUENCE_LENGTH
           
static MockMethod MTHD_GET_RAW_FRAME_COUNT
           
static MockMethod MTHD_GET_REF_PIXEL_X
           
static MockMethod MTHD_GET_REF_PIXEL_Y
           
static MockMethod MTHD_MOVE_$_INT_INT
           
static MockMethod MTHD_NEXT_FRAME
           
static MockMethod MTHD_PREV_FRAME
           
static MockMethod MTHD_SET_FRAME_$_INT
           
static MockMethod MTHD_SET_FRAME_SEQUENCE_$_ARRAY_INT
           
static MockMethod MTHD_SET_IMAGE_$_IMAGE_INT_INT
           
static MockMethod MTHD_SET_POSITION_$_INT_INT
           
static MockMethod MTHD_SET_REF_PIXEL_POSITION_$_INT_INT
           
static MockMethod MTHD_SET_TRANSFORM_$_INT
           
static MockMethod MTHD_SET_VISIBLE_$_BOOLEAN
           
 
Fields inherited from class javax.microedition.lcdui.game.Sprite
TRANS_MIRROR, TRANS_MIRROR_ROT180, TRANS_MIRROR_ROT270, TRANS_MIRROR_ROT90, TRANS_NONE, TRANS_ROT180, TRANS_ROT270, TRANS_ROT90
 
Constructor Summary
MockSprite(javax.microedition.lcdui.Image arg0)
           
MockSprite(javax.microedition.lcdui.Image arg0, IInvocationHandler handler)
           
MockSprite(javax.microedition.lcdui.Image arg0, int arg1, int arg2)
           
MockSprite(javax.microedition.lcdui.Image arg0, int arg1, int arg2, IInvocationHandler handler)
           
MockSprite(javax.microedition.lcdui.game.Sprite arg0)
           
MockSprite(javax.microedition.lcdui.game.Sprite arg0, IInvocationHandler handler)
           
 
Method Summary
 void defineCollisionRectangle(int arg0, int arg1, int arg2, int arg3)
           
 void defineReferencePixel(int arg0, int arg1)
           
 int getFrameSequenceLength()
           
 IInvocationHandler getInvocationHandler()
          Gets the invocation handler that the mock object uses to evaluate method invocations.
 int getRawFrameCount()
           
 int getRefPixelX()
           
 int getRefPixelY()
           
 void move(int arg0, int arg1)
           
 void nextFrame()
           
 void prevFrame()
           
 void setFrame(int arg0)
           
 void setFrameSequence(int[] arg0)
           
 void setImage(javax.microedition.lcdui.Image arg0, int arg1, int arg2)
           
 void setInvocationHandler(IInvocationHandler handler)
          Sets the invocation handler that the mock object should use to evaluate method invocations.
 void setPosition(int arg0, int arg1)
           
 void setRefPixelPosition(int arg0, int arg1)
           
 void setTransform(int arg0)
           
 void setVisible(boolean arg0)
           
 
Methods inherited from class javax.microedition.lcdui.game.Sprite
collidesWith, collidesWith, collidesWith, getFrame, paint
 
Methods inherited from class javax.microedition.lcdui.game.Layer
getHeight, getWidth, getX, getY, isVisible
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MTHD_DEFINE_COLLISION_RECTANGLE_$_INT_INT_INT_INT

public static final MockMethod MTHD_DEFINE_COLLISION_RECTANGLE_$_INT_INT_INT_INT

MTHD_DEFINE_REFERENCE_PIXEL_$_INT_INT

public static final MockMethod MTHD_DEFINE_REFERENCE_PIXEL_$_INT_INT

MTHD_GET_FRAME_SEQUENCE_LENGTH

public static final MockMethod MTHD_GET_FRAME_SEQUENCE_LENGTH

MTHD_GET_RAW_FRAME_COUNT

public static final MockMethod MTHD_GET_RAW_FRAME_COUNT

MTHD_GET_REF_PIXEL_X

public static final MockMethod MTHD_GET_REF_PIXEL_X

MTHD_GET_REF_PIXEL_Y

public static final MockMethod MTHD_GET_REF_PIXEL_Y

MTHD_MOVE_$_INT_INT

public static final MockMethod MTHD_MOVE_$_INT_INT

MTHD_NEXT_FRAME

public static final MockMethod MTHD_NEXT_FRAME

MTHD_PREV_FRAME

public static final MockMethod MTHD_PREV_FRAME

MTHD_SET_FRAME_$_INT

public static final MockMethod MTHD_SET_FRAME_$_INT

MTHD_SET_FRAME_SEQUENCE_$_ARRAY_INT

public static final MockMethod MTHD_SET_FRAME_SEQUENCE_$_ARRAY_INT

MTHD_SET_IMAGE_$_IMAGE_INT_INT

public static final MockMethod MTHD_SET_IMAGE_$_IMAGE_INT_INT

MTHD_SET_POSITION_$_INT_INT

public static final MockMethod MTHD_SET_POSITION_$_INT_INT

MTHD_SET_REF_PIXEL_POSITION_$_INT_INT

public static final MockMethod MTHD_SET_REF_PIXEL_POSITION_$_INT_INT

MTHD_SET_TRANSFORM_$_INT

public static final MockMethod MTHD_SET_TRANSFORM_$_INT

MTHD_SET_VISIBLE_$_BOOLEAN

public static final MockMethod MTHD_SET_VISIBLE_$_BOOLEAN
Constructor Detail

MockSprite

public MockSprite(javax.microedition.lcdui.Image arg0,
                  int arg1,
                  int arg2)

MockSprite

public MockSprite(javax.microedition.lcdui.Image arg0,
                  int arg1,
                  int arg2,
                  IInvocationHandler handler)

MockSprite

public MockSprite(javax.microedition.lcdui.game.Sprite arg0)

MockSprite

public MockSprite(javax.microedition.lcdui.game.Sprite arg0,
                  IInvocationHandler handler)

MockSprite

public MockSprite(javax.microedition.lcdui.Image arg0)

MockSprite

public MockSprite(javax.microedition.lcdui.Image arg0,
                  IInvocationHandler handler)
Method Detail

setInvocationHandler

public final void setInvocationHandler(IInvocationHandler handler)
Description copied from interface: IMockObject
Sets the invocation handler that the mock object should use to evaluate method invocations.

Specified by:
setInvocationHandler in interface IMockObject
Parameters:
handler - The invocation handler to be used by the mock object.

getInvocationHandler

public final IInvocationHandler getInvocationHandler()
Description copied from interface: IMockObject
Gets the invocation handler that the mock object uses to evaluate method invocations.

Specified by:
getInvocationHandler in interface IMockObject
Returns:
The invocation handler used by the mock object.

defineCollisionRectangle

public void defineCollisionRectangle(int arg0,
                                     int arg1,
                                     int arg2,
                                     int arg3)
Overrides:
defineCollisionRectangle in class javax.microedition.lcdui.game.Sprite

defineReferencePixel

public void defineReferencePixel(int arg0,
                                 int arg1)
Overrides:
defineReferencePixel in class javax.microedition.lcdui.game.Sprite

getFrameSequenceLength

public int getFrameSequenceLength()
Overrides:
getFrameSequenceLength in class javax.microedition.lcdui.game.Sprite

getRawFrameCount

public int getRawFrameCount()
Overrides:
getRawFrameCount in class javax.microedition.lcdui.game.Sprite

getRefPixelX

public int getRefPixelX()
Overrides:
getRefPixelX in class javax.microedition.lcdui.game.Sprite

getRefPixelY

public int getRefPixelY()
Overrides:
getRefPixelY in class javax.microedition.lcdui.game.Sprite

move

public void move(int arg0,
                 int arg1)
Overrides:
move in class javax.microedition.lcdui.game.Layer

nextFrame

public void nextFrame()
Overrides:
nextFrame in class javax.microedition.lcdui.game.Sprite

prevFrame

public void prevFrame()
Overrides:
prevFrame in class javax.microedition.lcdui.game.Sprite

setFrame

public void setFrame(int arg0)
Overrides:
setFrame in class javax.microedition.lcdui.game.Sprite

setFrameSequence

public void setFrameSequence(int[] arg0)
Overrides:
setFrameSequence in class javax.microedition.lcdui.game.Sprite

setImage

public void setImage(javax.microedition.lcdui.Image arg0,
                     int arg1,
                     int arg2)
Overrides:
setImage in class javax.microedition.lcdui.game.Sprite

setPosition

public void setPosition(int arg0,
                        int arg1)
Overrides:
setPosition in class javax.microedition.lcdui.game.Layer

setRefPixelPosition

public void setRefPixelPosition(int arg0,
                                int arg1)
Overrides:
setRefPixelPosition in class javax.microedition.lcdui.game.Sprite

setTransform

public void setTransform(int arg0)
Overrides:
setTransform in class javax.microedition.lcdui.game.Sprite

setVisible

public void setVisible(boolean arg0)
Overrides:
setVisible in class javax.microedition.lcdui.game.Layer