nl.cwi.sen1.visplugin.graphplugin
Class GraphDisplayBuilder
java.lang.Object
nl.cwi.sen1.visplugin.graphplugin.GraphDisplayBuilder
public class GraphDisplayBuilder
- extends java.lang.Object
Builder to create a display (formatting, colors and layout) for a graph.
- Author:
- A. Belgraver, Anton Gerdessen (reviewer), Jurgen Vinju
Method Summary |
private prefuse.action.ActionList |
createColorActions()
Set the color for the nodes, if no color is set they will be black and white. |
private prefuse.Display |
createDisplay(prefuse.Visualization vis)
Create and configure the visualization display. |
prefuse.Display |
createDisplayFromGraph(prefuse.data.Graph graph)
Main method for the graph creation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
dotLayout
private DotNodeLayout dotLayout
LABEL_SCHEMA
private static final prefuse.data.Schema LABEL_SCHEMA
GraphDisplayBuilder
public GraphDisplayBuilder()
createDisplayFromGraph
public prefuse.Display createDisplayFromGraph(prefuse.data.Graph graph)
- Main method for the graph creation.
- Parameters:
graph
- the graph to be displayed.
- Returns:
createColorActions
private prefuse.action.ActionList createColorActions()
- Set the color for the nodes, if no color is set they will be black and white.
- Returns:
- ActionList holding needed color actions.
createDisplay
private prefuse.Display createDisplay(prefuse.Visualization vis)
- Create and configure the visualization display.
- Parameters:
vis
- The visualisation to display
- Returns:
- A configured display object