#include <Colors.h>
Public Member Functions | |
Colors (fhicl::ParameterSet const &p) | |
~Colors () | |
void | reconfigure (fhicl::ParameterSet const &p) |
void | WhiteOnBlack () |
void | BlackOnWhite () |
int | Foreground (int i=0) |
int | Background (int i=0) |
ColorScale & | Scale (const std::string &nm) |
Public Member Functions inherited from evdb::Reconfigurable | |
Reconfigurable (fhicl::ParameterSet const &ps) | |
void | do_reconfigure (fhicl::ParameterSet const &pset) |
Private Member Functions | |
void | UnpackColorScale (fhicl::ParameterSet const &p, const std::string &c) |
void | SetStyle () |
Private Attributes | |
int | fFG [kMAX_FGBG] |
Foreground colors. More... | |
int | fBG [kMAX_FGBG] |
std::map< std::string, ColorScale * > | fColorScales |
Static Private Attributes | |
static const int | kMAX_FGBG = 6 |
evdb::Colors::Colors | ( | fhicl::ParameterSet const & | p | ) |
Definition at line 14 of file Colors_service.cc.
evdb::Colors::~Colors | ( | ) |
Definition at line 21 of file Colors_service.cc.
int evdb::Colors::Background | ( | int | i = 0 | ) |
Return the background color
i | : 0 is highest contrast to foreground color, 5 is least |
Definition at line 136 of file Colors_service.cc.
void evdb::Colors::BlackOnWhite | ( | ) |
Set foreground and background colors for black text on black background
Definition at line 114 of file Colors_service.cc.
int evdb::Colors::Foreground | ( | int | i = 0 | ) |
Return the foreground color
i | : 0 is highest contrast to background color, 5 is least |
Definition at line 127 of file Colors_service.cc.
|
virtual |
Implements evdb::Reconfigurable.
Definition at line 32 of file Colors_service.cc.
ColorScale & evdb::Colors::Scale | ( | const std::string & | nm | ) |
|
private |
|
private |
Unpack the parameters for a named color scale
Definition at line 47 of file Colors_service.cc.
void evdb::Colors::WhiteOnBlack | ( | ) |
Set foreground and background colors for white text on black background
Definition at line 101 of file Colors_service.cc.
|
private |