16 namespace datastructure {
138 vector<float> dims(4);
140 float length = 0.09 * fontSize * getLabel().size();
142 const float *location = getLocation();
143 dims[0] = location[0] - length / 2.;
144 dims[1] = location[1] + length / 2.;
145 dims[2] = dims[3] = location[1];
157 string shape_json = getSymbolAttributeRepresentation();
Label(string l)
Definition: Label.h:48
const string getSymbolRepresentation() const
This method returns the JSON representation of the shape.
Definition: Label.h:155
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:33
void setTextWidth(int w)
This method sets the text width.
Definition: Label.h:96
void setFontSize(int sz)
This method sets the font size.
Definition: Label.h:76
string getName() const
This method gets the name of the shape.
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()
This method gets the text width.
Definition: Label.h:106
vector< float > getDimensions() const
This method returns the bounding box dimensions of the shape.
Definition: Label.h:137
int getTextHeight()
This method gets the text height.
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()
This method gets the font size.
Definition: Label.h:86