Graph::Easy::Node::Empty - An empty, borderless cell in a node cluster


Graph-Easy documentation Contained in the Graph-Easy distribution.

Index


Code Index:

NAME

Top

Graph::Easy::Node::Empty - An empty, borderless cell in a node cluster

SYNOPSIS

Top

	my $cell = Graph::Easy::Node::Empty->new();

DESCRIPTION

Top

A 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.

SEE ALSO

Top

Graph::Easy::Node.

AUTHOR

Top

Copyright (C) 2004 - 2007 by Tels http://bloodgate.com.

See the LICENSE file for more details.


Graph-Easy documentation Contained in the Graph-Easy distribution.

#############################################################################
# An empty, borderless cell. Part of Graph::Easy.
#
#############################################################################

package Graph::Easy::Node::Empty;

use Graph::Easy::Node;

@ISA = qw/Graph::Easy::Node/;
$VERSION = '0.06';

use strict;

#############################################################################

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__