The ColorManager class encapsulates various color management tasks such as providing a color list to use in charts as background and foreground colors. More...
Public Member Functions | |
| def | __init__ |
| Creates a ColorManager object to handle count different colors. | |
| def | pen |
| Returns a QPen object for the given index. | |
| def | brush |
| Returns a QBrush object for the given index. | |
| def | color |
| Returns a QColor object for the given index. | |
| def | edgeColor |
| Returns a QColor object for the given index. | |
| def | pickColors |
| Creates a list of colors of size n. | |
The ColorManager class encapsulates various color management tasks such as providing a color list to use in charts as background and foreground colors.
Definition at line 44 of file AbstractGraphicsChartItem.py.
| def Koo::KooChart::AbstractGraphicsChartItem::ColorManager::__init__ | ( | self, | ||
| count | ||||
| ) |
Creates a ColorManager object to handle count different colors.
Definition at line 48 of file AbstractGraphicsChartItem.py.
| def Koo::KooChart::AbstractGraphicsChartItem::ColorManager::brush | ( | self, | ||
| i | ||||
| ) |
Returns a QBrush object for the given index.
Definition at line 56 of file AbstractGraphicsChartItem.py.
| def Koo::KooChart::AbstractGraphicsChartItem::ColorManager::color | ( | self, | ||
| i | ||||
| ) |
Returns a QColor object for the given index.
Definition at line 68 of file AbstractGraphicsChartItem.py.
| def Koo::KooChart::AbstractGraphicsChartItem::ColorManager::edgeColor | ( | self, | ||
| i | ||||
| ) |
Returns a QColor object for the given index.
Note edgeColor will be brigther than the color returned by color()
Definition at line 74 of file AbstractGraphicsChartItem.py.
| def Koo::KooChart::AbstractGraphicsChartItem::ColorManager::pen | ( | self, | ||
| i | ||||
| ) |
Returns a QPen object for the given index.
Definition at line 52 of file AbstractGraphicsChartItem.py.
| def Koo::KooChart::AbstractGraphicsChartItem::ColorManager::pickColors | ( | n | ) |
Creates a list of colors of size n.
This way, colors can be as far from each other as possible
Definition at line 86 of file AbstractGraphicsChartItem.py.