1 package jp.sfjp.gokigen.a01c.olycamerawrapper;
3 import android.graphics.Color;
4 import android.support.v4.app.INotificationSideChannel;
5 import android.util.Log;
7 import jp.co.olympus.camerakit.OLYCamera;
8 import jp.sfjp.gokigen.a01c.IShowInformation;
11 class CameraStatusDisplay implements ICameraStatusDisplay
13 private final String TAG = toString();
14 private final IOlyCameraPropertyProvider propertyProxy;
15 private final IShowInformation informationObject;
17 CameraStatusDisplay(IOlyCameraPropertyProvider propertyProxy, IShowInformation informationObject)
19 this.propertyProxy = propertyProxy;
20 this.informationObject = informationObject;
23 /****************** ICameraStatusDisplayの 実装 *****************/
26 public void updateTakeMode()
28 String propetyValue = propertyProxy.getCameraPropertyValueTitle(propertyProxy.getCameraPropertyValue(IOlyCameraProperty.TAKE_MODE));
29 informationObject.setMessage(IShowInformation.AREA_1, Color.WHITE, propetyValue);
31 propetyValue = propertyProxy.getCameraPropertyValueTitle(propertyProxy.getCameraPropertyValue(IOlyCameraProperty.SHUTTER_SPEED));
32 informationObject.setMessage(IShowInformation.AREA_2, Color.WHITE, propetyValue);
34 propetyValue = propertyProxy.getCameraPropertyValueTitle(propertyProxy.getCameraPropertyValue(IOlyCameraProperty.APERTURE));
35 if (propetyValue != null)
37 informationObject.setMessage(IShowInformation.AREA_3, Color.WHITE, "F" + propetyValue);
40 informationObject.setMessage(IShowInformation.AREA_4, Color.GRAY, "");
45 public void updateDriveMode()
47 //updateCameraPropertyStatus();
51 public void updateWhiteBalance()
53 //updateCameraPropertyStatus();
57 public void updateBatteryLevel()
62 public void updateAeMode()
67 public void updateAeLockState()
73 public void updateCameraStatus()
75 Log.v(TAG,"updateCameraStatus()");
80 public void updateCameraStatus(String message)
82 informationObject.setMessage(IShowInformation.AREA_4, Color.MAGENTA, message);