The Meta-Environment API

nl.cwi.sen1.visplugin.graphplugin
Class GraphDisplayBuilder

java.lang.Object
  extended by 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

Field Summary
private  DotNodeLayout dotLayout
           
private static prefuse.data.Schema LABEL_SCHEMA
           
 
Constructor Summary
GraphDisplayBuilder()
           
 
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
 

Field Detail

dotLayout

private DotNodeLayout dotLayout

LABEL_SCHEMA

private static final prefuse.data.Schema LABEL_SCHEMA
Constructor Detail

GraphDisplayBuilder

public GraphDisplayBuilder()
Method Detail

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

The Meta-Environment API