Package com.ribomation.droidAtScreen.gui

Examples of com.ribomation.droidAtScreen.gui.StatusBar.message()


  }

  @Override
  protected void doExecute(final Application app) {
    final StatusBar statusBar = app.getAppFrame().getStatusBar();
    statusBar.message("Restarting ADB...");

    SwingUtilities.invokeLater(new Runnable() {
      @Override
      public void run() {
        app.disconnectAll();
View Full Code Here


    SwingUtilities.invokeLater(new Runnable() {
      @Override
      public void run() {
        app.disconnectAll();
        boolean succeeded = app.getDeviceManager().restartADB();
        statusBar.message("ADB restart " + (succeeded ? "succeeded" : "failed"));
      }
    });
  }

}
View Full Code Here

      do {
        ScreenImage image = images.take();
        File file = nextName();
        ImageIO.write(image.toBufferedImage(), format, file);
        getLog().info("Screenshot saved " + file);
        statusBar.message("Saved %s", file.getName());
      } while (capturing.get());
    } catch (InterruptedException ignore) {
    } catch (IOException e) {
      getLog().warn("Failed to save image: " + e);
    } finally {
View Full Code Here

      device = null;
      SwingUtilities.invokeLater(new Runnable() {
        @Override
        public void run() {
          setIcon("record");
          statusBar.message("Recording stopped. %d images saved.", next.get());
        }
      });
    }
  }
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.