Question
how to check if a node is a graphicNode
Hi sorry for my noob question, i need to check if a node is a shape aka graphicNode.. graphic node such as rectangle, ellipse, polygon etc.
I can program it this way..
if (node instanceof Ellipse && node instanceof rectangle && .. )
but wondering if theres something like if (node.isGraphicNode()) or if (node.constructor.superclass) etc.
any help would be great. thank you
