Bridges-C++
3.4.4
Bridges(C++ API)
|
#include <LinkVisualizer.h>
This class maintains the visual properties of links within data structures.
This class is used to keep the visual properties of links that are part of data structures such as linked lists, pointer based trees, link based graph representations, etc. Relevant attributes include color and thickness
Objects of this class are stored as properties of Elements. A user may manipulate the LinkVisualizer returned from the Element's getLinkVisualizer() method.
BRIDGES supports color of any legal named CSS or (R,G,B) triplets value. Check the Color class for details. Default: "steelblue".
Thickness values must range from ]0.0,10.0]. Default: 1.0
Public Member Functions | |
LinkVisualizer (Color col=DEFAULT_COLOR(), double th=DEFAULT_THICKNESS()) | |
Constructs a LinkVisualizer with the specified color and thickness. 8 The defaults will be used if not provided (black,1) More... | |
string | getLabel () const |
Return the link label. More... | |
void | setLabel (const string &lab) |
Sets label of the link. More... | |
void | setThickness (const double &th) |
double | getThickness () const |
Get the link thickness. More... | |
void | setColor (const Color &col) |
Set the link color. More... | |
void | setColor (const string &col) |
Set the color by name. More... | |
Color | getColor () const |
Return the link color. More... | |
Static Public Member Functions | |
static constexpr double | DEFAULT_THICKNESS () |
get default thickness of link (1.0) More... | |
static Color | DEFAULT_COLOR () |
get default color of link ("steelblue") More... | |
|
inline |
Constructs a LinkVisualizer with the specified color and thickness. 8 The defaults will be used if not provided (black,1)
col | Link color |
th | Link thickness |
|
inlinestatic |
get default color of link ("steelblue")
|
inlinestaticconstexpr |
get default thickness of link (1.0)
|
inline |
Return the link color.
|
inline |
Return the link label.
|
inline |
Get the link thickness.
|
inline |
Set the link color.
col | The color of the element |
|
inline |
Set the color by name.
col | The color name. See Color for supported names. |
|
inline |
Sets label of the link.
lab | The label of the link |
|
inline |
Set the link thickness Valid Range:]0.0,10.0] Default: 1
th | The size in pixels of the link's line weight |
string | If invalid thickness |