public StyleResult getStyleResult() {
if(styleresult == null) {
styleresult = new StyleResult();
List<Clustering<? extends Model>> clusterings = ResultUtil.getClusteringResults(result);
if(clusterings.size() > 0) {
styleresult.setStylingPolicy(new ClusterStylingPolicy(clusterings.get(0), stylelib));
result.getHierarchy().add(result, styleresult);
return styleresult;
}
Clustering<Model> c = generateDefaultClustering();
styleresult.setStylingPolicy(new ClusterStylingPolicy(c, stylelib));
result.getHierarchy().add(result, styleresult);
return styleresult;
}
return styleresult;
}