56 virtual const char *
widgetClass()
const {
return "YBarGraph"; }
96 void setValue(
int segmentIndex,
int newValue );
107 void setLabel(
int segmentIndex,
const std::string & newLabel );
137 virtual bool setProperty(
const std::string & propertyName,
170 void updateDisplay();
200 const std::string &
label = std::string(),
212 int value()
const {
return _value; }
217 void setValue(
int newValue ) { _value = newValue; }
223 std::string
label()
const {
return _label; }
229 void setLabel(
const std::string & newLabel ) { _label = newLabel; }
320 #endif // YBarGraph_h
bool hasSegmentColor() const
virtual bool setProperty(const std::string &propertyName, const YPropertyValue &val)
YColor segmentColor() const
virtual YPropertyValue getProperty(const std::string &propertyName)
YBarGraphSegment(int value=0, const std::string &label=std::string(), const YColor &segmentColor=YColor(), const YColor &textColor=YColor())
virtual const YPropertySet & propertySet()
void setLabel(int segmentIndex, const std::string &newLabel)
virtual const char * widgetClass() const
void setLabel(const std::string &newLabel)
void setSegmentColor(int segmentIndex, const YColor &color)
void setTextColor(int segmentIndex, const YColor &color)
void setTextColor(const YColor &color)
bool hasTextColor() const
const YBarGraphSegment & segment(int segmentIndex) const
std::string label() const
void setValue(int segmentIndex, int newValue)
YBarGraph(YWidget *parent)
void addSegment(const YBarGraphSegment &segment)
void setSegmentColor(const YColor &color)
virtual void doUpdate()=0
YBarGraphMultiUpdate(YBarGraph *barGraph)
void setValue(int newValue)