Example usage for javafx.scene.transform Shear setY

List of usage examples for javafx.scene.transform Shear setY

Introduction

In this page you can find the example usage for javafx.scene.transform Shear setY.

Prototype

public final void setY(double value) 

Source Link

Usage

From source file:Main.java

@Override
public void start(Stage primaryStage) {
    primaryStage.setTitle("Text Fonts");

    Group rectangleGroup = new Group();
    Scene scene = new Scene(rectangleGroup, 550, 250);

    Rectangle rect = new Rectangle();
    rect.setWidth(100);/*from ww  w .  j  av  a  2 s .  c  o m*/
    rect.setHeight(100);

    Shear sh = new Shear();
    sh.setY(0.4);
    rect.getTransforms().add(sh);

    rectangleGroup.getChildren().add(rect);

    primaryStage.setScene(scene);
    primaryStage.show();
}