| software products and customization | ||
|
||
| Purpose: | Retrieve a OCNode object from the OCMatrix array |
| Arguments: | 1.row(number), 2.column(number) |
| Return Value: | OCNode object |
| Example: |
var a=mat.GetNode(0, 0); |
| Purpose: | Initialize node images of rectangle shape |
| Arguments: |
|
| Return Value: | true(success)/false(faiure) |
| Example: |
//200 x 120 round-corner rectangle with blue border and filled gradiently from white to blue var w=mat.Color(255,255,255); var b=mat.Color(0, 119,224); mat.InitNodeImageRectangle(200, 120, true, 1, b, w, b, true); |
| Purpose: | Initialize node images of oval shape |
| Arguments: |
|
| Return Value: | true(success)/false(faiure) |
| Example: |
//200 x 120 oval with blue border and filled gradiently from white to blue var w=mat.Color(255,255,255); var b=mat.Color(0, 119,224); mat.InitNodeImageRectangle(200, 120, true, 1, b, w, b, true); |
| Purpose: | Initialize node images based on a picture specified by application. |
| Arguments: | path(string): file name of a picture file |
| Return Value: | true(success)/false(faiure) |
| Example: |
mat.InitNodeImageFromFile("my.jpg");
|
| Purpose: | Combine red, green and blue to make a 24-bit color value |
| Arguments: | 1.red, 2.green, 3.blue |
| Return Value: | 24-bit color value (number) |
| Example: |
var blue=mat.Color(0,0,255); mat.LineColor=blue; |
| Purpose: | Translate web-page-style color to 24-bit color |
| Arguments: | color(string) |
| Return Value: | 24-bit color value |
| Example: |
var blue=mat.TranslateColor("#0000ff");
mat.LineColor=blue;
|
| Purpose: | Combine node images to make a complete picture and save it to a file |
| Arguments: | path(string): picture file name |
| Return Value: | true/false |
| Example: |
mat.SaveMatrixImage("my.png");
|
| Purpose: | Save node images to a folder |
| Arguments: | folder(string): name of the folder where the node images are to be saved. |
| Return Value: | true/false |
| Example: |
mat.SaveNodeImages("myfolder");
|
| Purpose: | Release resources allocated by OCMatrix. The array becomes empty after this method is called |
| Arguments: | |
| Return Value: | |
| Example: |
mat.CleanUp(); |
| Type: | number |
| Notes: | Number of rows of the OCMatrix array |
| Type: | number |
| Notes: | Number of columns of the OCMatrix array |
| Type: | number |
| Notes: | Width of the connection lines between nodes |
| Type: | number (24-bit color value) |
| Notes: | 24-bit color value of the connection lines between nodes |
| Type: | number |
| Notes: |
MarginLeft = length of line B MarginRight = length of line D MarginTop = length of line C MarginBottom = lenth of line E |
| Type: | number |
| Notes: | Overall width of the node image, including MarginLeft and MarginRight |
| Type: | number |
| Notes: | Overall height of the node image, including MarginTop and MarginBottom |
| Type: | number |
| Notes: | Overall width of the OCMatrix image |
| Type: | number |
| Notes: | Overall height of the OCMatrix image |
| Type: | String |
| Notes: | License information about the current copy of ActiveOC. |
| Type: | String |
| Notes: | The information of last error. ActiveOC does not throw an exception when error occurs. Check this value when a method returns false or a value not expected. |