com.hammingweight.hammock.mocks.microedition.media.control
Class MockVideoControl

java.lang.Object
  extended by com.hammingweight.hammock.AMockObject
      extended by com.hammingweight.hammock.mocks.microedition.media.control.MockVideoControl
All Implemented Interfaces:
IHammockExceptionErrors, IMockObject, javax.microedition.media.Control, javax.microedition.media.control.GUIControl, javax.microedition.media.control.VideoControl

public class MockVideoControl
extends AMockObject
implements javax.microedition.media.control.VideoControl


Field Summary
static MockMethod MTHD_GET_DISPLAY_HEIGHT
           
static MockMethod MTHD_GET_DISPLAY_WIDTH
           
static MockMethod MTHD_GET_DISPLAY_X
           
static MockMethod MTHD_GET_DISPLAY_Y
           
static MockMethod MTHD_GET_SNAPSHOT_$_STRING
           
static MockMethod MTHD_GET_SOURCE_HEIGHT
           
static MockMethod MTHD_GET_SOURCE_WIDTH
           
static MockMethod MTHD_INIT_DISPLAY_MODE_$_INT_OBJECT
           
static MockMethod MTHD_SET_DISPLAY_FULL_SCREEN_$_BOOLEAN
           
static MockMethod MTHD_SET_DISPLAY_LOCATION_$_INT_INT
           
static MockMethod MTHD_SET_DISPLAY_SIZE_$_INT_INT
           
static MockMethod MTHD_SET_VISIBLE_$_BOOLEAN
           
 
Fields inherited from interface javax.microedition.media.control.VideoControl
USE_DIRECT_VIDEO
 
Fields inherited from interface javax.microedition.media.control.GUIControl
USE_GUI_PRIMITIVE
 
Fields inherited from interface com.hammingweight.hammock.IHammockExceptionErrors
ARGUMENT_MATCHER_ALREADY_SET, CANT_SET_VOID_RETURN_VALUE, CLASS_IS_NOT_THROWABLE, DOES_NOT_SUBCLASS_MOCK_OBJECT, HANDLER_NOT_SET, INCORRECT_MOCK_OBJECT, INCORRECT_RETURN_CLASS, INCORRECT_THROWABLE_CLASS, METHOD_CANNOT_BE_EVALUATED, METHOD_INVOKED_OUT_OF_SEQUENCE, METHOD_INVOKED_TOO_MANY_TIMES, METHOD_INVOKED_UNEXPECTED_NUMBER_OF_TIMES, NO_RETURN_VALUE, NO_RETURN_VALUE_SET, NUM_INVOCATIONS_ALREADY_SET, RETURN_VALUE_ALREADY_SET, WRONG_ARGUMENT_CLASS, WRONG_NUMBER_OF_ARGS
 
Constructor Summary
MockVideoControl()
           
MockVideoControl(IInvocationHandler handler)
           
 
Method Summary
 int getDisplayHeight()
           
 int getDisplayWidth()
           
 int getDisplayX()
           
 int getDisplayY()
           
 byte[] getSnapshot(java.lang.String arg0)
           
 int getSourceHeight()
           
 int getSourceWidth()
           
 java.lang.Object initDisplayMode(int arg0, java.lang.Object arg1)
           
 void setDisplayFullScreen(boolean arg0)
           
 void setDisplayLocation(int arg0, int arg1)
           
 void setDisplaySize(int arg0, int arg1)
           
 void setVisible(boolean arg0)
           
 
Methods inherited from class com.hammingweight.hammock.AMockObject
assertReturnNotNull, getInvocationHandler, setInvocationHandler
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MTHD_GET_DISPLAY_HEIGHT

public static final MockMethod MTHD_GET_DISPLAY_HEIGHT

MTHD_GET_DISPLAY_WIDTH

public static final MockMethod MTHD_GET_DISPLAY_WIDTH

MTHD_GET_DISPLAY_X

public static final MockMethod MTHD_GET_DISPLAY_X

MTHD_GET_DISPLAY_Y

public static final MockMethod MTHD_GET_DISPLAY_Y

MTHD_GET_SNAPSHOT_$_STRING

public static final MockMethod MTHD_GET_SNAPSHOT_$_STRING

MTHD_GET_SOURCE_HEIGHT

public static final MockMethod MTHD_GET_SOURCE_HEIGHT

MTHD_GET_SOURCE_WIDTH

public static final MockMethod MTHD_GET_SOURCE_WIDTH

MTHD_INIT_DISPLAY_MODE_$_INT_OBJECT

public static final MockMethod MTHD_INIT_DISPLAY_MODE_$_INT_OBJECT

MTHD_SET_DISPLAY_FULL_SCREEN_$_BOOLEAN

public static final MockMethod MTHD_SET_DISPLAY_FULL_SCREEN_$_BOOLEAN

MTHD_SET_DISPLAY_LOCATION_$_INT_INT

public static final MockMethod MTHD_SET_DISPLAY_LOCATION_$_INT_INT

MTHD_SET_DISPLAY_SIZE_$_INT_INT

public static final MockMethod MTHD_SET_DISPLAY_SIZE_$_INT_INT

MTHD_SET_VISIBLE_$_BOOLEAN

public static final MockMethod MTHD_SET_VISIBLE_$_BOOLEAN
Constructor Detail

MockVideoControl

public MockVideoControl()

MockVideoControl

public MockVideoControl(IInvocationHandler handler)
Method Detail

getDisplayHeight

public int getDisplayHeight()
Specified by:
getDisplayHeight in interface javax.microedition.media.control.VideoControl

getDisplayWidth

public int getDisplayWidth()
Specified by:
getDisplayWidth in interface javax.microedition.media.control.VideoControl

getDisplayX

public int getDisplayX()
Specified by:
getDisplayX in interface javax.microedition.media.control.VideoControl

getDisplayY

public int getDisplayY()
Specified by:
getDisplayY in interface javax.microedition.media.control.VideoControl

getSnapshot

public byte[] getSnapshot(java.lang.String arg0)
                   throws javax.microedition.media.MediaException
Specified by:
getSnapshot in interface javax.microedition.media.control.VideoControl
Throws:
javax.microedition.media.MediaException

getSourceHeight

public int getSourceHeight()
Specified by:
getSourceHeight in interface javax.microedition.media.control.VideoControl

getSourceWidth

public int getSourceWidth()
Specified by:
getSourceWidth in interface javax.microedition.media.control.VideoControl

initDisplayMode

public java.lang.Object initDisplayMode(int arg0,
                                        java.lang.Object arg1)
Specified by:
initDisplayMode in interface javax.microedition.media.control.GUIControl
Specified by:
initDisplayMode in interface javax.microedition.media.control.VideoControl

setDisplayFullScreen

public void setDisplayFullScreen(boolean arg0)
                          throws javax.microedition.media.MediaException
Specified by:
setDisplayFullScreen in interface javax.microedition.media.control.VideoControl
Throws:
javax.microedition.media.MediaException

setDisplayLocation

public void setDisplayLocation(int arg0,
                               int arg1)
Specified by:
setDisplayLocation in interface javax.microedition.media.control.VideoControl

setDisplaySize

public void setDisplaySize(int arg0,
                           int arg1)
                    throws javax.microedition.media.MediaException
Specified by:
setDisplaySize in interface javax.microedition.media.control.VideoControl
Throws:
javax.microedition.media.MediaException

setVisible

public void setVisible(boolean arg0)
Specified by:
setVisible in interface javax.microedition.media.control.VideoControl