![]() |
Bridges-Python 3.5.1
Bridges(Python API)
|
This class maintains the visual attributes of links that join bridges elements. More...
Public Member Functions | |
| None | __init__ (self) |
| Constructor for the link visualizer'. | |
| get_link_properties (self) | |
| Getter for the link properties. | |
| get_label (self) | |
| Getter for the link label. | |
| set_label (self, label) | |
| Setter for the element label. | |
Protected Attributes | |
| _color | |
| _thickness | |
| _label | |
Properties | |
| thickness = property | |
| Getter for the thickness of links visualization. | |
| color = property | |
| Getter for the color of the link in the visualization. | |
| opacity = property | |
| Getter for the element opacity. | |
| label = property | |
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)
| None bridges.link_visualizer.LinkVisualizer.__init__ | ( | self | ) |
Constructor for the link visualizer'.
| bridges.link_visualizer.LinkVisualizer.get_label | ( | self | ) |
Getter for the link label.
| bridges.link_visualizer.LinkVisualizer.get_link_properties | ( | self | ) |
Getter for the link properties.
| bridges.link_visualizer.LinkVisualizer.set_label | ( | self, | |
| label | |||
| ) |
Setter for the element label.
| label | link label (string) |
|
protected |
|
protected |
|
protected |
|
static |
Getter for the color of the link in the visualization.
|
static |
|
static |
Getter for the element opacity.
|
static |
Getter for the thickness of links visualization.