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