1Graph::Easy::Group::CelUls(e3r)Contributed Perl DocumentGartaipohn::Easy::Group::Cell(3)
2
3
4

NAME

6       Graph::Easy::Group::Cell - A cell in a group
7

SYNOPSIS

9               use Graph::Easy;
10
11               my $ssl = Graph::Easy::Edge->new( );
12
13               $ssl->set_attributes(
14                       label => 'encrypted connection',
15                       style => '-->',
16                       color => 'red',
17               );
18
19               $graph = Graph::Easy->new();
20
21               $graph->add_edge('source', 'destination', $ssl);
22
23               print $graph->as_ascii();
24

DESCRIPTION

26       A "Graph::Easy::Group::Cell" represents a cell of a group.
27
28       Group cells can have a background and, if they are on the outside, a
29       border.
30
31       There should be no need to use this package directly.
32

METHODS

34   error()
35               $last_error = $group->error();
36
37               $group->error($error);                  # set new messags
38               $group->error('');                      # clear error
39
40       Returns the last error message, or '' for no error.
41
42   as_ascii()
43               my $ascii = $cell->as_ascii();
44
45       Returns the cell as a little ascii representation.
46
47   as_html()
48               my $html = $cell->as_html($tag,$id);
49
50       Returns the cell as HTML code.
51
52   label()
53               my $label = $cell->label();
54
55       Returns the name (also known as 'label') of the cell.
56
57   class()
58               my $class = $cell->class();
59
60       Returns the classname(s) of this cell, like:
61
62               group_cities gr gb
63
64       for a cell with a bottom (gb) and right (gr) border in the class
65       "cities".
66

EXPORT

68       None.
69

SEE ALSO

71       Graph::Easy.
72

AUTHOR

74       Copyright (C) 2004 - 2007 by Tels <http://bloodgate.com>.
75
76       See the LICENSE file for more details.
77
78
79
80perl v5.12.3                      2010-11-05       Graph::Easy::Group::Cell(3)
Impressum