HistogramInfo.cxx
Go to the documentation of this file.
2 #include <iostream>
3 #include "TGText.h"
4 #include "TGTextView.h"
7 using namespace om;
8 
10  TGTextView(w,
11  Layout::fPlotViewerSizeX,
12  Layout::fHistogramInfoSizeY),
14 {
15  fText = new TGText("Click on plot for histogram data");
16  TGFont* f =
17  gClient->GetFont("-adobe-helvetica-medium-r-*-*-12-*-*-*-*-*-iso8859-1");
18  this->SetFont(f->GetFontStruct());
19 }
20 
21 //......................................................................
22 
24 {
25  delete fText;
26 }
27 
28 //......................................................................
29 
31  unsigned int which)
32 {
33  if (this->GetLock()==false) return;
34 
35  if ((which&kHistogramInfoTextID)==0) {
36  this->ReleaseLock();
37  return;
38  }
39 
40  if (fBuffer == d.fHistogramInfoText) {
41  this->ReleaseLock();
42  return;
43  }
45  this->LoadBuffer(fBuffer.c_str());
46 
47  this->ReleaseLock();
48 }
49 
50 ////////////////////////////////////////////////////////////////////////
HistogramInfo(TGWindow *w)
static const unsigned int kHistogramInfoTextID
Definition: GUIModelData.h:16
std::string fHistogramInfoText
Definition: GUIModelData.h:36
void GUIModelDataIssue(const GUIModelData &d, unsigned int which)
Float_t d
Definition: plot.C:236
TGText * fText
The text inside the box.
Definition: HistogramInfo.h:21
std::string fBuffer
The text insider the buffer.
Definition: HistogramInfo.h:20
Float_t w
Definition: plot.C:20
Online Monitoring package header.