List of usage examples for javafx.scene.shape VLineTo setY
public final void setY(double value)
From source file:Main.java
@Override public void start(final Stage stage) { stage.setTitle("HTML"); stage.setWidth(500);//from w ww . java 2 s. c o m stage.setHeight(500); Scene scene = new Scene(new Group()); VBox root = new VBox(); Path path = new Path(); path.getElements().add(new MoveTo(50.0f, 0.0f)); VLineTo vlt = new VLineTo(); vlt.setY(.7); path.getElements().add(vlt); System.out.println(vlt.yProperty()); root.getChildren().addAll(path); scene.setRoot(root); stage.setScene(scene); stage.show(); }
From source file:Main.java
@Override public void start(final Stage stage) { stage.setTitle("HTML"); stage.setWidth(500);/*from w ww . ja va 2 s . c o m*/ stage.setHeight(500); Scene scene = new Scene(new Group()); VBox root = new VBox(); Path path = new Path(); path.getElements().add(new MoveTo(50.0f, 0.0f)); VLineTo vlt = new VLineTo(50.0f); vlt.setY(.7); path.getElements().add(vlt); System.out.println(vlt.getY()); root.getChildren().addAll(path); scene.setRoot(root); stage.setScene(scene); stage.show(); }
From source file:Main.java
@Override public void start(final Stage stage) { stage.setTitle("HTML"); stage.setWidth(500);//from w ww . j a va 2 s.co m stage.setHeight(500); Scene scene = new Scene(new Group()); VBox root = new VBox(); Path path = new Path(); path.getElements().add(new MoveTo(50.0f, 0.0f)); VLineTo vlt = new VLineTo(50.0f); vlt.setY(.7); path.getElements().add(vlt); System.out.println(vlt.yProperty()); root.getChildren().addAll(path); scene.setRoot(root); stage.setScene(scene); stage.show(); }