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

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

public class MockLayer
extends javax.microedition.lcdui.game.Layer
implements IMockObject


Field Summary
static MockMethod MTHD_MOVE_$_INT_INT
           
static MockMethod MTHD_PAINT_$_GRAPHICS
           
static MockMethod MTHD_SET_POSITION_$_INT_INT
           
static MockMethod MTHD_SET_VISIBLE_$_BOOLEAN
           
 
Constructor Summary
MockLayer()
           
MockLayer(IInvocationHandler handler)
           
 
Method Summary
 IInvocationHandler getInvocationHandler()
          Gets the invocation handler that the mock object uses to evaluate method invocations.
 void move(int arg0, int arg1)
           
 void paint(javax.microedition.lcdui.Graphics arg0)
           
 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 setVisible(boolean arg0)
           
 
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_MOVE_$_INT_INT

public static final MockMethod MTHD_MOVE_$_INT_INT

MTHD_PAINT_$_GRAPHICS

public static final MockMethod MTHD_PAINT_$_GRAPHICS

MTHD_SET_POSITION_$_INT_INT

public static final MockMethod MTHD_SET_POSITION_$_INT_INT

MTHD_SET_VISIBLE_$_BOOLEAN

public static final MockMethod MTHD_SET_VISIBLE_$_BOOLEAN
Constructor Detail

MockLayer

public MockLayer()

MockLayer

public MockLayer(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.

move

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

paint

public void paint(javax.microedition.lcdui.Graphics arg0)
Specified by:
paint in class javax.microedition.lcdui.game.Layer

setPosition

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

setVisible

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