|
INET Framework for OMNeT++/OMNEST
|
#include <PlotFigure.h>
Classes | |
| struct | Tick |
Public Member Functions | |
| PlotFigure (const char *name=nullptr) | |
| virtual | ~PlotFigure () |
| virtual void | parse (cProperty *property) override |
| const char ** | getAllowedPropertyKeys () const override |
| virtual void | refreshDisplay () override |
| virtual void | setValue (int series, simtime_t timestamp, double value) override |
| const Rectangle & | getBounds () const |
| void | setBounds (const Rectangle &rect) |
| const Color & | getBackgrouncColor () const |
| void | setBackgroundColor (const Color &color) |
| double | getValueTickSize () const |
| void | setValueTickSize (double size) |
| simtime_t | getTimeWindow () const |
| void | setTimeWindow (simtime_t timeWindow) |
| simtime_t | getTimeTickSize () const |
| void | setTimeTickSize (simtime_t size) |
| const Color & | getLineColor () const |
| void | setLineColor (const Color &color) |
| double | getMinValue () const |
| void | setMinValue (double value) |
| double | getMaxValue () const |
| void | setMaxValue (double value) |
| 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) |
Public Member Functions inherited from inet::IIndicatorFigure | |
| virtual | ~IIndicatorFigure () |
| virtual int | getNumSeries () const |
Protected Member Functions | |
| void | redrawValueTicks () |
| void | redrawTimeTicks () |
| void | addChildren () |
| void | layout () |
| void | refresh () |
Private Attributes | |
| cPathFigure * | plotFigure |
| cTextFigure * | labelFigure |
| cRectangleFigure * | backgroundFigure |
| std::vector< Tick > | timeTicks |
| std::vector< Tick > | valueTicks |
| simtime_t | timeWindow = 10 |
| double | valueTickSize = 2.5 |
| simtime_t | timeTickSize = 3 |
| int | labelOffset = 0 |
| double | numberSizeFactor = 1 |
| double | min = 0 |
| double | max = 10 |
| std::list< std::pair< simtime_t, double > > | values |
| PlotFigure::PlotFigure | ( | const char * | name = nullptr | ) |
|
protected |
Referenced by PlotFigure().
|
override |
| const cFigure::Color & PlotFigure::getBackgrouncColor | ( | ) | const |
| const cFigure::Rectangle & PlotFigure::getBounds | ( | ) | const |
Referenced by layout(), parse(), redrawTimeTicks(), redrawValueTicks(), and refresh().
| const char * PlotFigure::getLabel | ( | ) | const |
| const cFigure::Color & PlotFigure::getLabelColor | ( | ) | const |
| const cFigure::Font & PlotFigure::getLabelFont | ( | ) | const |
| const int PlotFigure::getLabelOffset | ( | ) | const |
| const cFigure::Color & PlotFigure::getLineColor | ( | ) | const |
| double PlotFigure::getMaxValue | ( | ) | const |
| double PlotFigure::getMinValue | ( | ) | const |
| simtime_t PlotFigure::getTimeTickSize | ( | ) | const |
| simtime_t PlotFigure::getTimeWindow | ( | ) | const |
| double PlotFigure::getValueTickSize | ( | ) | const |
|
protected |
Referenced by setBounds(), setLabelOffset(), setMaxValue(), setMinValue(), and setValueTickSize().
|
overridevirtual |
|
protected |
Referenced by refresh().
|
protected |
Referenced by layout().
|
protected |
Referenced by parse(), refreshDisplay(), setTimeTickSize(), setTimeWindow(), and setValue().
|
overridevirtual |
Reimplemented from inet::IIndicatorFigure.
| void PlotFigure::setBackgroundColor | ( | const Color & | color | ) |
Referenced by parse().
| void PlotFigure::setBounds | ( | const Rectangle & | rect | ) |
Referenced by parse().
| void PlotFigure::setLabel | ( | const char * | text | ) |
Referenced by parse().
| void PlotFigure::setLabelColor | ( | const Color & | color | ) |
Referenced by parse().
| void PlotFigure::setLabelFont | ( | const Font & | font | ) |
Referenced by parse().
| void PlotFigure::setLabelOffset | ( | int | offset | ) |
Referenced by parse().
| void PlotFigure::setLineColor | ( | const Color & | color | ) |
Referenced by parse().
| void PlotFigure::setMaxValue | ( | double | value | ) |
Referenced by parse().
| void PlotFigure::setMinValue | ( | double | value | ) |
Referenced by parse().
| void PlotFigure::setTimeTickSize | ( | simtime_t | size | ) |
Referenced by parse().
| void PlotFigure::setTimeWindow | ( | simtime_t | timeWindow | ) |
Referenced by parse().
|
overridevirtual |
Implements inet::IIndicatorFigure.
| void PlotFigure::setValueTickSize | ( | double | size | ) |
Referenced by parse().
|
private |
Referenced by addChildren(), getBackgrouncColor(), getBounds(), setBackgroundColor(), and setBounds().
|
private |
Referenced by addChildren(), getLabel(), getLabelColor(), getLabelFont(), layout(), setLabel(), setLabelColor(), and setLabelFont().
|
private |
Referenced by getLabelOffset(), layout(), and setLabelOffset().
|
private |
Referenced by getMaxValue(), redrawValueTicks(), refresh(), and setMaxValue().
|
private |
Referenced by getMinValue(), redrawValueTicks(), refresh(), and setMinValue().
|
private |
Referenced by parse(), redrawTimeTicks(), and redrawValueTicks().
|
private |
Referenced by addChildren(), getLineColor(), redrawTimeTicks(), redrawValueTicks(), refresh(), and setLineColor().
|
private |
Referenced by layout(), and redrawTimeTicks().
|
private |
Referenced by getTimeTickSize(), redrawTimeTicks(), and setTimeTickSize().
|
private |
Referenced by getTimeWindow(), redrawTimeTicks(), refresh(), and setTimeWindow().
|
private |
Referenced by refresh(), and setValue().
|
private |
Referenced by redrawValueTicks().
|
private |
Referenced by getValueTickSize(), redrawValueTicks(), and setValueTickSize().