#include <YBarGraph.h>
Inheritance diagram for YBarGraph:

Public Member Functions | |
| YBarGraph (const YWidgetOpt &opt) | |
| virtual char * | widgetClass () |
| int | segments () |
| int | value (int n) |
| string | label (int n) |
| void | parseValuesList (const YCPList &newValues) |
| void | parseLabelsList (const YCPList &newLabels) |
| virtual void | doUpdate () |
Private Member Functions | |
| YCPValue | changeWidget (const YCPSymbol &property, const YCPValue &newValue) |
Private Attributes | |
| vector< int > | _values |
| vector< string > | _labels |
| YBarGraph::YBarGraph | ( | const YWidgetOpt & | opt | ) |
Constructor
| virtual char* YBarGraph::widgetClass | ( | ) | [inline, virtual] |
Returns a descriptive name of this widget class for logging, debugging etc.
Reimplemented from YWidget.
| int YBarGraph::segments | ( | ) |
Returns the current number of bar segments, i.e. the nuber of values.
| int YBarGraph::value | ( | int | n | ) |
Returns the value of segment no. n or -1 if there are not that many segments.
| string YBarGraph::label | ( | int | n | ) |
Returns the label of segment no. n or an empty string if there are not that many segments or the specified segment doesn't have a label.
| void YBarGraph::parseValuesList | ( | const YCPList & | newValues | ) |
Parse and store new values.
| void YBarGraph::parseLabelsList | ( | const YCPList & | newLabels | ) |
Parse and store new labels.
| void YBarGraph::doUpdate | ( | ) | [virtual] |
Perform a display update after values and/or labels have changed. Overwrite this method and do your actual drawing here.
vector<int> YBarGraph::_values [private] |
vector<string> YBarGraph::_labels [private] |
1.5.0