Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 29.545.393 Times

Data::Region 1.0

  Date Added: May 04, 2010  |  Visits: 637

Data::Region

Report Broken Link
Printer Friendly Version


Product Homepage
Download (70 downloads)



Data::Region Perl module can define hierarchical areas with behaviors. SYNOPSIS use Data::Region; $r = Data::Region->new( 8.5, 11, { data => PageObj->new() } ); $r->data( PageObj->new() ); foreach my $c ( $r->subdivide(2.5,3) ) { $a = $c->area(0.25,0.25, 2.25,2.75); $a2 = $c->area(0.25,0.25, -0.25,-0.25); # as offset from lower right ($t,$m,$b) = $a->split_vertical(2,5,1); # sequential heights ($t,$m,$b) = $a->split_vertical_abs(0,2,7); # absolute offsets ($l,$r) = $a->split_horizontal(2); # $l gets width of 2, $r gets the rest my($x1,$y1,$x2,$y2) = $a->coords(); my $data = $a->data(); # data inherits from parent, if not set $a->action( sub { $data->setfont("Times-Bold", 10); $data->text($x1,$y1, "Some Text"); $data->line( $_[0]->coords() ); # the non-closure way } ); } $r->render(); # heirarchically perform all the actions # Get some info about a region: ($w,$h) = ( $a->width(), $a->height() ); ($x1,$y1, $x2,$y2) = $a->coords(); ($x1,$y1) = $a->top_left(); ($x2,$y1) = $a->top_right(); ($x1,$y2) = $a->bottom_left(); ($x2,$y2) = $a->bottom_right(); Data::Region allows you to easily define a set of nested (2-dimensional) areas, defined by related coordinates, and to associate actions with them. The actions can then be performed hierarchically from any root of the tree. Data::Region was written to provide an easy way to do simple page layout, but has, perhaps, more general uses..

Requirements: No special requirements
Platforms: Linux
Keyword: A- Areas Data Dataregion Define Libraries Perl Module Programming Region Perl
Users rating: 0/10

License: Freeware Size: 8.19 KB
USER REVIEWS
More Reviews or Write Review


DATA::REGION RELATED
Libraries  -  FreezeThaw 0.43
FreezeThaw is a Perl module for converting Perl structures to strings and back. SYNOPSIS use FreezeThaw qw(freeze thaw cmpStr safeFreeze cmpStrHard); $string = freeze $data1, $data2, $data3; ... ($olddata1, $olddata2, $olddata3) = thaw...
10.24 KB  
Libraries  -  Doc::Perlish 0.14
Doc::Perlish is a Perl module that contains Perl Documentation Tools. SYNOPSIS my $doc = Doc::Perlish->new( type => "POD", input => "source.pod" ); # simple conversions; my $html = $doc->to_html; # DOM-style interface; see...
56.32 KB  
Libraries  -  Code::Perl 0.03
Code::Perl is a Perl module to produce Perl code from a tree. SYNOPSIS use Code::Perl::Expr qw( :easy ); my $c = derefh(scal(hash), calls(getkey)); print $c->perl; # ($hash)->{getkey()} Code::Perl allows you to build chunks of Perl code...
17.41 KB  
Libraries  -  SQL::Interpolate 0.33
SQL::Interpolate is a Perl module to interpolate Perl variables into SQL statements. SYNOPSIS use SQL::Interpolate qw(:all); # Some sample data to interpolate: my $s = blue; my @v = (5, 6); # Variable references are transformed into bind...
57.34 KB  
Libraries  -  Genezzo::Contrib::Clustered::ModPerlWrap 0.33
Genezzo::Contrib::Clustered::ModPerlWrap is a Perl module with Mod Perl wrappers for Genezzo. SYNOPSIS StartPage(); Connect("/dev/raw"); ProcessStmt("insert into t1 values (10, test10)"); ProcessStmt("insert into t1 values (11, test11)");...
39.94 KB  
Libraries  -  XML::SAX2Perl 0.08
XML::SAX2Perl is a Perl module to translate Perl SAX methods to Java/CORBA style methods. SYNOPSIS use XML::Perl2SAX; $perl2sax = XML::Perl2SAX(handler => $java_style_handler); XML::Perl2SAX is a SAX filter that translates Perl style SAX...
64.51 KB  
Libraries  -  Language::Functional 0.03
Language::Functional is a Perl module which makes Perl slightly more functional. SYNOPSIS use Language::Functional :all; print The first ten primes are: , show(take(10, filter { prime(shift) } integers)), "n"; Perl already contains some...
16.38 KB  
Libraries  -  NetAddr::IP::UtilPP 4.004
NetAddr::IP::UtilPP is a Perl module with pure Perl functions for NetAddr::IP::Util. SYNOPSIS use NetAddr::IP::UtilPP qw( hasbits isIPv4 shiftleft addconst add128 sub128 notcontiguous ipv4to6 mask4to6 ipanyto6 maskanyto6 ipv6to4...
97.28 KB  
Libraries  -  Getopt::EvaP 2.3.5
Getopt::EvaP is a Perl module to evaluate Perl command line parameters. SYNOPSIS use vars qw/@PDT @MM %OPT/; use Getopt::EvaP; EvaP @PDT, @MM, %OPT; EXPORT use Getopt::EvaP exports the subs EvaP and EvaP_PAC into your name space. @PDT...
52.22 KB  
Libraries  -  Data::PropertyList 1998.1217
Data::PropertyList is a Perl module that can convert arbitrary objects to/from strings. SYNOPSIS use Data::PropertyList qw(astext fromtext); $hash_ref = { items => [ 7 .. 11 ], key => value }; $string = astext($hash_ref); # ... $hash_ref...
8.19 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB  
Libraries  -  App::SimpleScan::Substitution::Line 2.02
App::SimpleScan::Substitution::Line is a line with optional fixed variable values. SYNOPSIS my $line = App::SimpleScan::Substitution::Line->new(" this "); # Use only this value when substituting " ". $line->fix(substituite =>...
54.27 KB