@ Override public Layer getLayer ( ) { final Node < ? > parent = getParent ( ) ; // change, no iteration, no testing, no casting, recurses upwards to a Layer, and Layer returns itself, CYCLES!!! if ( null != parent ) { return parent . getLayer ( ) ; } return null ; }
Returns the Layer that this Node is on .