|
Sparksee 6.1.0
|
Stores the node exporting values. More...
#include <Sparksee.h>


Instance Methods | |
| (id) | - init |
| Creates a new instance. | |
| (void) | - setDefaults |
| Sets to default values. | |
| (void) | - copyDefaults: |
| Sets the default values using a refrerence NodeExport. | |
| (NSString *) | - getLabel |
| Gets the node label. | |
| (void) | - setLabel: |
| Sets the node label. | |
| (NSString *) | - getTitle |
| Gets the node title. | |
| (void) | - setTitle: |
| Sets the node title. | |
| (enum STSNodeShape) | - getShape |
| Gets the node shape. | |
| (void) | - setShape: |
| Sets the node shape. | |
| (int) | - getColorRGB |
| Gets the node color. | |
| (void) | - setColorRGB: |
| Sets the node color. | |
| (int) | - getLabelColorRGB |
| Gets the node label color. | |
| (void) | - setLabelColorRGB: |
| Sets the node label color. | |
| (int) | - getHeight |
| Gets the node height. | |
| (void) | - setHeight: |
| Sets the node height. | |
| (int) | - getWidth |
| Gets the node width. | |
| (void) | - setWidth: |
| Gets the node width. | |
| (BOOL) | - isFit |
| Gets whether the node size is fitted to the label or not. | |
| (void) | - setFit: |
| Sets the node fit property. | |
| (int) | - getFontSize |
| Gets the node label font size. | |
| (void) | - setFontSize: |
| Sets the node label font size. | |
| (NSString *) | - getImage |
| Gets the node image. | |
| (void) | - setImage: |
| Sets the node image. | |
| (void) | - getColorRed:green:blue:alpha: |
| Get the node color separated in RGBA. | |
| (void) | - setColorRed:green:blue:alpha: |
| Set the node color with separated RGBA components. | |
| (void) | - getLabelColorRed:green:blue:alpha: |
| Get the node label color separated in RGBA. | |
| (void) | - setLabelColorRed:green:blue:alpha: |
| Set the node label color with separated RGBA components. | |
Stores the node exporting values.
When 'fit' is set to TRUE, then 'height' and 'width' will be ignored.
Some properties may be ignored depending on the exportation type.
Default values are:
Label: "" (empty string).
Shape: Box.
Color: 10863606 (0xa5c3f6).
Label color: 0 (Ox000000, Black).
Height: 25px.
Width: 25px.
Fit: TRUE.
Font size: 10.
| - (void) copyDefaults: | (STSNodeExport *) | source |
Sets the default values using a refrerence NodeExport.
| source | null |
| - (void) getColorRed: | (double *) | red | |
| green: | (double *) | green | |
| blue: | (double *) | blue | |
| alpha: | (double *) | alpha |
Get the node color separated in RGBA.
| red | [out] The red color component ([0..1]). |
| green | [out] The green color component ([0..1]). |
| blue | [out] The blue color component ([0..1]). |
| alpha | [out] The alpha component ([0..1]). |
| - (int) getColorRGB |
| - (int) getFontSize |
Gets the node label font size.
References getFontSize.
Referenced by getFontSize.
| - (int) getHeight |
| - (NSString *) getImage |
| - (NSString *) getLabel |
| - (void) getLabelColorRed: | (double *) | red | |
| green: | (double *) | green | |
| blue: | (double *) | blue | |
| alpha: | (double *) | alpha |
Get the node label color separated in RGBA.
| red | [out] The red color component ([0..1]). |
| green | [out] The green color component ([0..1]). |
| blue | [out] The blue color component ([0..1]). |
| alpha | [out] The alpha component ([0..1]). |
| - (int) getLabelColorRGB |
Gets the node label color.
References getLabelColorRGB.
Referenced by getLabelColorRGB.
| - (enum STSNodeShape) getShape |
| - (NSString *) getTitle |
| - (int) getWidth |
| - (BOOL) isFit |
| - (void) setColorRed: | (double) | red | |
| green: | (double) | green | |
| blue: | (double) | blue | |
| alpha: | (double) | alpha |
Set the node color with separated RGBA components.
| red | [in] The red color component ([0..1]). |
| green | [in] The green color component ([0..1]). |
| blue | [in] The blue color component ([0..1]). |
| alpha | [in] The alpha component ([0..1]). |
| - (void) setColorRGB: | (int) | color |
Sets the node color.
| color | The node color. |
| - (void) setFit: | (BOOL) | fit |
Sets the node fit property.
| fit | [in] If TRUE, then the node size is fitted to the label ('height' and 'width' will be ignored), otherwise the size is fixed with the values of 'height' and 'width'. |
| - (void) setFontSize: | (int) | size |
Sets the node label font size.
| size | [in] The node label font size. |
| - (void) setHeight: | (int) | height |
Sets the node height.
| height | [in] The node height in pixels. |
| - (void) setImage: | (NSString *) | image |
Sets the node image.
| image | [in] The node image. The image should be a path to a local file or an URL. The image usage in the export depends on the exported format and shape. For Graphviz: Graphviz expects only local image paths as images in dot files unless you plan on using something like it's "dot_url_resolve.py" script to automatically download them. The Image shape is not directly supported for Graphviz. For Html: The vis.js html exports only show the image if the node shape selected is Image or Circle (that will be translated as "circularimage"). |
| - (void) setLabel: | (NSString *) | label |
Sets the node label.
| label | [in] The node label. |
| - (void) setLabelColorRed: | (double) | red | |
| green: | (double) | green | |
| blue: | (double) | blue | |
| alpha: | (double) | alpha |
Set the node label color with separated RGBA components.
| red | [in] The red color component ([0..1]). |
| green | [in] The green color component ([0..1]). |
| blue | [in] The blue color component ([0..1]). |
| alpha | [in] The alpha component ([0..1]). |
| - (void) setLabelColorRGB: | (int) | color |
Sets the node label color.
| color | [in] The node label color. |
| - (void) setShape: | (enum STSNodeShape) | shape |
Sets the node shape.
| shape | [in] The node shape. |
| - (void) setTitle: | (NSString *) | title |
Sets the node title.
| title | [in] The node title. |
| - (void) setWidth: | (int) | width |
Gets the node width.
| width | The node width in pixels. |