Package edu.harvard.wcfia.yoshikoder.concordance

Examples of edu.harvard.wcfia.yoshikoder.concordance.DocumentConcordanceTableModel


  public void reactToDoubleClickedRow(){
    int rowIndex = getSelectedRowInModelCoordinates(); // recover from sorting
    if (rowIndex == -1)
      return;
   
    DocumentConcordanceTableModel dctm = (DocumentConcordanceTableModel)getModel();
    int[] span = dctm.getCharacterOffsetsForConcordanceRow(rowIndex);
    TokenStructuredDocument doc = dctm.getDocumentForConcordanceRow(rowIndex);
   
    System.err.println("Make character span [" + span[0] + ", " + span[1] + "] in document '" + doc.getTitle() + "' visible");
  }
View Full Code Here


    Pattern[] sozi = new Pattern[]{Pattern.compile("zu.*")};

    List<Pattern[]> pts = new ArrayList<Pattern[]>();
    pts.add(sozi);

    DocumentConcordanceTableModel tm = new DocumentConcordanceTableModel(lst, pts, 5);
    JTable tab = new DocumentConcordanceTable(tm);
    JFrame fr = new JFrame();
    fr.setContentPane(new JScrollPane(tab));
    fr.pack();
    fr.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
View Full Code Here

TOP

Related Classes of edu.harvard.wcfia.yoshikoder.concordance.DocumentConcordanceTableModel

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.