player
Class CameraChangeMonitorForPlayer

java.lang.Object
  extended by player.CameraChangeMonitorForPlayer
All Implemented Interfaces:
CameraChangeMonitor

public class CameraChangeMonitorForPlayer
extends java.lang.Object
implements CameraChangeMonitor

Provides access to a CameraChangeMonitor implementation, for use by a JAFramesPlayer.


Constructor Summary
CameraChangeMonitorForPlayer(CameraAccess access)
          Constructs a new change monitor for the enclosing player.
 
Method Summary
 float[] cameraSettings()
          Returns the most recently checked camera settings.
 java.lang.String cameraSettingsString()
          Returns the string representation for the most recently checked camera settings.
 boolean checkCameraForChange()
          Updates the camera settings if possible, and checks whether or not they have changed since the previous check, which cannot happen unless the settings are well-defined on both occasions.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CameraChangeMonitorForPlayer

public CameraChangeMonitorForPlayer(CameraAccess access)
Constructs a new change monitor for the enclosing player.

Method Detail

checkCameraForChange

public boolean checkCameraForChange()
Updates the camera settings if possible, and checks whether or not they have changed since the previous check, which cannot happen unless the settings are well-defined on both occasions.

Specified by:
checkCameraForChange in interface CameraChangeMonitor

cameraSettings

public float[] cameraSettings()
Returns the most recently checked camera settings.

Specified by:
cameraSettings in interface CameraChangeMonitor

cameraSettingsString

public java.lang.String cameraSettingsString()
Returns the string representation for the most recently checked camera settings.

Specified by:
cameraSettingsString in interface CameraChangeMonitor