GraphViz::Diagram::ClassDiagram - Create class diagrams with graphviz.

GraphViz::Diagram::ClassDiagram builds on GraphViz::Graph.

VERSION

Version 0.01

SYNOPSIS

 use GraphViz::Diagram::ClassDiagram;

METHODS

new

my $class_diagram = GraphViz::Diagram::ClassDiagram->new('File.pdf');

Start drawing a class diagram.

title

$class_diagram -> title("Foo classes");

Start drawing a class diagram.

class

my $CFoo = $class_diagram -> class("CFoo");

Add a GraphViz::Diagram::ClassDiagram::Class to the class diagram

global_var

my $g_foo = $classes -> global_var('foo');

Add a GraphViz::Diagram::ClassDiagram::GlobalVar to the class diagram.j

$class_diagram->link($class_one     , $class_two);
$class_diagram->link($class_one     , $attribute_three);
$class_diagram->link($attribute_four, $class_five);

Connect classes, attributes and methodes one to another.

inheritance

my $class_base = $class_diagram->class("CBase");
my $class_derv = $class_diagram->class("CDerived");
# …
$class_diagram->inheritance($class_base, $class_derv);

It's probably better to use $class_derv->inherits_from($clas_base).

create $class_diagram -> create();

Writes the class diagram:

color_comment my $color_comment = GraphViz::Diagram::ClassDiagram::color_comment()

Static method. Returns the color for comments.

Compare with "ident_color" in GraphViz::Diagram::ClassDiagram::Attribute

Source code

The source code is on github.

1 POD Error

The following errors were encountered while parsing the POD:

Around line 218:

You forgot a '=back' before '=head2'