ImageOutputStrategy.php
49 * @param $lineType The linetype to use [LINETYPE_DIRECT|LINETYPE_ROUTED] DEFAULT LINETYPE_DIRECT.
95 $this->_width = $this->_width * $this->_xscale + $this->_labelDim['right'] - $this->_labelDim['left'] + 2*$this->_border;
96 $this->_height = $this->_height * $this->_yscale + $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->_xscale + ($this->_labelDim['right'] - $this->_labelDim['left'])/2 + $this->_border;
284 $y1 = $this->_map[$oid]->y * $this->_yscale + ($this->_labelDim['bottom'] - $this->_labelDim['top'])/2 + $this->_border;
289 $x2 = $this->_map[$poid]->x * $this->_xscale + ($this->_labelDim['right'] - $this->_labelDim['left'])/2 + $this->_border;
290 $y2 = $this->_map[$poid]->y * $this->_yscale + ($this->_labelDim['bottom'] - $this->_labelDim['top']) + $this->_border + 1;
294 $x2 = $this->_map[$poid]->x * $this->_xscale + $this->_labelDim['right'] - $this->_labelDim['left'] + $this->_border + 1;
295 $y2 = $this->_map[$poid]->y * $this->_yscale + ($this->_labelDim['bottom'] - $this->_labelDim['top'])/2 + $this->_border;
$_lineColor
Definition: ImageOutputStrategy.php:39
OutputStrategy defines the interface for classes that write an object's content to a destination (cal...
Definition: OutputStrategy.php:22
IllegalArgumentException signals an exception in method arguments.
Definition: IllegalArgumentException.php:18
writeHeader()
Definition: ImageOutputStrategy.php:85
__construct($format, $file, $map, $lineType=self::LINETYPE_DIRECT, $scale=100, $aspect=0.5, $border=50, $usemap='')
Constructor.
Definition: ImageOutputStrategy.php:55
const STATE_DELETED
Definition: PersistentObject.php:29
const STATE_DIRTY
Definition: PersistentObject.php:27
writeObject(PersistentObject $obj)
Definition: ImageOutputStrategy.php:133
$_labelDim
Definition: ImageOutputStrategy.php:40
$_txtColor
Definition: ImageOutputStrategy.php:38
const LINETYPE_DIRECT
Definition: ImageOutputStrategy.php:25
writeFooter()
Definition: ImageOutputStrategy.php:111
const LINETYPE_ROUTED
Definition: ImageOutputStrategy.php:26
ImageOutputStrategy outputs a tree of objects into an image file.
Definition: ImageOutputStrategy.php:23
PersistentObject defines the interface of all persistent objects.
Definition: PersistentObject.php:24