Examples of rotate()


Examples of org.openqa.selenium.Rotatable.rotate()

  @Test
  public void canSetAndGetOrientationUsingTheWebDriverAPI() throws MalformedURLException {
    driver = new RemoteIOSDriver(getRemoteURL(), IOSCapabilities.iphone("Safari"));
    WebDriver d = new Augmenter().augment(driver);
    Rotatable rotator = ((Rotatable) d);
    rotator.rotate(LANDSCAPE);
    Assert.assertEquals(rotator.getOrientation(), LANDSCAPE);
    rotator.rotate(PORTRAIT);
    Assert.assertEquals(rotator.getOrientation(), PORTRAIT);
  }
View Full Code Here

Examples of org.openqa.selenium.android.AndroidDriver.rotate()

        try {
            String url = System.getProperty("webdriver.android.url", "http://localhost:8080/hub");
            ScreenOrientation screenOrientation = ScreenOrientation.valueOf(System.getProperty(
                    "webdriver.android.screenOrientation", "portrait").toUpperCase(usingLocale()));
            AndroidDriver driver = new AndroidDriver(url);
            driver.rotate(screenOrientation);
            return driver;
        } catch (MalformedURLException e) {
            throw new UnsupportedOperationException(e);
        }
    }
View Full Code Here

Examples of org.pdfclown.documents.contents.composition.PrimitiveComposer.rotate()

    composer.setFillColor(
      DeviceRGBColor.White
      );
    composer.beginLocalState();
    composer.translate((float)templateSize.getWidth() - 20, 20);
    composer.rotate(90);
    composer.showText("Generated by PDF Clown on " + (new Date()));
    composer.translate(0,-8);
    composer.showText("For more info, visit http://www.pdfclown.org");
    composer.end();
    // End the graphics state!
View Full Code Here

Examples of org.pdfclown.documents.contents.composition.PrimitiveComposer.rotate()

    blockComposer.end();

    composer.end();

    composer.beginLocalState();
    composer.rotate(
      90,
      new Point2D.Double(
        pageSize.getWidth() - 50,
        pageSize.getHeight() - 25
        )
View Full Code Here

Examples of org.pdfclown.documents.contents.composition.PrimitiveComposer.rotate()

      );
    composer.setFillColor(
      new DeviceRGBColor(1,1,1)
      );
    composer.beginLocalState();
    composer.rotate(
      90,
      new Point2D.Double(
        templateSize.getWidth() - 50,
        templateSize.getHeight() - 25
        )
View Full Code Here

Examples of org.pptx4j.Box.rotate()

      CTTransform2D xfrm = cxnSp.getSpPr().getXfrm();
      Box b = new Box(xfrm.getOff().getX(), xfrm.getOff().getY(),
          xfrm.getExt().getCx(), xfrm.getExt().getCy() );
     
      if (xfrm.getRot()!=0) {
        b.rotate(xfrm.getRot());
      }
      if (xfrm.isFlipH() ) {
        b.flipH();
      }
      if (xfrm.isFlipV() ) {
View Full Code Here

Examples of org.sgx.yuigwt.yuigallery.cssmatrix2d.CSSMatrix2d.rotate()

    n3.once("mouseover", new EventCallback<YuiEvent>() {

      @Override
      public void call(YuiEvent e) {
        CSSMatrix2d m = Y.newCSSMatrix2d().setMatrixValue(n3.getString("transform"));
        n3.setStyle("transform", m.rotate(20).translate(0, 20).toString_());
      }
    });
  }
});
}
View Full Code Here

Examples of org.sgx.yuigwt.yuigallery.nodeTransform2d.NodeTransform2d.rotate()

   
    n1.on("click", new EventCallback<YuiEvent>() {

      @Override
      public void call(YuiEvent e) {
        n1.rotate(25, TransitionVal.create().duration(0.5).easing("linear"));
      }
    });
   
    final NodeTransform2d n2 = p.appendChild("<p>and then click me also</p>").cast();
   
View Full Code Here

Examples of org.teavm.dom.canvas.CanvasRenderingContext2D.rotate()

        context.setLineWidth(0.01);
        for (Body body = scene.getWorld().getBodyList(); body != null; body = body.getNext()) {
            Vec2 center = body.getPosition();
            context.save();
            context.translate(center.x, center.y);
            context.rotate(body.getAngle());
            for (Fixture fixture = body.getFixtureList(); fixture != null; fixture = fixture.getNext()) {
                Shape shape = fixture.getShape();
                if (shape.getType() == ShapeType.CIRCLE) {
                    CircleShape circle = (CircleShape)shape;
                    context.beginPath();
View Full Code Here

Examples of org.uiautomation.ios.client.uiamodels.impl.RemoteIOSDriver.rotate()

    RemoteIOSDriver driver = null;
    try {
      driver = new RemoteIOSDriver(new URL(url), cap);

      for (Orientation o : getOrientationForDevice(device)) {
        driver.rotate(o);
        driver.get(pages.formPage);
        WebElement element = driver.findElement(By.id("working"));

        element.sendKeys("some");
        String value = element.getAttribute("value");
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.