Package com.opera.core.systems.scope.protos.DesktopWmProtos

Examples of com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect


  /**
   * @return Point describing location of window
   */
  public Point getLocation() {
    DesktopWindowRect rect = getRect();
    return new Point(rect.getX(), rect.getY());
  }
View Full Code Here


  /**
   * @return size of this window
   */
  public Dimension getSize() {
    DesktopWindowRect rect = getRect();
    return new Dimension(rect.getWidth(), rect.getHeight());
  }
View Full Code Here

  /**
   * @return Point describing location of this element
   */
  public Point getLocation() {
    DesktopWindowRect rect = getRect();
    return new Point(rect.getX(), rect.getY());
  }
View Full Code Here

  /**
   * @return size of Element
   */
  public Dimension getSize() {
    DesktopWindowRect rect = getRect();
    return new Dimension(rect.getWidth(), rect.getHeight());
  }
View Full Code Here

  public void click(MouseButton button, int numClicks, List<ModifierPressed> modifiers) {
    systemInputManager.click(getCenterLocation(), button, numClicks, modifiers);
  }

  protected Point getCenterLocation() {
    DesktopWindowRect rect = getRect();
    Point topLeft = getLocation();
    //Point center = new Point(topLeft.x + rect.getWidth() / 2, topLeft.y + rect.getHeight() / 2);
    return new Point(topLeft.x + rect.getWidth() / 2, topLeft.y + rect.getHeight() / 2);
  }
View Full Code Here

TOP

Related Classes of com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect

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.