Package javafx.scene

Examples of javafx.scene.Parent.localToScene()


   *            Node to which the tooltip need to be shown.
   */
  private void showToolTip(StackPane node) {
    final Parent parent = node.getParent();
    final Bounds childBounds = node.getBoundsInParent();
    final Bounds parentBounds = parent.localToScene(parent.getBoundsInLocal());
    double layoutX = childBounds.getMinX() + parentBounds.getMinX() + parent.getScene().getX() + parent.getScene().getWindow().getX();
    double layoutY = childBounds.getMaxY() + parentBounds.getMinY() + parent.getScene().getY() + parent.getScene().getWindow().getY();
    getPopup().show(node, layoutX, layoutY + 5);
  }

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.