Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
reps
UnderflowTextRep.cxx
Go to the documentation of this file.
1
13
#include "
UnderflowTextRep.h
"
14
15
#include "
graphics/ViewBase.h
"
16
#include "
pattern/string_convert.h
"
17
#include "
projectors/NTupleProjector.h
"
18
19
using
std::string;
20
21
using namespace
hippodraw;
22
23
UnderflowTextRep::UnderflowTextRep
( )
24
:
TextRepBase
(
"Underflow"
)
25
{
26
}
27
28
UnderflowTextRep::UnderflowTextRep
(
const
UnderflowTextRep
& rep )
29
:
TextRepBase
( rep )
30
{
31
}
32
33
/* virtual */
34
RepBase
*
UnderflowTextRep::clone
()
35
{
36
return
new
UnderflowTextRep
( *
this
);
37
}
38
39
void
40
UnderflowTextRep::
41
drawProjectedValues
(
ProjectorBase
& proj,
42
ViewBase
& view )
43
{
44
int
underflow = proj.
getUnderflow
();
45
string
text (
"Underflow_entries = "
);
46
if
( underflow < 0 ) {
47
text +=
"meaningless"
;
48
}
49
else
{
50
text +=
String::convert
( underflow );
51
}
52
53
view.
drawText
( text, 5, 10,
m_size
, 0,
'l'
,
't'
,
true
, 0, &
m_color
);
54
}
Generated for HippoDraw Class Library by