com.hammingweight.hammock.mocks.microedition.location
Class MockOrientation
java.lang.Object
javax.microedition.location.Orientation
com.hammingweight.hammock.mocks.microedition.location.MockOrientation
- All Implemented Interfaces:
- IMockObject
public class MockOrientation
- extends javax.microedition.location.Orientation
- implements IMockObject
Methods inherited from class javax.microedition.location.Orientation |
getOrientation |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MTHD_GET_COMPASS_AZIMUTH
public static final MockMethod MTHD_GET_COMPASS_AZIMUTH
MTHD_GET_PITCH
public static final MockMethod MTHD_GET_PITCH
MTHD_GET_ROLL
public static final MockMethod MTHD_GET_ROLL
MTHD_IS_ORIENTATION_MAGNETIC
public static final MockMethod MTHD_IS_ORIENTATION_MAGNETIC
MockOrientation
public MockOrientation(float arg0,
boolean arg1,
float arg2,
float arg3)
MockOrientation
public MockOrientation(float arg0,
boolean arg1,
float arg2,
float arg3,
IInvocationHandler handler)
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.
getCompassAzimuth
public float getCompassAzimuth()
- Overrides:
getCompassAzimuth
in class javax.microedition.location.Orientation
getPitch
public float getPitch()
- Overrides:
getPitch
in class javax.microedition.location.Orientation
getRoll
public float getRoll()
- Overrides:
getRoll
in class javax.microedition.location.Orientation
isOrientationMagnetic
public boolean isOrientationMagnetic()
- Overrides:
isOrientationMagnetic
in class javax.microedition.location.Orientation