|
SparkseePython3 6.1.0
|
Stores the node exporting values. More...
Public Member Functions | |
| get_image (self) | |
| Gets the node image. | |
| get_labelcolor_rgb (self) | |
| Gets the node label color. | |
| set_label (self, label) | |
| Sets the node label. | |
| set_width (self, width) | |
| Gets the node width. | |
| set_image (self, image) | |
| Sets the node image. | |
| set_color_rgb (self, color) | |
| Sets the node color. | |
| set_font_size (self, size) | |
| Sets the node label font size. | |
| set_height (self, height) | |
| Sets the node height. | |
| get_shape (self) | |
| Gets the node shape. | |
| set_labelcolor_rgb (self, color) | |
| Sets the node label color. | |
| is_fit (self) | |
| Gets whether the node size is fitted to the label or not. | |
| get_color_rgb (self) | |
| Gets the node color. | |
| set_fit (self, fit) | |
| Sets the node fit property. | |
| __init__ (self) | |
| Creates a new instance. | |
| get_font_size (self) | |
| Gets the node label font size. | |
| set_defaults (self) | |
| Sets to default values. | |
| get_label (self) | |
| Gets the node label. | |
| get_height (self) | |
| Gets the node height. | |
| get_title (self) | |
| Gets the node title. | |
| get_width (self) | |
| Gets the node width. | |
| set_title (self, title) | |
| Sets the node title. | |
| copy_defaults (self, source) | |
| Sets the default values using a refrerence NodeExport. | |
| set_shape (self, shape) | |
| Sets the node shape. | |
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.
| sparksee.NodeExport.copy_defaults | ( | self, | |
| source ) |
Sets the default values using a refrerence NodeExport.
| source | null |
| sparksee.NodeExport.get_color_rgb | ( | self | ) |
Gets the node color.
| sparksee.NodeExport.get_font_size | ( | self | ) |
Gets the node label font size.
| sparksee.NodeExport.get_height | ( | self | ) |
Gets the node height.
| sparksee.NodeExport.get_image | ( | self | ) |
Gets the node image.
| sparksee.NodeExport.get_label | ( | self | ) |
Gets the node label.
| sparksee.NodeExport.get_labelcolor_rgb | ( | self | ) |
Gets the node label color.
| sparksee.NodeExport.get_shape | ( | self | ) |
Gets the node shape.
| sparksee.NodeExport.get_title | ( | self | ) |
Gets the node title.
| sparksee.NodeExport.get_width | ( | self | ) |
Gets the node width.
| sparksee.NodeExport.is_fit | ( | self | ) |
Gets whether the node size is fitted to the label or not.
| sparksee.NodeExport.set_color_rgb | ( | self, | |
| color ) |
Sets the node color.
| color | The node color. |
| sparksee.NodeExport.set_fit | ( | self, | |
| 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'. |
| sparksee.NodeExport.set_font_size | ( | self, | |
| size ) |
Sets the node label font size.
| size | [in] The node label font size. |
| sparksee.NodeExport.set_height | ( | self, | |
| height ) |
Sets the node height.
| height | [in] The node height in pixels. |
| sparksee.NodeExport.set_image | ( | self, | |
| 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"). |
| sparksee.NodeExport.set_label | ( | self, | |
| label ) |
Sets the node label.
| label | [in] The node label. |
| sparksee.NodeExport.set_labelcolor_rgb | ( | self, | |
| color ) |
Sets the node label color.
| color | [in] The node label color. |
| sparksee.NodeExport.set_shape | ( | self, | |
| shape ) |
Sets the node shape.
| shape | [in] The node shape. |
| sparksee.NodeExport.set_title | ( | self, | |
| title ) |
Sets the node title.
| title | [in] The node title. |
| sparksee.NodeExport.set_width | ( | self, | |
| width ) |
Gets the node width.
| width | The node width in pixels. |