public synchronized void addAll ( Collection < Layer > layers , boolean redraw ) { checkIsNull ( layers ) ; for ( Layer layer : layers ) { layer . setDisplayModel ( this . displayModel ) ; } this . layersList . addAll ( layers ) ; for ( Layer layer : layers ) { layer . assign ( this . redrawer ) ; } if ( redraw ) { this . redrawer . redrawLayers ( ) ; } }
Adds multiple new layers on top .