private Visualization instantiateVisualization ( VisualizationTask task ) { try { Visualization v = task . getFactory ( ) . makeVisualization ( context , task , this , width , height , item . proj ) ; if ( task . has ( RenderFlag . NO_EXPORT ) ) { v . getLayer ( ) . setAttribute ( NO_EXPORT_ATTRIBUTE , NO_EXPORT_ATTRIBUTE ) ; } return v ; } catch ( Exception e ) { if ( LOG . isDebugging ( ) ) { LOG . warning ( "Visualizer " + task . getFactory ( ) . getClass ( ) . getName ( ) + " failed." , e ) ; } else { LOG . warning ( "Visualizer " + task . getFactory ( ) . getClass ( ) . getName ( ) + " failed - enable debugging to see details: " + e . toString ( ) ) ; } } return null ; }
Instantiate a visualization .