Package prefuse.data

Examples of prefuse.data.Table.addRow()


    /*
     * Check the good, normal case
     */
   
    Table table2 = TableUtilities.copyTable(this.table);
    int row = table2.addRow();
   
    TableUtilities.copyTableRow(row, 0, table2, this.table);
   
    for (int i = 0; i < table2.getColumnCount(); i++) {     
      assertTrue(table2.get(0, i).equals(table2.get(row, i)));
View Full Code Here


     */
    table2 = new Table();
    table2.addColumn("String", String.class);
    table2.addColumn("int", int.class);
   
    row = table2.addRow();
   
    try{
      TableUtilities.copyTableRow(row, 0, table2, this.table);
      fail();
    }catch(IllegalArgumentException e) {
View Full Code Here

        Table node_table = this.nodeSchema.instantiate();
        //==== Add each paper to a row in the node table
        for (int i=0; i<nodeCount; i++)
        {           
            //=== Set all the rows of the table with the paper's information
            node_table.addRow();
            node_table.setInt(i, "DEFAULT_NODE_KEY", i);
            node_table.setString(i, "bibcode", paperList[i].getBibcode());
            node_table.setString(i, "title", paperList[i].getTitle());
            node_table.setString(i, "authorList", paperList[i].getAuthorList());
            node_table.setString(i, "date", paperList[i].getDate());
View Full Code Here

                //==== Loop through all the reference links, find their DEFAULT_NODE_KEY, add a row for the edge
                for (int z=0; z<num_ref_links; z++)
                {
                  if (paperList[y].getBibcode().equals(ref_links[z]))
                  {
                    edge_table.addRow();
                    edge_table.setInt(rowCount, "source", focus_index);
                    edge_table.setInt(rowCount, "target", y);
                    //edge_table.setString(rowCount, "edgeType", "ref");
                    rowCount++;
                  }
View Full Code Here

                //==== Loop through all the citation links, find their DEFAULT_NODE_KEY, add a row for the edge
                for (int x=0; x<num_cit_links; x++)
                {
                  if (paperList[y].getBibcode().equals(cit_links[x]))
                  {
                    edge_table.addRow();
                    edge_table.setInt(rowCount, "source", y);
                    edge_table.setInt(rowCount, "target", focus_index);
                    //edge_table.setString(rowCount, "edgeType", "cit");
                    rowCount++;
                  }
View Full Code Here

        Table node_table = nodeSchema.instantiate();
       
        for (int i=0; i<nodeCount; i++)
        {                                  
           //==== Generate the table row
            node_table.addRow();
            node_table.setInt(i, "DEFAULT_NODE_KEY", paperList[i].getDefaultNodeKey());
            node_table.setString(i, "bibcode", paperList[i].getBibcode());
            node_table.setString(i, "title", paperList[i].getTitle());
            node_table.setString(i, "authorList", paperList[i].getAuthorList());
            node_table.setString(i, "date", paperList[i].getDate());
View Full Code Here

        for (int i=0; i<Array.getLength(dupeNodes); i++)
        {
            //=== Add a row for the 'ref' type links
            if(dupeNodes[i].getRefType().equals("REFERENCES"))
            {
             edge_table.addRow();
             edge_table.setInt(rowCount, "source", newFocus);
             edge_table.setInt(rowCount, "target", dupeNodes[i].getDefaultNodeKey());
             //edge_table.setString(rowCount, "edgeType", "ref");
             rowCount++;
            }
View Full Code Here

             rowCount++;
            }
            //=== Add a row for the 'cit' type links
            else if (dupeNodes[i].getRefType().equals("CITATIONS"))
            {
             edge_table.addRow();
             edge_table.setInt(rowCount, "source", dupeNodes[i].getDefaultNodeKey());
             edge_table.setInt(rowCount, "target", newFocus);
             //edge_table.setString(rowCount, "edgeType", "cit");
             rowCount++;               
            }
View Full Code Here

        {
            
             //=== Add a row for the 'ref' type links
             if(paperList[j].getRefType().equals("REFERENCES"))
             {
                edge_table.addRow();
                edge_table.setInt(rowCount, "source", newFocus);
                edge_table.setInt(rowCount, "target", this.paperList[j].getDefaultNodeKey());
                //edge_table.setString(rowCount, "edgeType", "ref");
                rowCount++;
             }            
View Full Code Here

                rowCount++;
             }            
             //=== Add a row for the 'cit' type links
             else if(paperList[j].getRefType().equals("CITATIONS"))
             {
                edge_table.addRow();
                edge_table.setInt(rowCount, "source", this.paperList[j].getDefaultNodeKey());
                edge_table.setInt(rowCount, "target", newFocus);
                //edge_table.setString(rowCount, "edgeType", "cit");
                rowCount++;
             }            
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.