com.bruxton.sidx
Class Shutter

java.lang.Object
  extended by com.bruxton.sidx.Shutter

public class Shutter
extends java.lang.Object

Responsible for managing the shutter of the camera. Each instance of Camera can own one instance of the class. The user of SIDX should not create the object. It should be obtained by using getShutter function of Camera object.


Method Summary
 int getMode()
          Obtain the current shutter mode setting.
 boolean isModeAvailable(int mode)
          Inquire if a shutter mode is supported by the camera.
 void setMode(int mode)
          Set the shutter mode.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setMode

public void setMode(int mode)
             throws Exception
Set the shutter mode. The available modes are shown in the following table. The shutter modes may not be supported by all cameras. The function will throw an exception if a shutter mode is not supported on a particular camera. Use isModeAvailable to find if a mode is supported.
modeDescription
0Normal mode. The shutter opens before each exposure.
1The shutter opens before each sequence.
2The shutter opens before each trigger if using a triggered mode.
3The shutter opens and stays open.
4The shutter closes and stays closed.

Parameters:
mode - the shutter mode to use.
Throws:
Exception

isModeAvailable

public boolean isModeAvailable(int mode)
                        throws Exception
Inquire if a shutter mode is supported by the camera.

Parameters:
mode - the shutter mode that you wish to use. It should be one of the shutter modes defined for setMode.
Returns:
true if the shutter mode is supported by the camera. Otherwise false.
Throws:
Exception

getMode

public int getMode()
            throws Exception
Obtain the current shutter mode setting. See setMode for the possible shutter modes to return.

Returns:
the current shutter mode.
Throws:
Exception