Bridges-Python
3.4.4
Bridges(Python API)
|
This class maintains the visual attributes of links that join bridges elements.
Visual properties include color, thickness, and opacity. Objects of this class are stored as part of the Element class. Generally, a user will manipulate the LinkVisualizer returned from the Element's getLinkVisualizer(Element it) method (which it is the bridges element this element is linked to), and then set attributes using its methods. Links are utilized in all types of linked lists, tree and graph structures.
Supported attribute values are as follows:
Supported Colors by name: CSS colors; see the Color class for full list, or at https
Color by RGBA Specification : Range: 0-255 for each component
Thickness: Range : 0.0-50.0
Opacity: Range (0.0-1.0)
Public Member Functions | |
None | __init__ (self) |
Constructor for the link visualizer'. More... | |
float | thickness (self) |
Getter for the thickness of links visualization. More... | |
def | thickness (self, th) |
Setter for the thickness of links in visualization. More... | |
Color | color (self) |
Getter for the color of the link in the visualization. More... | |
def | color (self, *args, **kwargs) |
Setter for the color of the element in the bridges visualization. More... | |
def | opacity (self) |
Getter for the element opacity. More... | |
def | opacity (self, opacity) |
Setter for the elementopacity. More... | |
def | label (self) |
def | label (self, l) |
def | get_link_properties (self) |
Getter for the link properties. More... | |
def | get_label (self) |
Getter for the link label. More... | |
def | set_label (self, label) |
Setter for the element label. More... | |
Public Attributes | |
label | |
None bridges.link_visualizer.LinkVisualizer.__init__ | ( | self | ) |
Constructor for the link visualizer'.
Color bridges.link_visualizer.LinkVisualizer.color | ( | self | ) |
Getter for the color of the link in the visualization.
def bridges.link_visualizer.LinkVisualizer.color | ( | self, | |
* | args, | ||
** | kwargs | ||
) |
Setter for the color of the element in the bridges visualization.
(optional) list: requires either 3 ints 0-255 for RGB and an optional float 0.0-1.0 for alpha EX: color = [0, 255, 0, 1.0]. (optional) str: string representing the element color. Supported web colors: https://developer.mozilla.org/en-US/docs/Web/CSS/color_value
ValueError | if the color name provided is not available |
def bridges.link_visualizer.LinkVisualizer.get_label | ( | self | ) |
Getter for the link label.
def bridges.link_visualizer.LinkVisualizer.get_link_properties | ( | self | ) |
Getter for the link properties.
def bridges.link_visualizer.LinkVisualizer.label | ( | self | ) |
def bridges.link_visualizer.LinkVisualizer.label | ( | self, | |
l | |||
) |
def bridges.link_visualizer.LinkVisualizer.opacity | ( | self | ) |
Getter for the element opacity.
def bridges.link_visualizer.LinkVisualizer.opacity | ( | self, | |
opacity | |||
) |
Setter for the elementopacity.
opacity | opacity value (0-1.0) to set |
def bridges.link_visualizer.LinkVisualizer.set_label | ( | self, | |
label | |||
) |
Setter for the element label.
label | link label (string) |
float bridges.link_visualizer.LinkVisualizer.thickness | ( | self | ) |
Getter for the thickness of links visualization.
def bridges.link_visualizer.LinkVisualizer.thickness | ( | self, | |
th | |||
) |
Setter for the thickness of links in visualization.
(float) th: the thickness to be applied to the link
bridges.link_visualizer.LinkVisualizer.label |