kalzium
KalziumIconicSchemeType Class Reference
#include <kalziumschemetype.h>
Detailed Description
The scheme for iconic representation.
Definition at line 169 of file kalziumschemetype.h.
Public Member Functions | |
| QByteArray | name () const |
| QString | description () const |
| QBrush | elementBrush (int el, const QRect &elrect) const |
| QColor | textColor (int el) const |
| QList< legendPair > | legendItems () const |
Static Public Member Functions | |
| static KalziumIconicSchemeType * | instance () |
Member Function Documentation
| KalziumIconicSchemeType * KalziumIconicSchemeType::instance | ( | ) | [static] |
Get its instance.
Reimplemented from KalziumSchemeType.
Definition at line 196 of file kalziumschemetype.cpp.
| QByteArray KalziumIconicSchemeType::name | ( | ) | const [virtual] |
Returns the ID of this scheme.
Mainly used when saving/loading.
Implements KalziumSchemeType.
Definition at line 202 of file kalziumschemetype.cpp.
| QString KalziumIconicSchemeType::description | ( | ) | const [virtual] |
Returns the description of this scheme.
Used in all the visible places.
Implements KalziumSchemeType.
Definition at line 207 of file kalziumschemetype.cpp.
Returns the brush with which the element with number el should be painted.
- Parameters:
-
el Element number elrect is the rect designed for the element
- Returns:
- A brush for painting in
elrect
Implements KalziumSchemeType.
Definition at line 212 of file kalziumschemetype.cpp.
| QColor KalziumIconicSchemeType::textColor | ( | int | el | ) | const [virtual] |
Returns the color which will be used to draw the texts for the element with atomic number el.
Implements KalziumSchemeType.
Definition at line 219 of file kalziumschemetype.cpp.
| QList< legendPair > KalziumIconicSchemeType::legendItems | ( | ) | const [virtual] |
Returns a list with the legend of the current scheme.
Implements KalziumSchemeType.
Definition at line 224 of file kalziumschemetype.cpp.
The documentation for this class was generated from the following files:
KDE 4.0 API Reference