![]() |
Bridges-Python
3.2.0
Bridges(PythonAPI)
|
Public Member Functions | |
| def | get_data_structure_type (self) |
| Get the data structure representation. More... | |
| def | __init__ (self, kwargs) |
| Element constructor. More... | |
| def | value (self) |
| Getter for the value this element is holding. More... | |
| def | value (self, val) |
| Setter for the value of an element. More... | |
| def | identifier (self) |
| Getter for the element identifier. More... | |
| def | identifier |
| Setter for the element identifier. More... | |
| def | visualizer (self) |
| Getter for the element visualizer. More... | |
| def | visualizer |
| Setter function for this element visualizer. More... | |
| def | get_link_visualizer (self, el) |
| def | set_link_visualizer (self, el) |
| Setter for the link visualizer of this element. More... | |
| def | remove_link_visualizer (self, el) |
| Deleter function for the lik visualizer of this element. More... | |
| def | label (self) |
| Getter for the element's label. More... | |
| def | label (self, label) |
| Setter for the element's label. More... | |
| def | size (self) |
| Getter for the element's size. More... | |
| def | size (self, sz) |
| Setter for the element's size. More... | |
| def | color (self) |
| Getter for the element's color. More... | |
| def | color (self, col) |
| Setter for the element's size. More... | |
| def | opacity (self) |
| Getter for the element's opacity. More... | |
| def | opacity (self, op) |
| Setter for the element's opacity. More... | |
| def | shape (self) |
| Getter for the element's shape type. More... | |
| def | shape (self, shp) |
| Setter for the element's shape. More... | |
| def | id (self) |
| Get numer of ids of element object. More... | |
| def | set_location (self, locX, locY) |
| Setter for the element's location. More... | |
| def | get_locationX (self) |
| Getter for the element's location in X. More... | |
| def | get_locationY (self) |
| Getter for the element's location in Y. More... | |
| def | get_element_representation (self) |
| Getter for the element's JSON representation (for internal use) More... | |
| def | get_link_representation (self, lv, src, dest) |
| Getter for the JSON representation of the element's link (for internal use) More... | |
Public Attributes | |
| color | |
| opacity | |
Static Public Attributes | |
| int | ids = 0 |
| def bridges.element.Element.__init__ | ( | self, | |
| kwargs, | |||
| None | |||
| ) |
Element constructor.
Creates an Element Visualizer and unique identifier for the current element.
(0) : "label" - the string label that is visible on the bridges Visualization
(1) : "value" - data value (or object) E used to construct Element
(2) : "original" - element object to copy (if named "original")
(3) : "color" - color of element
(4) : "opacity" - opacity of element
| def bridges.element.Element.color | ( | self | ) |
Getter for the element's color.
| def bridges.element.Element.color | ( | self, | |
| col | |||
| ) |
Setter for the element's size.
| col | the element's color |
| def bridges.element.Element.get_data_structure_type | ( | self, | |
| str | |||
| ) |
Get the data structure representation.
| def bridges.element.Element.get_element_representation | ( | self | ) |
Getter for the element's JSON representation (for internal use)
| def bridges.element.Element.get_link_representation | ( | self, | |
| lv, | |||
| src, | |||
| dest | |||
| ) |
Getter for the JSON representation of the element's link (for internal use)
| lv | link visualizer |
| src | source vertex of link |
| dest | destination vertex of link |
| def bridges.element.Element.get_link_visualizer | ( | self, | |
| el, | |||
| LinkVisualizer | |||
| ) |
| def bridges.element.Element.get_locationX | ( | self | ) |
Getter for the element's location in X.
| def bridges.element.Element.get_locationY | ( | self | ) |
Getter for the element's location in Y.
| def bridges.element.Element.id | ( | self, | |
| int | |||
| ) |
Get numer of ids of element object.
| def bridges.element.Element.identifier | ( | self, | |
| str | |||
| ) |
Getter for the element identifier.
| def bridges.element.Element.identifier | ( | self, | |
| id | |||
| ) |
Setter for the element identifier.
| id | the identifier (for internal use) |
| def bridges.element.Element.label | ( | self | ) |
Getter for the element's label.
| def bridges.element.Element.label | ( | self, | |
| label | |||
| ) |
Setter for the element's label.
| label | the element's label |
| def bridges.element.Element.opacity | ( | self | ) |
Getter for the element's opacity.
| def bridges.element.Element.opacity | ( | self, | |
| op | |||
| ) |
Setter for the element's opacity.
| op | the element's size (0-1.0) |
| def bridges.element.Element.remove_link_visualizer | ( | self, | |
| el, | |||
| None | |||
| ) |
Deleter function for the lik visualizer of this element.
(Element) el: the terminating element of the link; the link visualizer for this link will be deleted
| def bridges.element.Element.set_link_visualizer | ( | self, | |
| el, | |||
| None | |||
| ) |
Setter for the link visualizer of this element.
(Element) el: the terminating element of this link; creates a new link visualizer for this link
| def bridges.element.Element.set_location | ( | self, | |
| locX, | |||
| locY | |||
| ) |
Setter for the element's location.
| locX | the element's location in X |
| locY | the element's location in Y |
| def bridges.element.Element.shape | ( | self | ) |
Getter for the element's shape type.
| def bridges.element.Element.shape | ( | self, | |
| shp | |||
| ) |
Setter for the element's shape.
| shp | the element's size (0-1.0) |
| def bridges.element.Element.size | ( | self | ) |
Getter for the element's size.
| def bridges.element.Element.size | ( | self, | |
| sz | |||
| ) |
Setter for the element's size.
| sz | the element's size (0.-50.) |
| def bridges.element.Element.value | ( | self, | |
| object | |||
| ) |
Getter for the value this element is holding.
| def bridges.element.Element.value | ( | self, | |
| val, | |||
| None | |||
| ) |
Setter for the value of an element.
| val | the value (generic, application specific object) this element will hold |
| def bridges.element.Element.visualizer | ( | self, | |
| ElementVisualizer | |||
| ) |
Getter for the element visualizer.
| def bridges.element.Element.visualizer | ( | self, | |
| vis | |||
| ) |
Setter function for this element visualizer.
| vis | the element visualizer |
| bridges.element.Element.color |
|
static |
| bridges.element.Element.opacity |
1.8.13