#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 |
|
Constructor |
|
Set specific widget properties. Inherited from YWidget. Reimplemented from YWidget. |
|
Perform a display update after values and/or labels have changed. Overwrite this method and do your actual drawing here. |
|
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. |
|
Parse and store new labels. |
|
Parse and store new values. |
|
Returns the current number of bar segments, i.e. the nuber of values. |
|
Returns the value of segment no. n or -1 if there are not that many segments. |
|
Returns a descriptive name of this widget class for logging, debugging etc. Reimplemented from YWidget. |
|
|
|
|