16 namespace datastructure {
137 vector<float> dims(4);
139 float length = 0.09 * fontSize * getLabel().size();
141 const float *location = getLocation();
142 dims[0] = location[0] - length / 2.;
143 dims[1] = location[1] + length / 2.;
144 dims[2] = dims[3] = location[1];
156 string shape_json = getSymbolAttributeRepresentation();
Label(string l)
Definition: Label.h:48
const string getSymbolRepresentation() const
Definition: Label.h:154
void setTextHeight(int h)
Definition: Label.h:116
const string COLON
Definition: DataStructure.h:51
const string CLOSE_CURLY
Definition: DataStructure.h:53
This is an abstract class for deriving a number of Symbol shape objects, for use in a SymbolCollectio...
Definition: Symbol.h:32
void setTextWidth(int w)
Definition: Label.h:96
void setFontSize(int sz)
Definition: Label.h:76
string getName() const
Definition: Label.h:66
these methods convert byte arrays in to base64 codes and are used in BRIDGES to represent the color a...
Definition: alltypes.h:4
int getTextWidth()
Definition: Label.h:106
vector< float > getDimensions() const
Definition: Label.h:136
int getTextHeight()
Definition: Label.h:126
This is a label object and used for defining text labels as part of the symbol collection.
Definition: Label.h:25
const string COMMA
Definition: DataStructure.h:50
const string QUOTE
Definition: DataStructure.h:49
string getDataStructType()
Definition: Label.h:57
Label()
Definition: Label.h:37
int getFontSize()
Definition: Label.h:86