Bridges-Python 3.5.1
Bridges(Python API)
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | Properties | List of all members
bridges.link_visualizer.LinkVisualizer Class Reference

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
 

Detailed Description

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)

Author
Mihai Mehedint, Kalpathi Subramanian, Matthew McQuaigue
Date
2018, 6/24/19
See also
Example Tutorial at
https://bridgesuncc.github.io/tutorials/SinglyLinkedList.html

Constructor & Destructor Documentation

◆ __init__()

None bridges.link_visualizer.LinkVisualizer.__init__ (   self)

Constructor for the link visualizer'.

Retruns
None

Member Function Documentation

◆ get_label()

bridges.link_visualizer.LinkVisualizer.get_label (   self)

Getter for the link label.

Returns
string link label

◆ get_link_properties()

bridges.link_visualizer.LinkVisualizer.get_link_properties (   self)

Getter for the link properties.

Returns
dict link properties

◆ set_label()

bridges.link_visualizer.LinkVisualizer.set_label (   self,
  label 
)

Setter for the element label.

Parameters
labellink label (string)
Returns
None

Member Data Documentation

◆ _color

bridges.link_visualizer.LinkVisualizer._color
protected

◆ _label

bridges.link_visualizer.LinkVisualizer._label
protected

◆ _thickness

bridges.link_visualizer.LinkVisualizer._thickness
protected

Property Documentation

◆ color

bridges.link_visualizer.LinkVisualizer.color = property
static

Getter for the color of the link in the visualization.

Returns
Color

◆ label

bridges.link_visualizer.LinkVisualizer.label = property
static

◆ opacity

bridges.link_visualizer.LinkVisualizer.opacity = property
static

Getter for the element opacity.

Returns
opacity element opacity

◆ thickness

bridges.link_visualizer.LinkVisualizer.thickness = property
static

Getter for the thickness of links visualization.

Returns
float the thickness

The documentation for this class was generated from the following file: