#include <DrawAbleString.h>
Public Member Functions | |
DrawAbleString (StringTreeNode *ref_, float density) | |
~DrawAbleString (void) | |
void | setPosition (float x, float y) |
void | setSize (float x, float y) |
StringTreeNode * | getStringReference () |
void | setGraphicsRef (QGraphicsTextItem *ref_) |
QString | getName () |
Private Attributes | |
float | absoluteDensity |
float | sizeRel [2] |
StringTreeNode * | elemRef |
QGraphicsTextItem * | graphicsRef |
DrawAbleString::DrawAbleString | ( | StringTreeNode * | ref_, | |
float | density | |||
) |
Constructs a new DrawAbleString, where ref_ is the reference to the target tree node, and density the relative density of the searched term throughout the text
DrawAbleString::~DrawAbleString | ( | void | ) |
QString DrawAbleString::getName | ( | ) |
Returns the contained string
StringTreeNode * DrawAbleString::getStringReference | ( | ) |
Returns a reference to the referenced tree node
void DrawAbleString::setGraphicsRef | ( | QGraphicsTextItem * | ref_ | ) |
Assigns a GraphicsTextItem to the current container
void DrawAbleString::setPosition | ( | float | x, | |
float | y | |||
) |
Sets the current screen position of the string relative coordinates
void DrawAbleString::setSize | ( | float | x, | |
float | y | |||
) |
Sets the size of the current string in relative coordinates, where x is the width, and y is the height
float DrawAbleString::absoluteDensity [private] |
StringTreeNode* DrawAbleString::elemRef [private] |
QGraphicsTextItem* DrawAbleString::graphicsRef [private] |
float DrawAbleString::sizeRel[2] [private] |