czsem.netgraph.treesource.TreeIndexTreeSource Maven / Gradle / Ivy
package czsem.netgraph.treesource;
import gate.Annotation;
import gate.AnnotationSet;
import gate.Document;
import gate.Utils;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.Comparator;
import java.util.LinkedHashSet;
import java.util.List;
import czsem.gate.utils.GateAwareTreeIndexExtended;
import czsem.netgraph.GateAnnotTableModel;
import czsem.netgraph.batik.BatikTreeBuilder;
import static czsem.fs.GateAnnotationsNodeAttributesExtended.*;
public class TreeIndexTreeSource extends TreeSourceWithSelectionSupport implements Comparator {
private GateAwareTreeIndexExtended index = new GateAwareTreeIndexExtended(null);
private Document doc;
protected Integer rootNode = null;
protected final LinkedHashSet