wCMF
3.6
|
Public Member Functions | |
ElementImageOutputStrategy ($format, $file, $map, $lineType=LINETYPE_DIRECT, $scale=100, $aspect=0.5, $border=50, $usemap='') | |
writeHeader () | |
writeObject (&$obj) | |
writeFilledBorderedRect ($topleft, $bottomright, $bgcolor, $bordercolor) | |
![]() | |
ImageOutputStrategy ($format, $file, $map, $lineType=LINETYPE_DIRECT, $scale=100, $aspect=0.5, $border=50, $usemap='') | |
writeHeader () | |
writeFooter () | |
writeObject (&$obj) | |
drawConnectionLine ($poid, $oid) | |
drawDirectLine ($start, $end) | |
drawRoutedLine ($start, $end) | |
calculateEndPoints ($poid, $oid) | |
Additional Inherited Members | |
![]() | |
$_format = null | |
$_file = '' | |
$_map = null | |
$_img = null | |
$_width = 0 | |
$_height = 0 | |
$_xscale = 0 | |
$_yscale = 0 | |
$_border = 0 | |
$_bgColor = null | |
$_txtColor = null | |
$_lineColor = null | |
$_labelDim = null | |
$_textPos = null | |
$_usemap = '' | |
This OutputStrategy outputs a tree of objects into an image file. It must be configured with a map that was calculated by a LayoutVisitor.
wCMF - wemove Content Management Framework Copyright (C) 2005-2014 wemove digital solutions GmbH
Licensed under the terms of any of the following licenses at your choice:
See the license.txt file distributed with this work for additional information.
Definition at line 28 of file class.ElementImageOutputStrategy.php.
ElementImageOutputStrategy::ElementImageOutputStrategy | ( | $format, | |
$file, | |||
$map, | |||
$lineType = LINETYPE_DIRECT , |
|||
$scale = 100 , |
|||
$aspect = 0.5 , |
|||
$border = 50 , |
|||
$usemap = '' |
|||
) |
Constructor.
format | Image format name [IMG_GIF | IMG_JPG | IMG_PNG | IMG_WBMP]. |
file | The output file name. |
map | The position map provided by LayoutVisitor. |
lineType | The linetype to use [LINETYPE_DIRECT|LINETYPE_ROUTED] DEFAULT LINETYPE_DIRECT. |
scale | The image scale (will be xscale) DEFAULT 100. |
aspect | The image aspect (aspect = xscale/yscale) DEFAULT 0.5. |
border | The image border [px] DEFAULT 50. |
usemap | Name of the HTML ImageMap to write to stdout ['' means no map] DEFAULT ''. |
Definition at line 41 of file class.ElementImageOutputStrategy.php.
References ImageOutputStrategy\ImageOutputStrategy().
ElementImageOutputStrategy::writeHeader | ( | ) |
Write the image header.
Implements OutputStrategy.
Definition at line 56 of file class.ElementImageOutputStrategy.php.
References ImageOutputStrategy\$_txtColor, writeFilledBorderedRect(), and ImageOutputStrategy\writeHeader().
ElementImageOutputStrategy::writeObject | ( | & | $obj | ) |
Write the Nodes content.
obj | The object to write. |
Implements OutputStrategy.
Definition at line 78 of file class.ElementImageOutputStrategy.php.
References ImageOutputStrategy\$_bgColor, ImageOutputStrategy\$_border, ImageOutputStrategy\$_txtColor, DATATYPE_ATTRIBUTE, DATATYPE_ELEMENT, ImageOutputStrategy\drawConnectionLine(), and writeFilledBorderedRect().
ElementImageOutputStrategy::writeFilledBorderedRect | ( | $topleft, | |
$bottomright, | |||
$bgcolor, | |||
$bordercolor | |||
) |
Definition at line 163 of file class.ElementImageOutputStrategy.php.
Referenced by writeHeader(), and writeObject().