classDiagramFullScreen.php File Reference

Go to the source code of this file.

Functions

 addClass (color)
 addLine (objFrom, objTo, color)
 cloneLine (objLineOriginal)


Function Documentation

addClass ( color   ) 

Definition at line 42 of file classDiagramFullScreen.php.

00043                 {
00044                     var objClass = new CanvasBoxClass();
00045                     objClass.objBehavior = new CanvasBoxMagneticBehavior( objClass );
00046                     //objClass.objBehavior = new CanvasBoxDefaultBehavior( objClass );
00047                     objClass.x = Math.random() *  window.box.width ;
00048                     objClass.y = Math.random() * window.box.height ;
00049                     if( color )
00050                     {
00051                         objClass.color = color;
00052                     }
00053                     window.box.addElement( objClass );
00054                     return objClass;
00055                 }

addLine ( objFrom  ,
objTo  ,
color   
)

Definition at line 56 of file classDiagramFullScreen.php.

00057                 {
00058                     var objLine = new CanvasBoxLine( objFrom , objTo );
00059                     objLine.objBehavior = new CanvasBoxMagneticConnectorBehavior( objLine );
00060                     //objLine.objBehavior = new CanvasBoxDefaultConnectorBehavior( objLine );
00061                     objLine.x =  ( objFrom.x + objTo.x  ) / 2
00062                     objLine.y =  ( objFrom.y + objTo.y  ) / 2
00063                     if( color )
00064                     {
00065                         objLine.color = color;
00066                     }
00067                     window.box.addElement( objLine );
00068                     return objLine;
00069                 }

cloneLine ( objLineOriginal   ) 

Definition at line 70 of file classDiagramFullScreen.php.

00071                 {
00072                     return objLineOriginal.cloneLine();
00073                 }


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