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());
No comments:
Post a Comment