Draws a coordinate axis. It has only static methods, that's why the constructor is private. More...
#include <OpenMS/VISUAL/AxisPainter.h>
Public Types | |
| enum | Alignment { TOP, BOTTOM, LEFT, RIGHT } |
| Where the axis is placed. More... | |
| typedef std::vector < std::vector< double > > | GridVector |
| Typedef for the grid vector. More... | |
Static Public Member Functions | |
| static void | paint (QPainter *painter, QPaintEvent *e, const DoubleReal &min, const DoubleReal &max, const GridVector &grid, const Int width, const Int height, const Alignment alignment, const UInt margin, const bool show_legend, const String legend, const bool shorten_number, const bool is_log, const bool is_inverse_orientation) |
| Draws an axis. More... | |
Private Member Functions | |
| AxisPainter () | |
| Constructor: only static methods. More... | |
Static Private Member Functions | |
| static void | getShortenedNumber_ (QString &short_num, DoubleReal number) |
sets short_num to a shortened string representation ("123.4 k/M/G") of number More... | |
| static DoubleReal | scale_ (DoubleReal x, bool is_log) |
| Scale axis values to correct value (i.e. reverse log, unit conversion) More... | |
Draws a coordinate axis. It has only static methods, that's why the constructor is private.
| typedef std::vector<std::vector<double> > GridVector |
Typedef for the grid vector.
| enum Alignment |
|
private |
Constructor: only static methods.
|
staticprivate |
sets short_num to a shortened string representation ("123.4 k/M/G") of number
|
static |
Draws an axis.
|
staticprivate |
Scale axis values to correct value (i.e. reverse log, unit conversion)
| OpenMS / TOPP release 1.11.1 | Documentation generated on Thu Nov 14 2013 11:19:35 using doxygen 1.8.5 |