//====================================================================
//==== color actions
//==== palette for nodes, node color action, and text color action
int[] nodePalette = new int[]{ColorLib.rgb(153,255,153), ColorLib.rgb(255,255,153), ColorLib.rgb(153,153,255)};
ItemAction nodeColor = new NodeColorAction(treeNodes, nodePalette);
ItemAction textColor = new TextColorAction(treeNodes);
m_vis.putAction("textColor", textColor);
m_vis.putAction("nodeColor", nodeColor);
//==== border color for blank borders, and citation count highlighting
ItemAction borderHighlightColor = new ColorAction("citHighlight", VisualItem.STROKECOLOR, ColorLib.rgb(255,0,0));
m_vis.putAction("borderHighlightColor", borderHighlightColor);
ItemAction borderColor = new ColorAction(treeNodes, VisualItem.STROKECOLOR, ColorLib.rgba(0,0,0,0));
m_vis.putAction("borderColor", borderColor);
//==== spreads the nodes out a little bit
NodeSpreadAction spreadNodes = new NodeSpreadAction(treeNodes);
m_vis.putAction("spreadNodes", spreadNodes);