ImageOutputStrategy.php
49 * @param $lineType The linetype to use [LINETYPE_DIRECT|LINETYPE_ROUTED] DEFAULT LINETYPE_DIRECT.
95 $this->width = $this->width * $this->scale['x'] + $this->labelDim['right'] - $this->labelDim['left'] + 2*$this->border;
96 $this->height = $this->height * $this->scale['y'] + $this->labelDim['bottom'] - $this->labelDim['top'] + 2*$this->border;
112 ImageString($this->img, 1, $this->width-350, $this->height-10, 'wemove digital solutions. '.date ("l dS of F Y h:i:s A"), $this->txtColor);
187 '" onclick="javascript:if (nodeClicked) nodeClicked(\''.$obj->getOID().'\')" alt="'.$obj->getOID().'">'."\n";
196 protected function drawConnectionLine($poid, $oid) {
211 protected function drawDirectLine($start, $end) {
225 protected function drawRoutedLine($start, $end) {
278 $x1 = $this->map[$oid]->x * $this->scale['x'] + ($this->labelDim['right'] - $this->labelDim['left'])/2 + $this->border;
284 $y1 = $this->map[$oid]->y * $this->scale['y'] + ($this->labelDim['bottom'] - $this->labelDim['top'])/2 + $this->border;
289 $x2 = $this->map[$poid]->x * $this->scale['x'] + ($this->labelDim['right'] - $this->labelDim['left'])/2 + $this->border;
290 $y2 = $this->map[$poid]->y * $this->scale['y'] + ($this->labelDim['bottom'] - $this->labelDim['top']) + $this->border + 1;
294 $x2 = $this->map[$poid]->x * $this->scale['x'] + $this->labelDim['right'] - $this->labelDim['left'] + $this->border + 1;
OutputStrategy defines the interface for classes that write an object's content to a destination (cal...
Definition: OutputStrategy.php:22
The Position class stores a coordinate tuple for use with the LayoutVisitor.
Definition: Position.php:19
__construct($format, $file, $map, $lineType=self::LINETYPE_DIRECT, $scale=100, $aspect=0.5, $border=50, $usemap='')
Constructor.
Definition: ImageOutputStrategy.php:55
const LINETYPE_DIRECT
Definition: ImageOutputStrategy.php:25
const STATE_DELETED
Definition: PersistentObject.php:28
IllegalArgumentException signals an exception in method arguments.
Definition: IllegalArgumentException.php:18
$lineColor
Definition: ImageOutputStrategy.php:38
writeFooter()
Definition: ImageOutputStrategy.php:111
writeObject(PersistentObject $obj)
Definition: ImageOutputStrategy.php:133
PersistentObject defines the interface of all persistent objects.
Definition: PersistentObject.php:23
const LINETYPE_ROUTED
Definition: ImageOutputStrategy.php:26
ImageOutputStrategy outputs a tree of objects into an image file.
Definition: ImageOutputStrategy.php:23
writeHeader()
Definition: ImageOutputStrategy.php:85
const STATE_DIRTY
Definition: PersistentObject.php:26