kalzium
KalziumShortTableType Class Reference
#include <kalziumtabletype.h>

Detailed Description
The class representing the "short" periodic table, and its metrics.
Definition at line 191 of file kalziumtabletype.h.
Public Member Functions | |
| QString | description () const |
| int | elementAtCoords (const QPoint &coords) const |
| QRect | elementRect (const int numelem) const |
| QByteArray | name () const |
| int | nextOf (int element) const |
| int | previousOf (int element) const |
| QSize | size () const |
Static Public Member Functions | |
| static KalziumShortTableType * | instance () |
Member Function Documentation
| QString KalziumShortTableType::description | ( | ) | const [virtual] |
Returns the description of this table type.
Used in all the visible places.
Implements KalziumTableType.
Definition at line 326 of file kalziumtabletype.cpp.
| int KalziumShortTableType::elementAtCoords | ( | const QPoint & | coords | ) | const [virtual] |
- Returns:
- the number of the element at the coordinates
coords.
If there is no element it will return 0. For example, for Carbon "6" will be returned
Implements KalziumTableType.
Definition at line 336 of file kalziumtabletype.cpp.
| QRect KalziumShortTableType::elementRect | ( | const int | numelem | ) | const [virtual] |
Returns the rect for the element with atomic number numelem.
Implements KalziumTableType.
Definition at line 378 of file kalziumtabletype.cpp.
| KalziumShortTableType * KalziumShortTableType::instance | ( | ) | [static] |
Get its instance.
Reimplemented from KalziumTableType.
Definition at line 299 of file kalziumtabletype.cpp.
| QByteArray KalziumShortTableType::name | ( | ) | const [virtual] |
Returns the ID of this table type.
Mainly used when saving/loading.
Implements KalziumTableType.
Definition at line 321 of file kalziumtabletype.cpp.
| int KalziumShortTableType::nextOf | ( | int | element | ) | const [virtual] |
Returns the element that comes right after the specified element.
-1 means that element is the last in this table type.
The default implementation returns element + 1 if element is not the latest element, else -1.
Reimplemented from KalziumTableType.
Definition at line 405 of file kalziumtabletype.cpp.
| int KalziumShortTableType::previousOf | ( | int | element | ) | const [virtual] |
Returns the element that comes right before the specified element.
-1 means that element is the first in this table type.
The default implementation returns element - 1 if element is not 1, else -1.
Reimplemented from KalziumTableType.
Definition at line 399 of file kalziumtabletype.cpp.
| QSize KalziumShortTableType::size | ( | ) | const [virtual] |
Returns the size of this table type.
Implements KalziumTableType.
Definition at line 331 of file kalziumtabletype.cpp.
The documentation for this class was generated from the following files:
KDE 4.2 API Reference