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.

Author
ingo herwig ingo@.nosp@m.wemo.nosp@m.ve.co.nosp@m.m

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
 __construct ($format, $file, $map, $lineType=self::LINETYPE_DIRECT, $scale=100, $aspect=0.5, $border=50, $usemap='')
 
 writeHeader ()
 
 writeFooter ()
 
 writeObject (PersistentObject $obj)
 

Additional Inherited Members

- Public Attributes inherited from ImageOutputStrategy
const LINETYPE_DIRECT = 0
 
const LINETYPE_ROUTED = 0
 
- 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
 
 $_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
$formatImage format name [IMG_GIF | IMG_JPG | IMG_PNG | IMG_WBMP].
$fileThe output file name.
$mapThe position map provided by LayoutVisitor.
$lineTypeThe linetype to use [LINETYPE_DIRECT|LINETYPE_ROUTED] DEFAULT LINETYPE_DIRECT.
$scaleThe image scale (will be xscale) DEFAULT 100.
$aspectThe image aspect (aspect = xscale/yscale) DEFAULT 0.5.
$borderThe image border [px] DEFAULT 50.
$usemapName of the HTML ImageMap to write to stdout ['' means no map] DEFAULT ''.

Definition at line 37 of file ElementImageOutputStrategy.php.

Member Function Documentation

writeHeader ( )
See also
OutputStrategy::writeHeader

Implements OutputStrategy.

Definition at line 54 of file ElementImageOutputStrategy.php.

writeObject ( PersistentObject  $obj)
See also
OutputStrategy::writeObject

Implements OutputStrategy.

Definition at line 76 of file ElementImageOutputStrategy.php.