Example usage for javafx.scene.layout Pane layoutYProperty

List of usage examples for javafx.scene.layout Pane layoutYProperty

Introduction

In this page you can find the example usage for javafx.scene.layout Pane layoutYProperty.

Prototype

public final DoubleProperty layoutYProperty() 

Source Link

Usage

From source file:mesclasses.view.TimetableController.java

private void resizeEvent(Cours cours) {
    VBox event = cours.getEvent();/*  w  w  w . j  a v a  2 s  .c o m*/
    Pane pane = getPane(cours);
    bindWidth(event, pane, 1);
    event.layoutXProperty().bind(pane.layoutXProperty());
    Double startTime = cours.getStartHour() + cours.getStartMin() / 60.0;
    Double endTime = cours.getEndHour() + cours.getEndMin() / 60.0;
    Double height = Math.max((endTime - startTime) * 60, 20);
    event.layoutYProperty().bind(pane.layoutYProperty().add(60 * (startTime - 7)));
    event.setMinHeight(height);
    event.setPrefHeight(height);
    event.setMaxHeight(height);
    handleSimultaneousEvents(cours);
}