1Graph::Easy::Edge::CellU(s3e)r Contributed Perl DocumentaGtriaopnh::Easy::Edge::Cell(3)
2
3
4

NAME

6       Graph::Easy::Edge::Cell - A cell in an edge in Graph::Easy
7

SYNOPSIS

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

DESCRIPTION

26       A "Graph::Easy::Edge::Cell" represents an edge between two (or more)
27       nodes in a simple graph.
28
29       Each edge has a direction (from source to destination, or back and
30       forth), plus a style (line width and style), colors etc. It can also
31       have a name, e.g. a text label associated with it.
32
33       There should be no need to use this package directly.
34

METHODS

36   error()
37               $last_error = $edge->error();
38
39               $cvt->error($error);                    # set new messages
40               $cvt->error('');                        # clear error
41
42       Returns the last error message, or '' for no error.
43
44   as_ascii()
45               my $ascii = $path->as_ascii();
46
47       Returns the path-cell as a little ascii representation.
48
49   as_html()
50               my $html = $path->as_html($tag,$id);
51
52       eturns the path-cell as HTML code.
53
54   label()
55               my $label = $path->label();
56
57       Returns the name (also known as 'label') of the path-cell.
58
59   style()
60               my $style = $edge->style();
61
62       Returns the style of the edge.
63

EXPORT

65       None by default. Can export the following on request:
66
67         EDGE_START_E
68         EDGE_START_W
69         EDGE_START_N
70         EDGE_START_S
71
72         EDGE_END_E
73         EDGE_END_W
74         EDGE_END_N
75         EDGE_END_S
76
77         EDGE_SHORT_E
78         EDGE_SHORT_W
79         EDGE_SHORT_N
80         EDGE_SHORT_S
81
82         EDGE_SHORT_BD_EW
83         EDGE_SHORT_BD_NS
84
85         EDGE_SHORT_UN_EW
86         EDGE_SHORT_UN_NS
87
88         EDGE_HOR
89         EDGE_VER
90         EDGE_CROSS
91
92         EDGE_N_E
93         EDGE_N_W
94         EDGE_S_E
95         EDGE_S_W
96
97         EDGE_S_E_W
98         EDGE_N_E_W
99         EDGE_E_N_S
100         EDGE_W_N_S
101
102         EDGE_LOOP_NORTH
103         EDGE_LOOP_SOUTH
104         EDGE_LOOP_EAST
105         EDGE_LOOP_WEST
106
107         EDGE_N_W_S
108         EDGE_S_W_N
109         EDGE_E_S_W
110         EDGE_W_S_E
111
112         EDGE_TYPE_MASK
113         EDGE_FLAG_MASK
114         EDGE_ARROW_MASK
115
116         EDGE_START_MASK
117         EDGE_END_MASK
118         EDGE_MISC_MASK
119
120         ARROW_RIGHT
121         ARROW_LEFT
122         ARROW_UP
123         ARROW_DOWN
124

SEE ALSO

126       Graph::Easy.
127

AUTHOR

129       Copyright (C) 2004 - 2007 by Tels <http://bloodgate.com>.
130
131       See the LICENSE file for more details.
132
133
134
135perl v5.28.1                      2016-06-06        Graph::Easy::Edge::Cell(3)
Impressum