@ Override public final Scene moveToTop ( final Layer layer ) { if ( ( null != layer ) && ( LienzoCore . IS_CANVAS_SUPPORTED ) ) { final int size = getElement ( ) . getChildCount ( ) ; if ( size < 2 ) { return this ; } final DivElement element = layer . getElement ( ) ; getElement ( ) . removeChild ( element ) ; getElement ( ) . appendChild ( element ) ; final NFastArrayList < Layer > layers = getChildNodes ( ) ; if ( null != layers ) { layers . moveToTop ( layer ) ; } } return this ; }
Moves the layer to the top of the layers stack in this scene .