Package org.apache.uima.tools.cvd

Examples of org.apache.uima.tools.cvd.MultiAnnotViewerFrame


    this.main = frame;
  }

  public void actionPerformed(ActionEvent event) {
    String title = this.main.getIndexLabel() + " - " + this.main.getIndex().getType().getName();
    MultiAnnotViewerFrame f = new MultiAnnotViewerFrame(title);
    f.addWindowListener(new CloseAnnotationViewHandler(this.main));
    FSIterator it = this.main.getIndex().iterator();
    final String text = this.main.getCas().getDocumentText();
    System.out.println("Creating extents.");
    AnnotationExtent[] extents = MultiMarkup.createAnnotationMarkups(it, text.length(), this.main
        .getStyleMap());
    System.out.println("Initializing text frame.");
    f.init(text, extents, this.main.getDimension(MainFrame.annotViewSizePref));
    System.out.println("Done.");
  }
View Full Code Here

TOP

Related Classes of org.apache.uima.tools.cvd.MultiAnnotViewerFrame

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.