Tuesday, 24 September 2013

JAVAFX: Find Node Starting and Ending point

It is a common problem which is facing by many people so following is solution for that

// For Starting Point of node

Point2D nodeMinPos = node.localToScene(node.getLayoutBounds().getMinX(), node.getLayoutBounds().getMinY());

// For ending Point of node

Point2D nodeMaxPos = node.localToScene(node.getLayoutBounds().getMaxX(), node.getLayoutBounds().getMaxY());
Post a Comment