![]() |
Bridges-Python 3.5.0-dev1
Bridges(Python API)
|
This class is used to store the visualization elements on the for the bridges Visualization, including the color, shape, opacity, and size of the node. More...
Public Member Functions | |
__init__ (self, color="green", shape="circle", size=10.0, opacity=1.0) | |
ElementVisualizer constuctor. | |
set_location (self, x, y) | |
Setter for the location of the element. | |
Public Attributes | |
prop | |
Protected Attributes | |
_color | |
_shape | |
_size | |
_opacity | |
_locationX | |
_locationY | |
Properties | |
size = property | |
Getter for the elements size. | |
color = property | |
Getter for the color of the element in the bridges visualization. | |
shape = property | |
Getter for the shape of the element. | |
opacity = property | |
Getter for the opacity of the element. | |
location_x = property | |
Getter for the X location of element. | |
location_y = property | |
Getter for the y location of the element. | |
This class is used to store the visualization elements on the for the bridges Visualization, including the color, shape, opacity, and size of the node.
Supported named colors: CSS colors. Check
Color by RGBA Specification : Range: 0-255 for each component
Thickness: Range : 0.0-50.0
Opacity: Range (0.0-1.0)
Supported Shapes: "circle", "square", "diamond", "cross", "triangle", "star", "wye".
Objects of this class are stored as properties of all Element subclasses. Generally, you will manipulating the ElementVisualizer returned from the Element getVisualizer() method, and then call the setVisualizer() method on the Element after changes have been made.
bridges.element_visualizer.ElementVisualizer.__init__ | ( | self, | |
color = "green" , |
|||
shape = "circle" , |
|||
size = 10.0 , |
|||
opacity = 1.0 |
|||
) |
ElementVisualizer constuctor.
(str) color: color for this element (str) shape: the shape of the element (float) size: the element size (float) opacity: the element opacity
bridges.element_visualizer.ElementVisualizer.set_location | ( | self, | |
x, | |||
y | |||
) |
Setter for the location of the element.
(int) x: x location (int) y: y location
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
bridges.element_visualizer.ElementVisualizer.prop |
|
static |
Getter for the color of the element in the bridges visualization.
|
static |
Getter for the X location of element.
|
static |
Getter for the y location of the element.
|
static |
Getter for the opacity of the element.
|
static |
Getter for the shape of the element.
|
static |
Getter for the elements size.