1 #ifndef LINK_VISUALIZER_H 2 #define LINK_VISUALIZER_H 7 namespace datastructure {
39 return Color(
"steelblue");
90 if (th < 1 || 10 < th)
91 throw "Invalid Thickness Value.. " + to_string(th) +
92 " Must be in the [1.0,10.0] range";
void setThickness(const double &th)
Definition: LinkVisualizer.h:89
double getThickness() const
Get the link thickness.
Definition: LinkVisualizer.h:100
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 no...
Definition: LinkVisualizer.h:59
This class represents Color, and supports rgba, hexadecimal and named color values.
Definition: Color.h:51
Color getColor() const
Return the link color.
Definition: LinkVisualizer.h:124
void setLabel(const string &lab)
Sets label of the link.
Definition: LinkVisualizer.h:78
these methods convert byte arrays in to base64 codes and are used in BRIDGES to represent the color a...
Definition: alltypes.h:4
void setColor(const string &col)
Set the color by name.
Definition: LinkVisualizer.h:116
static constexpr double DEFAULT_THICKNESS()
get default thickness of link (1.0)
Definition: LinkVisualizer.h:32
void setColor(const Color &col)
Set the link color.
Definition: LinkVisualizer.h:109
This class maintains the visual properties of links within data structures.
Definition: LinkVisualizer.h:26
string getLabel() const
Return the link label.
Definition: LinkVisualizer.h:69
static Color DEFAULT_COLOR()
get default color of link ("steelblue")
Definition: LinkVisualizer.h:38