Liz::Survey::Graph::Bar - module for Bar objects of the Survey
use Liz::Survey; $survey = new Liz::Survey;
$graph = $question->Graph( $graphID ); $graph = $question->Graph;
$bar = $graph->Bar( $textID ); $bar->update;
Provide object oriented access to bars of graphs in a Survey. Usually not accessed directly, but rather through the Liz::Survey object and its Graph method.
Create a new Bar object from a Graph object.
1 Liz::Survey::Graph object 2 textID of the choice with which to create Bar
1 instantiated object
It is not intended to call this method directly, but rather indirectly through the Liz::Survey module.
$survey = new Liz::Survey; $question = $survey->Question; $question = $survey->Question( $questionID );
$bar = $graph->Bar( $textID );
Update a Graph object in the Liz::Survey database.
1 textID with which Bar was updated
$textID = $graph->update;
Delete a Liz::Survey::Graph object from the database.
1 flag: whether action was successful
$question->delete;
The following methods return objects.
Return the Picture object associated with this Bar. If called when there is no Picture associated with the bar already, a new Picture object will be created automatically and associated with the Bar.
1 current/new Picture object
$picture = $bar->Picture;
The following methods allow you to inspect and/or change certain fields of the Liz::Survey::Graph object.
Set the colour of the Legenda of the Bar object.
1 new colour's alpha string indicating colour (e.g. 'FFFFF') or amount of Red 2 new colour's amount of Green 3 new colour's amount of Blue
1 current/prevous colour's alpha string or amount of Red 2 amount of Green 3 amount of Blue
$bar->Color( 'FF00FF' ); $bar->Color( 255,0,255 );
($color) = $bar->Color; ($red,$green,$blue) = $bar->Color;
Return the graphID of this Bar in the Liz::Survey::Graph::Bar object.
1 current graphID
$graphID = $bar->GraphID;
Set or return the Height for the Bar in the Liz::Survey::Graph::Bar object.
1 new height (default: no change)
1 current/previous height
$bar->Height( $height ); $height = $bar->Height;
Return the ID of the Liz::Survey::Graph::Bar object.
1 current ID of the object (is in fact the textID)
$ID = $bar->ID;
Set or return the Legenda of the Liz::Survey::Graph::Bar object.
1 new legenda (default: no change)
1 current/previous legenda
$graph->Legenda( $legenda ); $legenda = $graph->Legenda;
Return the ID of the Picture object associated with this Bar. It is usually easier to call the Picture method instead.
1 ID of the Picture object
$pictureID = $bar->PictureID;
Set or return the alignment of the Bar in the Liz::Survey::Graph::Bar object.
The following values are recognized:
0 crop 1 shift
1 new sizing (default: no change)
1 current/previous sizing
$bar->Sizing( $sizing ); $sizing = $bar->Sizing;
Set or return the Width for the Bar in the Liz::Survey::Graph::Bar object.
1 new width (default: no change)
1 current/previous width
$bar->Width( $width ); $width = $bar->Width;
Elizabeth Mattijsen ( lizperl@INC.nl )
(C) 1999 International Network Consultants
First version of this true Perl module.