net.sourceforge.fluxion.runcible.graph.view.factory
Class DotGraphViewFactory

java.lang.Object
  extended by net.sourceforge.fluxion.runcible.graph.view.factory.DotGraphViewFactory
All Implemented Interfaces:
GraphViewFactory, GraphVisitor

public class DotGraphViewFactory
extends java.lang.Object
implements GraphViewFactory

A type of GraphViewFactory that generates Graphs in a format suitable for use in dot. For more on the dot syntax, see http://www.graphviz.org/doc/info/lang.html. When getGraphView() is called, a DotGraphView object will be returned which can then, in turn, be used to generate a graph image using the GraphViz suite of tools.

Version:
0.1
Author:
Tony Burdett
See Also:
DotGraphView

Constructor Summary
DotGraphViewFactory()
           
 
Method Summary
 ColorScheme getColorScheme()
          Get the ColorScheme being used for the produced Graph.
 GraphView getGraphView()
          Return the GraphView produced by this Factory
 java.util.Set<Node> getHiddenNodes()
           
 void setColorScheme(ColorScheme colorScheme)
          Sets the ColorScheme to use for the produced Graph
 void setHiddenNodes(java.util.Set<Node> hiddenNodes)
           
 void visit(Graph graph)
          Visits the supplied Graph.
protected  void walkGraph(Graph graph, NodeView parent, Edge edge, java.util.Set<Node> alreadyDone)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DotGraphViewFactory

public DotGraphViewFactory()
Method Detail

getGraphView

public GraphView getGraphView()
Return the GraphView produced by this Factory

Specified by:
getGraphView in interface GraphViewFactory
Returns:
the generated graphview

getColorScheme

public ColorScheme getColorScheme()
Get the ColorScheme being used for the produced Graph.

Returns:
the ColorScheme being used

setColorScheme

public void setColorScheme(ColorScheme colorScheme)
Sets the ColorScheme to use for the produced Graph

Parameters:
colorScheme - the ColorScheme to use

getHiddenNodes

public java.util.Set<Node> getHiddenNodes()

setHiddenNodes

public void setHiddenNodes(java.util.Set<Node> hiddenNodes)

visit

public void visit(Graph graph)
Description copied from interface: GraphVisitor
Visits the supplied Graph.

Specified by:
visit in interface GraphVisitor
Parameters:
graph - the Graph to visit

walkGraph

protected void walkGraph(Graph graph,
                         NodeView parent,
                         Edge edge,
                         java.util.Set<Node> alreadyDone)


Copyright © 2010. All Rights Reserved.