public Table generateNodesTable()
{
//==== Get the number of papers
int nodeCount = Array.getLength(paperList);
//==== Instantiate the node table schema
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());
node_table.setString(i, "journal", paperList[i].getJournal());
node_table.setString(i, "citCount", paperList[i].getCitCount());
node_table.setString(i, "abstractURL", paperList[i].getAbstractURL());
node_table.setString(i, "refType", paperList[i].getRefType());
node_table.setString(i, "nodeLabel", paperList[i].getNodeLabel());
node_table.setString(i, "hoverLabel", paperList[i].getHoverLabel());
node_table.setString(i, "visible", "true");
node_table.setString(i, "comment", "");
node_table.setString(i, "commentStatus", "f");
node_table.setDouble(i, "xCoordinate", 0);
node_table.setDouble(i, "yCoordinate", 0);
//=== Since this is a first search, the first paper will always be a focus node
if(i==0)
{
focus_indices.addElement(i);
node_table.setString(i, "refHidden", "false");
node_table.setString(i, "citHidden", "false");
node_table.setString(i, "refExpanded", "true");
node_table.setString(i, "citExpanded", "true");
}
}
return node_table;