Package de.lmu.ifi.dbs.elki.evaluation.clustering.pairsegments

Examples of de.lmu.ifi.dbs.elki.evaluation.clustering.pairsegments.Segment


  }

  private void redrawSelection() {
    logger.debug("Updating selection only.");
    for(Entry<Segment, List<Element>> entry : segmentToElements.entrySet()) {
      Segment segment = entry.getKey();
      // The selection marker is the extra element in the list
      Element extension = entry.getValue().get(segments.getClusterings());
      if(segment.isUnpaired()) {
        if(policy.isSelected(segment)) {
          SVGUtil.addCSSClass(extension, SEG_UNPAIRED_SELECTED_CLASS);
        }
        else {
          // Remove highlight
View Full Code Here


        // STANDARD CLUSTER SEGMENT
        // highlight all ring segments in this clustering and this cluster
        //
        // highlight all corresponding ring Segments
        for(Entry<Segment, List<Element>> entry : segmentToElements.entrySet()) {
          Segment other = entry.getKey();
          // Same cluster in same clustering?
          if(other.get(ringid) != segment.get(ringid)) {
            continue;
          }
          Element ringSegment = entry.getValue().get(ringid);
          SVGUtil.addCSSClass(ringSegment, CLR_HOVER_CLASS);
        }
View Full Code Here

  @Override
  public int getStyleForDBID(DBID id) {
    Iterator<Segment> s = selectedSegments.iterator();
    for(int i = 0; s.hasNext(); i++) {
      Segment seg = s.next();
      DBIDs ids = seg.getDBIDs();
      if(ids != null && ids.contains(id)) {
        return i;
      }
    }
    return -2;
View Full Code Here

        deselectSegment(other);
      }
    }
    else {
      // check if deselected object Segment has a unpaired segment highlighted
      Segment unpaired = indirectSelections.get(segment);
      if(unpaired != null) {
        // remove highlight
        deselectSegment(unpaired);
      }
      if(selectedSegments.remove(segment)) {
View Full Code Here

TOP

Related Classes of de.lmu.ifi.dbs.elki.evaluation.clustering.pairsegments.Segment

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.