Package de.lmu.ifi.dbs.elki.visualization.style

Examples of de.lmu.ifi.dbs.elki.visualization.style.ClusterStylingPolicy


  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;
  }
View Full Code Here


  /**
   * Trigger a style change.
   */
  protected void setStylePolicy() {
    context.getStyleResult().setStylingPolicy(new ClusterStylingPolicy(clustering, context.getStyleLibrary()));
    context.getHierarchy().resultChanged(context.getStyleResult());
  }
View Full Code Here

TOP

Related Classes of de.lmu.ifi.dbs.elki.visualization.style.ClusterStylingPolicy

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.