![]() |
Bridges-Python-3.0.2
3.0.2
Bridges(PythonAPI)
|
This is the main superclass in BRIDGES for deriving a number of elements used in building data structures, viz., arrays, lists, trees and graphs.
SLelement, DLelement, CircSLelement, CircDLelement, MLelement, TreeElement, BinTreeElement, BSTElement, AVLTreeElement and KDTreeElement are all subclasses (see class hierarchy above). Element contains two visualizer objects (ElementVisualizer, LinkVisualizer) for specifying visual attributes for nodes and links respectively. It also contains a label that that can be displayed in BRIDGES visualizations.
All the tutorials under
http://bridgesuncc.github.io/tutorials/Overview.html
illustrate examples of using different types of Element objects and how to manipulate their visual attributes.
2017, 2018, 6/24/19
Public Member Functions | |
def | get_data_structure_type (self) |
Get the data structure representation. More... | |
def | __init__ (self, kwargs) |
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) |
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 | |||
) |
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 | |||
) |
def bridges.element.Element.identifier | ( | self, | |
str | |||
) |
Getter for the element identifier.
def bridges.element.Element.identifier | ( | self, | |
id | |||
) |
Setter for the element identifier.
int | 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.
str | 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 |