INET Framework for OMNeT++/OMNEST
|
#include <ProgressMeterFigure.h>
Public Member Functions | |
ProgressMeterFigure (const char *name=nullptr) | |
virtual | ~ProgressMeterFigure () |
virtual void | setValue (int series, simtime_t timestamp, double value) override |
const Color & | getBackgroundColor () const |
void | setBackgroundColor (const Color &color) |
const Color & | getStripColor () const |
void | setStripColor (const Color &color) |
double | getCornerRadius () const |
void | setCornerRadius (double radius) |
double | getBorderWidth () const |
void | setBorderWidth (double width) |
const char * | getText () const |
void | setText (const char *text) |
const Font & | getTextFont () const |
void | setTextFont (const Font &font) |
const Color & | getTextColor () const |
void | setTextColor (const Color &color) |
const char * | getLabel () const |
void | setLabel (const char *text) |
const int | getLabelOffset () const |
void | setLabelOffset (int) |
const Font & | getLabelFont () const |
void | setLabelFont (const Font &font) |
const Color & | getLabelColor () const |
void | setLabelColor (const Color &color) |
const Rectangle & | getBounds () const |
void | setBounds (const Rectangle &bounds) |
double | getMinValue () const |
void | setMinValue (double value) |
double | getMaxValue () const |
void | setMaxValue (double value) |
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 |
void | addChildren () |
void | refresh () |
void | layout () |
Private Attributes | |
cRectangleFigure * | borderFigure |
cRectangleFigure * | stripFigure |
cRectangleFigure * | backgroundFigure |
cTextFigure * | valueFigure |
cTextFigure * | labelFigure |
double | min = 0 |
double | max = 100 |
double | value = NaN |
int | labelOffset = 10 |
std::string | textFormat = "%g" |
ProgressMeterFigure::ProgressMeterFigure | ( | const char * | name = nullptr | ) |
|
protected |
Referenced by ProgressMeterFigure().
|
overrideprotectedvirtual |
const cFigure::Color & ProgressMeterFigure::getBackgroundColor | ( | ) | const |
double ProgressMeterFigure::getBorderWidth | ( | ) | const |
const cFigure::Rectangle & ProgressMeterFigure::getBounds | ( | ) | const |
Referenced by parse(), and setLabelOffset().
double ProgressMeterFigure::getCornerRadius | ( | ) | const |
const char * ProgressMeterFigure::getLabel | ( | ) | const |
const cFigure::Color & ProgressMeterFigure::getLabelColor | ( | ) | const |
const cFigure::Font & ProgressMeterFigure::getLabelFont | ( | ) | const |
const int ProgressMeterFigure::getLabelOffset | ( | ) | const |
double ProgressMeterFigure::getMaxValue | ( | ) | const |
double ProgressMeterFigure::getMinValue | ( | ) | const |
const cFigure::Color & ProgressMeterFigure::getStripColor | ( | ) | const |
const char * ProgressMeterFigure::getText | ( | ) | const |
Referenced by refresh().
const cFigure::Color & ProgressMeterFigure::getTextColor | ( | ) | const |
const cFigure::Font & ProgressMeterFigure::getTextFont | ( | ) | const |
|
protected |
Referenced by setBounds().
|
overrideprotectedvirtual |
|
protected |
Referenced by setBounds(), setMaxValue(), setMinValue(), setText(), and setValue().
void ProgressMeterFigure::setBackgroundColor | ( | const Color & | color | ) |
Referenced by parse().
void ProgressMeterFigure::setBorderWidth | ( | double | width | ) |
Referenced by parse().
void ProgressMeterFigure::setBounds | ( | const Rectangle & | bounds | ) |
Referenced by parse().
void ProgressMeterFigure::setCornerRadius | ( | double | radius | ) |
Referenced by parse().
void ProgressMeterFigure::setLabel | ( | const char * | text | ) |
Referenced by parse().
void ProgressMeterFigure::setLabelFont | ( | const Font & | font | ) |
Referenced by parse().
void ProgressMeterFigure::setLabelOffset | ( | int | offset | ) |
Referenced by parse().
void ProgressMeterFigure::setMaxValue | ( | double | value | ) |
Referenced by parse().
void ProgressMeterFigure::setMinValue | ( | double | value | ) |
Referenced by parse().
void ProgressMeterFigure::setText | ( | const char * | text | ) |
Referenced by parse().
void ProgressMeterFigure::setTextFont | ( | const Font & | font | ) |
Referenced by parse().
|
overridevirtual |
|
private |
Referenced by addChildren(), getBackgroundColor(), getCornerRadius(), layout(), setBackgroundColor(), and setCornerRadius().
|
private |
Referenced by addChildren(), getBorderWidth(), getBounds(), layout(), refresh(), setBorderWidth(), setBounds(), and setCornerRadius().
|
private |
Referenced by addChildren(), getLabel(), getLabelColor(), getLabelFont(), layout(), setLabel(), setLabelColor(), setLabelFont(), and setLabelOffset().
|
private |
Referenced by getLabelOffset(), layout(), and setLabelOffset().
|
private |
Referenced by getMaxValue(), refresh(), and setMaxValue().
|
private |
Referenced by getMinValue(), refresh(), and setMinValue().
|
private |
Referenced by addChildren(), getStripColor(), layout(), refresh(), setCornerRadius(), and setStripColor().
|
private |
Referenced by refresh(), setMaxValue(), setMinValue(), and setValue().
|
private |
Referenced by addChildren(), getTextColor(), getTextFont(), layout(), refresh(), setTextColor(), and setTextFont().