UmlSequenceDiagramPrinterConfigurationToHtml.class.php

Go to the documentation of this file.
00001 <?php
00014 class UmlSequenceDiagramPrinterConfigurationToHtml implements UmlSequenceDiagramPrinterConfigurationInterface
00015 {
00021     protected $strPublicPath;
00022 
00028     protected $strCallerPath;
00029 
00036     protected $booExternalAccess = false;
00037 
00044     protected $intWidth = 800;
00045 
00052     protected $intLinePercentHeight = 25;
00053 
00060     protected $intLineActorPercentHeight = 40;
00061 
00070     protected $intZoom = 100;
00071 
00079     protected $intActorHeaderPercentWidth = 75;
00080 
00088     protected $intActorLogoPercentWidth = 70;
00089 
00097     protected $intActorBarPercentWidth = 2;
00098 
00106     protected $intPercentFont = 30;
00107     
00118     protected $booEmbeded = false;
00119 
00127     protected $booShowDetails = true;
00128     
00136     public function setPublicPath( $strPublicPath )
00137     {
00138         $this->strPublicPath = (string)$strPublicPath;
00139         return $this;
00140     }
00141 
00148     public function getPublicPath()
00149     {
00150         return $this->strPublicPath;
00151     }
00152 
00160     public function setCallerPath( $strCallerPath )
00161     {
00162         $this->strCallerPath = (string)$strCallerPath;
00163         return $this;
00164     }
00165 
00172     public function getCallerPath()
00173     {
00174         return $this->strCallerPath;
00175     }
00176 
00185     public function setExternalAccess( $booExternalAccess )
00186     {
00187         $this->booExternalAccess = (boolean)$booExternalAccess;
00188         return $this;
00189     }
00190 
00198     public function getExternalAccess()
00199     {
00200         return $this->booExternalAccess;
00201     }
00202 
00210     public function setWidth( $intWidth )
00211     {
00212         $this->intWidth = (integer)$intWidth;
00213         return $this;
00214     }
00215 
00222     public function getWidth()
00223     {
00224         return $this->intWidth;
00225     }
00226 
00238     public function setZoom( $intZoom )
00239     {
00240         $this->intZoom = (integer)$intZoom;
00241         return $this;
00242     }
00243 
00254     public function getZoom()
00255     {
00256         return $this->intZoom;
00257     }
00258 
00266     public function setLinePercentHeight( $intPercentHeight )
00267     {
00268         $this->intLinePercentHeight = (integer)$intPercentHeight;
00269         return $this;
00270     }
00271 
00278     public function getLinePercentHeight()
00279     {
00280         return $this->intLinePercentHeight;
00281     }
00282 
00290     public function setLineActorPercentHeight( $intActorPercentHeight )
00291     {
00292         $this->intLineActorPercentHeight = (integer)$intActorPercentHeight;
00293         return $this;
00294     }
00295 
00302     public function getLineActorPercentHeight()
00303     {
00304         return $this->intLineActorPercentHeight;
00305     }
00306 
00317     public function setActorHeaderPercentWidth( $intActorHeaderPercentWidth )
00318     {
00319         $this->intActorHeaderPercentWidth = (integer)$intActorHeaderPercentWidth;
00320         return $this;
00321     }
00322 
00332     public function getActorHeaderPercentWidth()
00333     {
00334         return $this->intActorHeaderPercentWidth;
00335     }
00336 
00344     public function setActorLogoPercentWidth( $intActorLogoPercentWidth )
00345     {
00346         $this->intActorLogoPercentWidth = (integer)$intActorLogoPercentWidth;
00347         return $this;
00348     }
00349 
00356     public function getActorLogoPercentWidth()
00357     {
00358         return $this->intActorLogoPercentWidth;
00359     }
00360 
00371     public function setActorBarPercentWidth( $intActorBarPercentWidth )
00372     {
00373         $this->intActorBarPercentWidth = (integer)$intActorBarPercentWidth;
00374         return $this;
00375     }
00376 
00386     public function getActorBarPercentWidth()
00387     {
00388         return $this->intActorBarPercentWidth;
00389     }
00390 
00401     public function setPercentFont( $intPercentFont )
00402     {
00403         $this->intPercentFont = (integer)$intPercentFont;
00404         return $this;
00405     }
00406 
00417     public function getPercentFont()
00418     {
00419         return $this->intPercentFont;
00420     }
00421 
00428     public function setEmbeded( $booEmbeded )
00429     {
00430         $this->booEmbeded = $booEmbeded;
00431         return $this;
00432     }
00433 
00439     public function getEmbeded()
00440     {
00441         return $this->booEmbeded;
00442     }
00443 
00450     public function setShowDetails( $booShowDetails )
00451     {
00452         $this->booShowDetails = $booShowDetails;
00453         return $this;
00454     }
00455 
00461     public function getShowDetails()
00462     {
00463         return $this->booShowDetails;
00464     }
00465 
00471     public function getPublicFolderPath()
00472     {
00473         if( $this->getExternalAccess() )
00474         {
00475             $strPublicPath = $this->getPublicPath();
00476         }
00477         else
00478         {
00479             if  (
00480                     ( $this->getCallerPath() != null )
00481                     and
00482                     ( $this->getPublicPath() != null )
00483                 )
00484             {
00485                 $strPublicPath = CorujaFileManipulation::getRelativePath(
00486                     $this->getCallerPath(),
00487                     $this->getPublicPath()
00488                 );
00489             }
00490             elseif
00491                 (
00492                     ( $this->getCallerPath() == null )
00493                     and
00494                     ( $this->getPublicPath() != null )
00495                 )
00496             {
00497                 $strPublicPath = $this->getPublicPath();
00498             }
00499             else
00500             {
00501                 $strPublicPath = "./";
00502             }
00503         }
00504         return $strPublicPath;
00505     }
00506 
00512     public function perform( $objUmlSequenceDiagram )
00513     {
00514         return UmlSequenceDiagramPrinterToHtml::getInstance()->perform( $objUmlSequenceDiagram );
00515     }
00516 }
00517 ?>

Generated on Sat Apr 7 14:19:10 2012 for CodeToDiagram by  doxygen 1.5.9