Detailed Description
ImageOutputStrategy 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 23 of file ImageOutputStrategy.php.
Public Member Functions | |
__construct ($format, $file, $map, $lineType=self::LINETYPE_DIRECT, $scale=100, $aspect=0.5, $border=50, $usemap='') | |
writeHeader () | |
writeFooter () | |
writeObject (PersistentObject $obj) | |
Public Attributes | |
const | LINETYPE_DIRECT = 0 |
const | LINETYPE_ROUTED = 0 |
Protected Member Functions | |
drawConnectionLine ($poid, $oid) | |
drawDirectLine ($start, $end) | |
drawRoutedLine ($start, $end) | |
Protected Attributes | |
$_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 = '' | |
Constructor & Destructor Documentation
__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 ''.
Definition at line 55 of file ImageOutputStrategy.php.
Member Function Documentation
writeHeader | ( | ) |
- See also
- OutputStrategy::writeHeader
Implements OutputStrategy.
Definition at line 85 of file ImageOutputStrategy.php.
writeFooter | ( | ) |
- See also
- OutputStrategy::writeFooter
Implements OutputStrategy.
Definition at line 111 of file ImageOutputStrategy.php.
writeObject | ( | PersistentObject | $obj | ) |
- See also
- OutputStrategy::writeObject
Implements OutputStrategy.
Definition at line 133 of file ImageOutputStrategy.php.
|
protected |
Draw connection line.
- Parameters
-
$poid The parent object's object id. $oid The object's object id.
Definition at line 196 of file ImageOutputStrategy.php.
|
protected |
Draw direct line.
Definition at line 211 of file ImageOutputStrategy.php.
|
protected |
Draw routed line.
Definition at line 225 of file ImageOutputStrategy.php.
Member Data Documentation
const LINETYPE_DIRECT = 0 |
Definition at line 25 of file ImageOutputStrategy.php.
const LINETYPE_ROUTED = 0 |
Definition at line 26 of file ImageOutputStrategy.php.
|
protected |
Definition at line 28 of file ImageOutputStrategy.php.
|
protected |
Definition at line 29 of file ImageOutputStrategy.php.
|
protected |
Definition at line 30 of file ImageOutputStrategy.php.
|
protected |
Definition at line 31 of file ImageOutputStrategy.php.
|
protected |
Definition at line 32 of file ImageOutputStrategy.php.
|
protected |
Definition at line 33 of file ImageOutputStrategy.php.
|
protected |
Definition at line 34 of file ImageOutputStrategy.php.
|
protected |
Definition at line 35 of file ImageOutputStrategy.php.
|
protected |
Definition at line 36 of file ImageOutputStrategy.php.
|
protected |
Definition at line 37 of file ImageOutputStrategy.php.
|
protected |
Definition at line 38 of file ImageOutputStrategy.php.
|
protected |
Definition at line 39 of file ImageOutputStrategy.php.
|
protected |
Definition at line 40 of file ImageOutputStrategy.php.
|
protected |
Definition at line 41 of file ImageOutputStrategy.php.
|
protected |
Definition at line 42 of file ImageOutputStrategy.php.