Bridges-Python
3.4.4
Bridges(Python API)
|
Public Member Functions | |
str | get_data_structure_type (self) |
Get the data structure representation. More... | |
None | __init__ (self, **kwargs) |
Element constructor. More... | |
object | value (self) |
Getter for the value this element is holding. More... | |
None | value (self, val) |
Setter for the value of an element. More... | |
str | identifier (self) |
Getter for the element identifier. More... | |
None | identifier (self, int id) |
Setter for the element identifier. More... | |
ElementVisualizer | visualizer (self) |
Getter for the element visualizer. More... | |
None | visualizer (self, ElementVisualizer vis) |
Setter function for this element visualizer. More... | |
LinkVisualizer | get_link_visualizer (self, el) |
None | set_link_visualizer (self, el) |
Setter for the link visualizer of this element. More... | |
None | 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... | |
int | 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 |
None bridges.element.Element.__init__ | ( | self, | |
** | kwargs | ||
) |
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
Reimplemented in bridges.tree_element.TreeElement, bridges.sl_element.SLelement, bridges.ml_element.MLelement, bridges.kd_tree_element.KDTreeElement, bridges.circ_sl_element.CircSLelement, bridges.circ_dl_element.CircDLelement, bridges.bst_element.BSTElement, and bridges.bin_tree_element.BinTreeElement.
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 |
str bridges.element.Element.get_data_structure_type | ( | self | ) |
Get the data structure representation.
Reimplemented in bridges.tree_element.TreeElement, bridges.sl_element.SLelement, bridges.ml_element.MLelement, bridges.kd_tree_element.KDTreeElement, bridges.dl_element.DLelement, bridges.circ_sl_element.CircSLelement, bridges.circ_dl_element.CircDLelement, bridges.bst_element.BSTElement, bridges.bin_tree_element.BinTreeElement, and bridges.avl_tree_element.AVLTreeElement.
def bridges.element.Element.get_element_representation | ( | self | ) |
Getter for the element's JSON representation (for internal use)
Reimplemented in bridges.kd_tree_element.KDTreeElement, bridges.bst_element.BSTElement, and bridges.avl_tree_element.AVLTreeElement.
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 |
LinkVisualizer bridges.element.Element.get_link_visualizer | ( | self, | |
el | |||
) |
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.
int bridges.element.Element.id | ( | self | ) |
Get numer of ids of element object.
str bridges.element.Element.identifier | ( | self | ) |
Getter for the element identifier.
None bridges.element.Element.identifier | ( | self, | |
int | 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) |
None bridges.element.Element.remove_link_visualizer | ( | self, | |
el | |||
) |
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
None bridges.element.Element.set_link_visualizer | ( | self, | |
el | |||
) |
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.) |
object bridges.element.Element.value | ( | self | ) |
Getter for the value this element is holding.
Reimplemented in bridges.sl_element.SLelement.
None bridges.element.Element.value | ( | self, | |
val | |||
) |
Setter for the value of an element.
val | the value (generic, application specific object) this element will hold |
Reimplemented in bridges.sl_element.SLelement.
ElementVisualizer bridges.element.Element.visualizer | ( | self | ) |
Getter for the element visualizer.
None bridges.element.Element.visualizer | ( | self, | |
ElementVisualizer | vis | ||
) |
Setter function for this element visualizer.
vis | the element visualizer |
bridges.element.Element.color |
|
static |
bridges.element.Element.opacity |