@ SuppressWarnings ( "unchecked" ) public static void setDefaultHandlerVisualizer ( ) { defaultHandlers = new ArrayList <> ( 1 ) ; Class < ? extends ResultHandler > clz ; try { clz = ( Class < ? extends ResultHandler > ) Thread . currentThread ( ) . getContextClassLoader ( ) . loadClass ( // "de.lmu.ifi.dbs.elki.result.AutomaticVisualization" ) ; } catch ( ClassNotFoundException e ) { clz = ResultWriter . class ; } defaultHandlers . add ( clz ) ; }
Set the default handler to the Batik addon visualizer if available .