1 #ifndef LINK_VISUALIZER_H
2 #define LINK_VISUALIZER_H
7 namespace datastructure {
39 return Color(
"steelblue");
90 if (th < 0.0 || 10 < th)
91 throw "Invalid Thickness Value.. " + to_string(th) +
92 " Must be in the ]0.0,10.0] range";
This class represents Color, and supports rgba, hexadecimal and named color values.
Definition: Color.h:50
This class maintains the visual properties of links within data structures.
Definition: LinkVisualizer.h:26
void setLabel(const string &lab)
Sets label of the link.
Definition: LinkVisualizer.h:78
static constexpr double DEFAULT_THICKNESS()
get default thickness of link (1.0)
Definition: LinkVisualizer.h:32
static Color DEFAULT_COLOR()
get default color of link ("steelblue")
Definition: LinkVisualizer.h:38
double getThickness() const
Get the link thickness.
Definition: LinkVisualizer.h:101
void setThickness(const double &th)
Definition: LinkVisualizer.h:89
string getLabel() const
Return the link label.
Definition: LinkVisualizer.h:69
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
Color getColor() const
Return the link color.
Definition: LinkVisualizer.h:125
void setColor(const Color &col)
Set the link color.
Definition: LinkVisualizer.h:110
void setColor(const string &col)
Set the color by name.
Definition: LinkVisualizer.h:117
Support for drawing Bar charts.
Definition: alltypes.h:4