public static void setVisible ( VisualizerContext context , VisualizationTask task , boolean visibility ) { // Hide other tools if ( visibility && task . isTool ( ) ) { Hierarchy < Object > vistree = context . getVisHierarchy ( ) ; for ( It < VisualizationTask > iter2 = vistree . iterAll ( ) . filter ( VisualizationTask . class ) ; iter2 . valid ( ) ; iter2 . advance ( ) ) { VisualizationTask other = iter2 . get ( ) ; if ( other != task && other . isTool ( ) && other . isVisible ( ) ) { context . visChanged ( other . visibility ( false ) ) ; } } } context . visChanged ( task . visibility ( visibility ) ) ; }
Utility function to change Visualizer visibility .