INET Framework for OMNeT++/OMNEST
|
#include <CounterFigure.h>
Classes | |
struct | Digit |
Public Member Functions | |
CounterFigure (const char *name=nullptr) | |
virtual | ~CounterFigure () |
virtual void | setValue (int series, simtime_t timestamp, double value) override |
const Color & | getBackgroundColor () const |
void | setBackgroundColor (const Color &color) |
int | getDecimalPlaces () const |
void | setDecimalPlaces (int radius) |
Color | getDigitBackgroundColor () const |
void | setDigitBackgroundColor (const Color &color) |
Color | getDigitBorderColor () const |
void | setDigitBorderColor (const Color &color) |
Font | getDigitFont () const |
void | setDigitFont (const Font &font) |
Color | getDigitColor () const |
void | setDigitColor (const Color &color) |
const char * | getLabel () const |
void | setLabel (const char *text) |
const int | getLabelOffset () const |
void | setLabelOffset (int offset) |
const Font & | getLabelFont () const |
void | setLabelFont (const Font &font) |
const Color & | getLabelColor () const |
void | setLabelColor (const Color &color) |
const Point & | getLabelPos () const |
void | setLabelPos (const Point &pos) |
Anchor | getLabelAnchor () const |
void | setLabelAnchor (Anchor anchor) |
Point | getPos () const |
void | setPos (const Point &bounds) |
Anchor | getAnchor () const |
void | setAnchor (Anchor anchor) |
Public Member Functions inherited from inet::IIndicatorFigure | |
virtual | ~IIndicatorFigure () |
virtual int | getNumSeries () const |
virtual void | refreshDisplay () |
Protected Member Functions | |
virtual void | parse (cProperty *property) override |
virtual const char ** | getAllowedPropertyKeys () const override |
Point | calculateRealPos (const Point &pos) |
void | calculateBounds () |
void | addChildren () |
void | refresh () |
void | layout () |
Private Attributes | |
cRectangleFigure * | backgroundFigure |
std::vector< Digit > | digits |
cTextFigure * | labelFigure |
double | value = NaN |
int | labelOffset = 10 |
Anchor | anchor = ANCHOR_NW |
CounterFigure::CounterFigure | ( | const char * | name = nullptr | ) |
|
protected |
Referenced by CounterFigure().
|
protected |
Referenced by setAnchor(), setDecimalPlaces(), and setDigitFont().
|
protected |
Referenced by calculateBounds(), and setPos().
|
overrideprotectedvirtual |
cFigure::Anchor CounterFigure::getAnchor | ( | ) | const |
const cFigure::Color & CounterFigure::getBackgroundColor | ( | ) | const |
int CounterFigure::getDecimalPlaces | ( | ) | const |
cFigure::Color CounterFigure::getDigitBackgroundColor | ( | ) | const |
Referenced by setDecimalPlaces().
cFigure::Color CounterFigure::getDigitBorderColor | ( | ) | const |
cFigure::Color CounterFigure::getDigitColor | ( | ) | const |
cFigure::Font CounterFigure::getDigitFont | ( | ) | const |
Referenced by calculateBounds(), layout(), and setDecimalPlaces().
const char * CounterFigure::getLabel | ( | ) | const |
Anchor CounterFigure::getLabelAnchor | ( | ) | const |
const cFigure::Color & CounterFigure::getLabelColor | ( | ) | const |
const cFigure::Font & CounterFigure::getLabelFont | ( | ) | const |
const int CounterFigure::getLabelOffset | ( | ) | const |
const Point& CounterFigure::getLabelPos | ( | ) | const |
cFigure::Point CounterFigure::getPos | ( | ) | const |
|
protected |
Referenced by setAnchor(), setDecimalPlaces(), setDigitFont(), and setPos().
|
overrideprotectedvirtual |
|
protected |
Referenced by parse(), and setValue().
void CounterFigure::setDecimalPlaces | ( | int | radius | ) |
Referenced by parse().
void CounterFigure::setDigitFont | ( | const Font & | font | ) |
Referenced by parse().
void CounterFigure::setLabel | ( | const char * | text | ) |
Referenced by parse().
void CounterFigure::setLabelAnchor | ( | Anchor | anchor | ) |
void CounterFigure::setLabelFont | ( | const Font & | font | ) |
Referenced by parse().
void CounterFigure::setLabelOffset | ( | int | offset | ) |
Referenced by parse().
void CounterFigure::setLabelPos | ( | const Point & | pos | ) |
void CounterFigure::setPos | ( | const Point & | bounds | ) |
Referenced by parse().
|
overridevirtual |
|
private |
Referenced by calculateRealPos(), getAnchor(), getPos(), and setAnchor().
|
private |
Referenced by addChildren(), calculateBounds(), calculateRealPos(), getBackgroundColor(), getPos(), layout(), setBackgroundColor(), setLabelOffset(), and setPos().
|
private |
|
private |
Referenced by addChildren(), getLabel(), getLabelColor(), getLabelFont(), layout(), setLabel(), setLabelColor(), setLabelFont(), and setLabelOffset().
|
private |
Referenced by getLabelOffset(), layout(), and setLabelOffset().
|
private |
Referenced by refresh(), and setValue().