public class StereoDeviceUtil extends Object
StereoDevice
NEWT related utilities.Constructor and Description |
---|
StereoDeviceUtil() |
Modifier and Type | Method and Description |
---|---|
static MonitorDevice |
getMonitorDevice(StereoDevice stereoDevice,
boolean adjustRotation)
|
public static MonitorDevice getMonitorDevice(StereoDevice stereoDevice, boolean adjustRotation)
StereoDevice
's associated MonitorDevice
or null
, if none is attached.
The returned MonitorDevice
's Screen
, retrieved via MonitorDevice.getScreen()
,
has been natively created via Screen.addReference()
and caller shall ensure
Screen.removeReference()
will be called when no more in use.
If adjustRotation
is true
and the StereoDevice
requires rotation
, the MonitorDevice
will be rotated.
stereoDevice
- the StereoDevice
adjustRotation
- if true
rotate the MonitorDevice
if required
.Copyright 2010 JogAmp Community.