ElementImageOutputStrategy Class Reference
Detailed Description
ElementImageOutputStrategy outputs a tree of objects into an image file.
It must be configured with a map that was calculated by a LayoutVisitor.
Definition at line 24 of file ElementImageOutputStrategy.php.
Inheritance diagram for ElementImageOutputStrategy:Public Member Functions | |
| __construct ($format, $file, $map, $lineType=self::LINETYPE_DIRECT, $scale=100, $aspect=0.5, $border=50, $usemap='') | |
| writeHeader () | |
| writeObject (PersistentObject $obj) | |
Public Member Functions inherited from ImageOutputStrategy | |
| writeFooter () | |
Additional Inherited Members | |
Public Attributes inherited from ImageOutputStrategy | |
| const | LINETYPE_DIRECT = 0 |
| const | LINETYPE_ROUTED = 1 |
Protected Member Functions inherited from ImageOutputStrategy | |
| drawConnectionLine ($poid, $oid) | |
| drawDirectLine ($start, $end) | |
| drawRoutedLine ($start, $end) | |
Protected Attributes inherited from ImageOutputStrategy | |
| $format = null | |
| $file = '' | |
| $map = null | |
| $img = null | |
| $width = 0 | |
| $height = 0 | |
| $scale = null | |
| $border = 0 | |
| $bgColor = null | |
| $txtColor = null | |
| $lineColor = null | |
| $lineType = null | |
| $labelDim = null | |
| $textPos = null | |
| $usemap = '' | |
Constructor & Destructor Documentation
◆ __construct()
| __construct | ( | $format, | |
| $file, | |||
| $map, | |||
$lineType = self::LINETYPE_DIRECT, |
|||
$scale = 100, |
|||
$aspect = 0.5, |
|||
$border = 50, |
|||
$usemap = '' |
|||
| ) |
Constructor.
- Parameters
-
$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 ''.
Reimplemented from ImageOutputStrategy.
Definition at line 37 of file ElementImageOutputStrategy.php.
Member Function Documentation
◆ writeHeader()
| writeHeader | ( | ) |
- See also
- OutputStrategy::writeHeader
Reimplemented from ImageOutputStrategy.
Definition at line 54 of file ElementImageOutputStrategy.php.
◆ writeObject()
| writeObject | ( | PersistentObject | $obj | ) |
- See also
- OutputStrategy::writeObject
Reimplemented from ImageOutputStrategy.
Definition at line 76 of file ElementImageOutputStrategy.php.