protected void makeStyleResult ( StyleLibrary stylelib ) { final Database db = ResultUtil . findDatabase ( hier ) ; stylelibrary = stylelib ; List < Clustering < ? extends Model > > clusterings = Clustering . getClusteringResults ( db ) ; if ( ! clusterings . isEmpty ( ) ) { stylepolicy = new ClusterStylingPolicy ( clusterings . get ( 0 ) , stylelib ) ; } else { Clustering < Model > c = generateDefaultClustering ( ) ; stylepolicy = new ClusterStylingPolicy ( c , stylelib ) ; } }
Generate a new style result for the given style library .