Examples of CameraViewer


Examples of org.xvr.cam.widgets.CameraViewer

    System.out.println("Available camera: " + cam_count);

   
   
    for (int i = 0; i < cam_count; i++) {
      CameraViewer new_viewer = new CameraViewer(this.pool, SWT.NULL, i);
      new_viewer.registerListener(this);
      new_viewer.setLayoutData(data);
      this.cams.add(new_viewer);
   

    scrollable.setMinSize(this.pool.computeSize(SWT.DEFAULT, SWT.DEFAULT));
  }
View Full Code Here

Examples of org.xvr.cam.widgets.CameraViewer

  public void setFocus() {
  }

  @Override
  public void onDoubleClick(int id) {
    CameraViewer c = this.find(id);
    if(c == null)
      throw new RuntimeException("Unable to find viewer " + id);
   
    if(c.isMain()){
      c.setMain(false);
      c.setParent(this.pool);
    }
    else{
      c.setMain(true);
      c.setParent(this.main);
    }
   
    this.main.layout();
    this.pool.layout();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.