![]() |
Bridges-C++
3.1.1
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 "#hexadecimal" value. Check Color for details. Default: opaque black.
Thickness values must range from [1.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. 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 () |
| static Color | DEFAULT_COLOR () |
|
inline |
Constructs a LinkVisualizer with the specified color and thickness. The defaults will be used if not provided (black,1)
| col | Link color |
| th | Link thickness |
|
inlinestatic |
|
inlinestatic |
|
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:[1,10] Default: 1
| th | The size in pixels of the link's line weight |
| string | If invalid thickness |
1.8.13