DBVIEW
org.dbview.utils.dot.DiGraph Class Reference
Collaboration diagram for org.dbview.utils.dot.DiGraph:

List of all members.

Public Member Functions

void setRankdir (String in_direction)
String getRankdir ()
void setNodesep (Float in_value)
void setRankset (Float in_value)
void setCompound (Boolean in_value)
void addSubGraph (SubGraph in_subgraph)
void addEdge (Edge in_edge)
void addNode (Node in_node)
String toString ()

Private Attributes

String __rankdir = "LR"
Float __nodesep = null
Float __ranksep = null
Boolean __compound = Boolean.FALSE
ArrayList< SubGraph__subgraphs = new ArrayList<SubGraph>()
ArrayList< Node__nodes = new ArrayList<Node>()
ArrayList< Edge__edges = new ArrayList<Edge>()

Detailed Description

This class represents a directed graph.

Author:
Denis Beurive

Definition at line 32 of file DiGraph.java.


Member Function Documentation

void org.dbview.utils.dot.DiGraph.addEdge ( Edge  in_edge)

Add an edge to the graph.

Parameters:
in_edgeEdge to add.

Definition at line 127 of file DiGraph.java.

void org.dbview.utils.dot.DiGraph.addNode ( Node  in_node)

Add a node to the graph.

Parameters:
in_nodeNode to add.

Definition at line 133 of file DiGraph.java.

void org.dbview.utils.dot.DiGraph.addSubGraph ( SubGraph  in_subgraph)

Add a sub graph to the graph.

Parameters:
in_subgraphSub graph to add.

Definition at line 121 of file DiGraph.java.

String org.dbview.utils.dot.DiGraph.getRankdir ( )

This method returns the graph's layout.

Returns:
The method returns the graph's layout. Values can be:
  • TB (Top to bottom)
  • LR (Left to right)
  • RL 'Right to left)

Definition at line 94 of file DiGraph.java.

void org.dbview.utils.dot.DiGraph.setCompound ( Boolean  in_value)

This method set the compound's flag.

Parameters:
in_valueTRUE or FALSE.
See also:
GraphViz documentation.

Definition at line 115 of file DiGraph.java.

void org.dbview.utils.dot.DiGraph.setNodesep ( Float  in_value)

This method sets the minimum distance between two nodes.

Parameters:
in_valueMinimum distance to set.
See also:
GraphViz documentation.

Definition at line 101 of file DiGraph.java.

void org.dbview.utils.dot.DiGraph.setRankdir ( String  in_direction)

Set the initial orientation of a record node.

Parameters:
in_directionThis string defines the direction. Values can be:
  • TB (Top to bottom)
  • LR (Left to right)
  • RL 'Right to left)

Definition at line 83 of file DiGraph.java.

void org.dbview.utils.dot.DiGraph.setRankset ( Float  in_value)

This method sets the minimum distance between two graph's ranks.

Parameters:
in_valueMinimum distance to set.
See also:
GraphViz documentation.

Definition at line 108 of file DiGraph.java.

String org.dbview.utils.dot.DiGraph.toString ( )

This method returns a string that represents the directed graph.

Returns:
The method returns a string that represents the directed graph.

Definition at line 139 of file DiGraph.java.


Member Data Documentation

Boolean org.dbview.utils.dot.DiGraph.__compound = Boolean.FALSE [private]

See GRAPHVIZ' documentation for "compound".

See also:
http://www.graphviz.org/doc/info/attrs.html

Definition at line 57 of file DiGraph.java.

Referenced by org.dbview.utils.dot.DiGraph.setCompound(), and org.dbview.utils.dot.DiGraph.toString().

ArrayList<Edge> org.dbview.utils.dot.DiGraph.__edges = new ArrayList<Edge>() [private]

The list of edges.

Definition at line 72 of file DiGraph.java.

Referenced by org.dbview.utils.dot.DiGraph.addEdge(), and org.dbview.utils.dot.DiGraph.toString().

ArrayList<Node> org.dbview.utils.dot.DiGraph.__nodes = new ArrayList<Node>() [private]

The list of nodes.

Definition at line 67 of file DiGraph.java.

Referenced by org.dbview.utils.dot.DiGraph.addNode(), and org.dbview.utils.dot.DiGraph.toString().

See GRAPHVIZ' documentation for "nodesep".

See also:
http://www.graphviz.org/doc/info/attrs.html

Definition at line 45 of file DiGraph.java.

Referenced by org.dbview.utils.dot.DiGraph.setNodesep(), and org.dbview.utils.dot.DiGraph.toString().

String org.dbview.utils.dot.DiGraph.__rankdir = "LR" [private]

The initial orientation of a record node depends on the rankdir attribute. If this attribute is TB (the default) or TB, corresponding to vertical layouts, the top-level fields in a record are displayed horizontally. If, however, this attribute is LR or RL, corresponding to horizontal layouts, the top-level fields are displayed vertically.

See GRAPHVIZ' documentation for "rankdir".

See also:
http://www.graphviz.org/doc/info/shapes.html

Definition at line 39 of file DiGraph.java.

Referenced by org.dbview.utils.dot.DiGraph.getRankdir(), org.dbview.utils.dot.DiGraph.setRankdir(), and org.dbview.utils.dot.DiGraph.toString().

See GRAPHVIZ' documentation for "ranksep".

See also:
http://www.graphviz.org/doc/info/attrs.html

Definition at line 51 of file DiGraph.java.

Referenced by org.dbview.utils.dot.DiGraph.setRankset(), and org.dbview.utils.dot.DiGraph.toString().

ArrayList<SubGraph> org.dbview.utils.dot.DiGraph.__subgraphs = new ArrayList<SubGraph>() [private]

The list of sub graphs.

Definition at line 62 of file DiGraph.java.

Referenced by org.dbview.utils.dot.DiGraph.addSubGraph(), and org.dbview.utils.dot.DiGraph.toString().


The documentation for this class was generated from the following file: