This question is an extension of the below question:
How to implement collision detection on nodes which are in StackPane (in JavaFX)?.
After implementing the answer given in the above question it seems bound in local and bound in parent are same in AnchorPane but they are different in StackPane.
Please let me know the actual behaviour of the bounds of a node with respect to AnchorPane and StackPane.