1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
|
#############################################################################
# An empty, borderless cell. Part of Graph::Easy.
#
#############################################################################
package Graph::Easy::Node::Empty;
use Graph::Easy::Node;
@ISA = qw/Graph::Easy::Node/;
$VERSION = '0.76';
use strict;
use warnings;
#############################################################################
sub _init
{
# generic init, override in subclasses
my ($self,$args) = @_;
$self->SUPER::_init($args);
$self->{class} = 'node.empty';
$self;
}
sub _correct_size
{
my $self = shift;
$self->{w} = 3;
$self->{h} = 3;
$self;
}
1;
__END__
=head1 NAME
Graph::Easy::Node::Empty - An empty, borderless cell in a node cluster
=head1 SYNOPSIS
my $cell = Graph::Easy::Node::Empty->new();
=head1 DESCRIPTION
A C<Graph::Easy::Node::Empty> represents a borderless, empty cell in
a node cluster. It is mainly used to have an object to render collapsed
borders in ASCII output.
You should not need to use this class directly.
=head1 SEE ALSO
L<Graph::Easy::Node>.
=head1 AUTHOR
Copyright (C) 2004 - 2007 by Tels L<http://bloodgate.com>.
See the LICENSE file for more details.
=cut
|