UmlSequenceDiagramNote Class Reference

List of all members.

Public Member Functions

 setContent ($strContent)
 getContent ()
 setShowLine ($booShowLine)
 getShowLine ()
 setActor (UmlSequenceDiagramActor $objActor)
 getActor ()
 setLeft ($booLeft)
 getLeft ()
 setRight ($booRight)
 getRight ()
 putInLeftOfActor (UmlSequenceDiagramActor $objActor)
 putInRightOfActor (UmlSequenceDiagramActor $objActor)

Protected Attributes

 $strContent = ""
 $booShowLine = false
 $booLeft = true
 $objActor


Detailed Description

UmlSequenceDiagramNote append a note what helps to describe the UmlSequenceDiagram

Notes help to describe some information about a slice of the diagram. As with all UML Diagram, the Notes are shown in a rectangle with a folder-olver corner.

Author:
Thiago Henrique Ramos da Mata <thiago.henrique.mata@gmail.com>

Definition at line 19 of file UmlSequenceDiagramNote.class.php.


Member Function Documentation

getActor (  ) 

Get the actor what the note it is relative to

Returns:
UmlSequenceDiagramActor

Definition at line 115 of file UmlSequenceDiagramNote.class.php.

Referenced by UmlSequenceDiagramPrinterToHtml::getNote().

00116     {
00117         return $this->objActor;
00118     }

getContent (  ) 

Get the note content

Returns:
string

Definition at line 71 of file UmlSequenceDiagramNote.class.php.

Referenced by UmlSequenceDiagramPrinterToHtml::getNote().

00072     {
00073         return $this->strContent;
00074     }

getLeft (  ) 

Get if the note should be in the left of the actor

Returns:
boolean

Definition at line 137 of file UmlSequenceDiagramNote.class.php.

Referenced by getRight().

00138     {
00139         return $this->booLeft;
00140     }

getRight (  ) 

Get if the note should be in the right of the actor

Returns:
boolean

Definition at line 160 of file UmlSequenceDiagramNote.class.php.

References $booLeft, and getLeft().

00161     {
00162         $booLeft = $this->getLeft();
00163         $booRight = !$booLeft;
00164         return $booRight;
00165     }

getShowLine (  ) 

Get the show line option

Returns:
boolean

Definition at line 93 of file UmlSequenceDiagramNote.class.php.

00094     {
00095         return $this->booShowLine;
00096     }

putInLeftOfActor ( UmlSequenceDiagramActor objActor  ) 

Put the note on the left of the received actor

Parameters:
UmlSequenceDiagramActor $objActor
Returns:
UmlSequenceDiagramNote

Definition at line 173 of file UmlSequenceDiagramNote.class.php.

References setActor(), and setLeft().

00174     {
00175         $this->setActor( $objActor );
00176         $this->setLeft( true );
00177         return $this;
00178     }

putInRightOfActor ( UmlSequenceDiagramActor objActor  ) 

Put the note on the right of the received actor

Parameters:
UmlSequenceDiagramActor $objActor
Returns:
UmlSequenceDiagramNote

Definition at line 186 of file UmlSequenceDiagramNote.class.php.

References setActor(), and setRight().

00187     {
00188         $this->setActor( $objActor );
00189         $this->setRight( true );
00190         return $this;
00191     }

setActor ( UmlSequenceDiagramActor objActor  ) 

Set the actor what the note it is relative to

Parameters:
UmlSequenceDiagramActor $objActor
Returns:
UmlSequenceDiagramNote

Definition at line 104 of file UmlSequenceDiagramNote.class.php.

Referenced by putInLeftOfActor(), and putInRightOfActor().

00105     {
00106         $this->objActor = $objActor;
00107         return $this;
00108     }

setContent ( strContent  ) 

Set the note content

Parameters:
string $strContent
Returns:
UmlSequenceDiagramNote

Definition at line 60 of file UmlSequenceDiagramNote.class.php.

References $strContent.

00061     {
00062         $this->strContent = (string)$strContent;
00063         return $this;
00064     }

setLeft ( booLeft  ) 

Set if the note should be in the left of the actor

Parameters:
boolean $booLeft
Returns:
UmlSequenceDiagramNote

Definition at line 126 of file UmlSequenceDiagramNote.class.php.

References $booLeft.

Referenced by putInLeftOfActor(), and setRight().

00127     {
00128         $this->booLeft = (boolean)$booLeft;
00129         return $this;
00130     }

setRight ( booRight  ) 

Set if the note should be in the right of the actor

Parameters:
boolean $booRight
Returns:
UmlSequenceDiagramNote

Definition at line 148 of file UmlSequenceDiagramNote.class.php.

References $booLeft, and setLeft().

Referenced by putInRightOfActor().

00149     {
00150         $booRight = (boolean)$booRight;
00151         $booLeft = !$booRight;
00152         return $this->setLeft( $booLeft );
00153     }

setShowLine ( booShowLine  ) 

Set the show line option

Parameters:
boolean $booShowLine
Returns:
UmlSequenceDiagramNote

Definition at line 82 of file UmlSequenceDiagramNote.class.php.

References $booShowLine.

00083     {
00084         $this->booShowLine = (boolean) $booShowLine;
00085         return $this;
00086     }


Member Data Documentation

$booLeft = true [protected]

Flag to control the position of the note in relative to the actor. true is on the left and false is on the right

boolean

Definition at line 44 of file UmlSequenceDiagramNote.class.php.

Referenced by getRight(), setLeft(), and setRight().

$booShowLine = false [protected]

Flag to control if the line between the actor and the note should be visible or not

boolean

Definition at line 35 of file UmlSequenceDiagramNote.class.php.

Referenced by setShowLine().

$objActor [protected]

Actor what the note it is relative to

UmlSequenceDiagramActor

Definition at line 52 of file UmlSequenceDiagramNote.class.php.

$strContent = "" [protected]

String with the content of the diagram note

string

Definition at line 26 of file UmlSequenceDiagramNote.class.php.

Referenced by setContent().


The documentation for this class was generated from the following file:

Generated on Thu Feb 3 03:55:04 2011 for CodeToDiagram by  doxygen 1.5.9