Example usage for javafx.scene.control TreeTableView getHeight

List of usage examples for javafx.scene.control TreeTableView getHeight

Introduction

In this page you can find the example usage for javafx.scene.control TreeTableView getHeight.

Prototype

public final double getHeight() 

Source Link

Usage

From source file:org.eclipse.jubula.rc.javafx.tester.adapter.TreeTableOperationContext.java

@Override
public Rectangle getVisibleRowBounds(final Rectangle rowBounds) {
    Rectangle result = EventThreadQueuerJavaFXImpl.invokeAndWait("getVisibleRowBounds", //$NON-NLS-1$
            new Callable<Rectangle>() {

                @Override//from w w  w.j  a va  2 s . c o m
                public Rectangle call() throws Exception {
                    TreeTableView<?> tree = getTree();
                    // Update the layout coordinates otherwise
                    // we would get old position values
                    tree.layout();
                    Rectangle visibleTreeBounds = new Rectangle(0, 0, Rounding.round(tree.getWidth()),
                            Rounding.round(tree.getHeight()));
                    return rowBounds.intersection(visibleTreeBounds);
                }
            });
    return result;
}