question: protected void paintLayers ( Graphics g ) { synchronized ( getTreeLock ( ) ) { int i = getComponentCount ( ) - 1 ; if ( i < 0 ) { return ; } for ( ; i >= 0 ; i -- ) { Component comp = getComponent ( i ) ; final boolean isLayer = comp instanceof Layer ; if ( isLayer && comp . isVisible ( ) ) { comp . paint ( g ) ; } } } }
target:  A method that grabs the component list of the MapBean, and renders just the layers from back to front. No clipping is set, other than what is set on the Graphics object.