Package org.gphoto2

Examples of org.gphoto2.CameraWidget$RangeWidget


public class CameraListTest {
  @Test
  public void test() {
    CameraList list = new CameraList();
    assertEquals(0, list.size());
    list.add(new CameraEntry("Foo", "Bar"));
    list.add(new CameraEntry("A", "B"));
    list.add(new CameraEntry("X", "Z"));

    assertEquals(3, list.size());
    list.sort();
    assertEquals("A", list.get(0).getName());
    assertEquals("B", list.get(0).getValue());
View Full Code Here


  @Test
  public void testPopulate() {
    CameraList list = new CameraList();
    list.populate("meh %i", 2);
    assertEquals(Arrays.asList(
        new CameraEntry("meh 1", null),
        new CameraEntry("meh 2", null)),
        list);
    list.close();
  }
View Full Code Here

    System.out.println("=== Summary:\n" + camera.getSummary(null));
    System.out.println(camera.getPortSpeed());
    //camera.triggerCapture(ctx);
    //camera.triggerCapture(ctx);
   
    ContainerWidget widget = (ContainerWidget)camera.getConfig(ctx);
    System.out.println(widget);
    System.out.println();
   
    RadioWidget ev = (RadioWidget)widget.getChildByLabel("Exposure Compensation");
    for (String s : ev.getChoices()) {
      ev.setValue(s);
      Thread.sleep(5000);
      camera.setConfig(widget, null);
      camera.triggerCapture(null);
View Full Code Here

   
    ContainerWidget widget = (ContainerWidget)camera.getConfig(ctx);
    System.out.println(widget);
    System.out.println();
   
    RadioWidget ev = (RadioWidget)widget.getChildByLabel("Exposure Compensation");
    for (String s : ev.getChoices()) {
      ev.setValue(s);
      Thread.sleep(5000);
      camera.setConfig(widget, null);
      camera.triggerCapture(null);
    }
View Full Code Here

TOP

Related Classes of org.gphoto2.CameraWidget$RangeWidget

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.