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"
18 
19 using std::string;
20 
21 using namespace hippodraw;
22 
24  : TextRepBase ( "Underflow" )
25 {
26 }
27 
29  : TextRepBase( rep )
30 {
31 }
32 
33 /* virtual */
35 {
36  return new UnderflowTextRep ( *this );
37 }
38 
39 void
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 doxygen