1 #ifndef LINK_VISUALIZER_H 2 #define LINK_VISUALIZER_H 7 namespace datastructure {
33 return Color(
"steelblue");
82 if (th < 1 || 10 < th)
83 throw "Invalid Thickness Value.. " + to_string(th) +
84 " Must be in the [1.0,10.0] range";
void setThickness(const double &th)
Definition: LinkVisualizer.h:81
double getThickness() const
Get the link thickness.
Definition: LinkVisualizer.h:92
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 ...
Definition: LinkVisualizer.h:51
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:116
void setLabel(const string &lab)
Sets label of the link.
Definition: LinkVisualizer.h:70
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:108
static constexpr double DEFAULT_THICKNESS()
Definition: LinkVisualizer.h:29
void setColor(const Color &col)
Set the link color.
Definition: LinkVisualizer.h:101
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:61
static Color DEFAULT_COLOR()
Definition: LinkVisualizer.h:32