/** * Used to create a new instance of the node. This routine is called by <code>cloneTree</code> to * duplicate the current node. * * @param forceDuplicate when set to <code>true</code>, causes the <code>duplicateOnCloneTree * </code> flag to be ignored. When <code>false</code>, the value of each node's <code> * duplicateOnCloneTree</code> variable determines whether NodeComponent data is duplicated or * copied. * @see Node#cloneTree * @see Node#cloneNode * @see Node#duplicateNode * @see NodeComponent#setDuplicateOnCloneTree */ public Node cloneNode(boolean forceDuplicate) { PointLight p = new PointLight(); p.duplicateNode(this, forceDuplicate); return p; }