Go to the source code of this file.
Functions | |
| addClass (color) | |
| addLine (objFrom, objTo, color) | |
| cloneLine (objLineOriginal) | |
| 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 | ) |
1.5.9