UmlSequenceDiagramNote.class.php

Go to the documentation of this file.
00001 <?php
00019 class UmlSequenceDiagramNote
00020 {
00026     protected $strContent = "";
00027 
00035     protected $booShowLine = false;
00036 
00044     protected $booLeft = true;
00045 
00052     protected $objActor;
00053 
00060     public function setContent( $strContent )
00061     {
00062         $this->strContent = (string)$strContent;
00063         return $this;
00064     }
00065 
00071     public function getContent()
00072     {
00073         return $this->strContent;
00074     }
00075 
00082     public function setShowLine( $booShowLine )
00083     {
00084         $this->booShowLine = (boolean) $booShowLine;
00085         return $this;
00086     }
00087 
00093     public function getShowLine()
00094     {
00095         return $this->booShowLine;
00096     }
00097 
00104     public function setActor( UmlSequenceDiagramActor $objActor )
00105     {
00106         $this->objActor = $objActor;
00107         return $this;
00108     }
00109 
00115     public function getActor()
00116     {
00117         return $this->objActor;
00118     }
00119 
00126     public function setLeft( $booLeft )
00127     {
00128         $this->booLeft = (boolean)$booLeft;
00129         return $this;
00130     }
00131 
00137     public function getLeft()
00138     {
00139         return $this->booLeft;
00140     }
00141 
00148     public function setRight( $booRight )
00149     {
00150         $booRight = (boolean)$booRight;
00151         $booLeft = !$booRight;
00152         return $this->setLeft( $booLeft );
00153     }
00154 
00160     public function getRight()
00161     {
00162         $booLeft = $this->getLeft();
00163         $booRight = !$booLeft;
00164         return $booRight;
00165     }
00166 
00173     public function putInLeftOfActor( UmlSequenceDiagramActor $objActor )
00174     {
00175         $this->setActor( $objActor );
00176         $this->setLeft( true );
00177         return $this;
00178     }
00179 
00186     public function putInRightOfActor( UmlSequenceDiagramActor $objActor )
00187     {
00188         $this->setActor( $objActor );
00189         $this->setRight( true );
00190         return $this;
00191     }
00192 
00193 }
00194 ?>

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