Search in sources :

Example 1 with ResolverProviderImpl

use of annis.libgui.ResolverProviderImpl in project ANNIS by korpling.

the class ResultViewPanel method createPanels.

private List<SingleResultPanel> createPanels(SaltProject p, int localMatchIndex, long globalOffset) {
    List<SingleResultPanel> result = new LinkedList<>();
    int i = 0;
    for (SCorpusGraph corpusGraph : p.getCorpusGraphs()) {
        SDocument doc = corpusGraph.getDocuments().get(0);
        Match m = new Match();
        if (allMatches != null && localMatchIndex >= 0 && localMatchIndex < allMatches.size()) {
            m = allMatches.get(localMatchIndex);
        }
        SingleResultPanel panel = new SingleResultPanel(doc, m, i + globalOffset, new ResolverProviderImpl(cacheResolver), ps, sui, getVisibleTokenAnnos(), segmentationName, controller, instanceConfig, initialQuery);
        i++;
        panel.setWidth("100%");
        panel.setHeight("-1px");
        result.add(panel);
    }
    return result;
}
Also used : ResolverProviderImpl(annis.libgui.ResolverProviderImpl) SDocument(org.corpus_tools.salt.common.SDocument) LinkedList(java.util.LinkedList) SCorpusGraph(org.corpus_tools.salt.common.SCorpusGraph) Match(annis.service.objects.Match)

Aggregations

ResolverProviderImpl (annis.libgui.ResolverProviderImpl)1 Match (annis.service.objects.Match)1 LinkedList (java.util.LinkedList)1 SCorpusGraph (org.corpus_tools.salt.common.SCorpusGraph)1 SDocument (org.corpus_tools.salt.common.SDocument)1