Packageindex Classtrees Modulegroups Elementlist Report XML Files

pc4p

pc4p_box

pc4p_object
  |
  +-- pc4p_box

private class pc4p_box extends pc4p_object

Provides functionality for drawing boxes around other objects

AuthorsAlexander Wirtz <alex@pc4p.net>
Version$Id: pc4p_box.html,v 1.16.2.1 2002/08/12 22:47:04 eru Exp $

 

Methods inherited from pc4p_object

pc4p_object, pc4p_calc_rot, pc4p_calc_rot_dim, pc4p_set_rot, pc4p_set_margin, pc4p_set_width, pc4p_set_alignment, pc4p_set_textleading, pc4p_set_linecolor, pc4p_set_fillcolor, pc4p_make_objcopy, pc4p_draw_children

Public Method Summary

void pc4p_box(object pc4p_page &$parent)
pc4p_box constructor
void pc4p_set_boxborder([ mixed $border, mixed $style, mixed $width ])
Set the style and width of the borders surrounding the box
void pc4p_set_boxbordercolor([ mixed $border, mixed $color ])
Set the colors of the borders surrounding the box

Private Method Summary

void pc4p_draw()
Draw-function for the boxWarning: documentation is missing.
integer pc4p_calc_offset(object pc4p_page &$parent)
Calls the calc_offset function in all children, sets its own offsetsWarning: documentation is missing.

Fields inherited from pc4p_object

$children, $pdfp, $pdfobj, $pagewidth, $pageheight, $width, $height, $act_x, $act_y, $draw_x, $draw_y, $alignment, $phi, $leading, $linecolor, $fillcolor

Public Field Summary

array $margin
Margins for the box
array $borders
Borders of the box

Public Method Details

pc4p_box

public void pc4p_box(object pc4p_page &$parent)

  Calls the constructor of pc4p_object

Parameter
object pc4p_page &$parent
Parent of the box
Returns void

See Also pc4p_init::&pc4p_create_object(), pc4p_object::pc4p_object(), pc4p_object::pc4p_set_rot()
Author(s) Alexander Wirtz <alex@pc4p.net>

pc4p_set_boxborder

public void pc4p_set_boxborder([ mixed $border, mixed $style, mixed $width ])

  With this function you can set the borders of the box for each side individually, or completely

Parameter
mixed $border = >>"all"<<
"top", "bottom", "left", "right" or an array of these or "all"
mixed $style = >>"single"<<
"none", "single" or "double" or an array of these
mixed $width = >>1<<
The width of the line or an array of widths
Returns void

See Also pc4p_line::pc4p_set_linestyle(), pc4p_line::pc4p_set_linewidth()
Author(s) Alexander Wirtz <alex@pc4p.net>

pc4p_set_boxbordercolor

public void pc4p_set_boxbordercolor([ mixed $border, mixed $color ])

  With this function you can set the colors of the borders of the box for each side individually, or completely

Parameter
mixed $border = >>"all"<<
"top", "bottom", "left", "right" or an array of these or "all"
mixed $color = >>""<<
You can use one of the 16 standardcolors from HTML or the hex-notation (#rrggbb) or an array of these
Returns void

See Also pc4p_line::pc4p_set_linecolor()
Author(s) Alexander Wirtz <alex@pc4p.net>

Private Method Details

pc4p_draw

private void pc4p_draw()

  Calls the pc4p_draw in its children, then draws the box

Warning: documentation is missing.

Returns void

See Also pc4p_line::pc4p_draw(), pc4p_box::pc4p_draw_children()
Author(s) Alexander Wirtz <alex@pc4p.net>

pc4p_calc_offset

private integer pc4p_calc_offset(object pc4p_page &$parent)

  Checks for a already set width, watches for alignments

Warning: documentation is missing.

Parameter
object pc4p_page &$parent
Parent of the object
Returns integer $this

->height Calculated height of the object

See Also pc4p_line::pc4p_get_linewidth(), pc4p_line::pc4p_calc_linejoin(), pc4p_line::pc4p_calc_offset(), pc4p_line::pc4p_set_width()
Author(s) Alexander Wirtz <alex@pc4p.net>

Public Field Details

$margin

public array $margin

>>array( "top" => 5, "bottom" => 5, "left" => 5, "right" => 5 )<<


$borders

public array $borders

>>array( "top" => NULL, "bottom" => NULL, "left" => NULL, "right" => NULL )<<



Packageindex Classtrees Modulegroups Elementlist Report XML Files
Generated on Tue, 13 Aug 2002 00:43:10 +0200 by PHPDoc v1.5 www.phpdoc.de