TGShapedToolTip Class Reference

Inheritance diagram for TGShapedToolTip:

TGShapedFrame TGCompositeFrame TGCompositeFrame TGFrame TGFrame TGFrame TGFrame TQObject TGWindow TQObject TGWindow TQObject TGWindow TQObject TGWindow TQObject TGWindow TQObject TGWindow TQObject TGWindow TQObject TGWindow List of all members.

Public Member Functions

 TGShapedToolTip (const char *picname, Int_t cx=0, Int_t cy=0, Int_t cw=0, Int_t ch=0, Int_t tx=0, Int_t ty=0, Int_t th=0, const char *col="#ffffff")
virtual ~TGShapedToolTip ()
virtual void CloseWindow ()
void CreateCanvas (Int_t cx, Int_t cy, Int_t cw, Int_t ch)
void CreateCanvas (Int_t cw, Int_t ch, TGLayoutHints *hints)
TH1GetHisto () const
const char * GetText () const
void Refresh ()
void SetHisto (TH1 *hist)
void SetText (const char *text)
void SetTextColor (const char *col)
void SetTextAttributes (Int_t tx, Int_t ty, Int_t th, const char *col=0)
void Show (Int_t x, Int_t y, const char *text=0, TH1 *hist=0)

Protected Member Functions

virtual void DoRedraw ()

Protected Attributes

Int_t fTextX
Int_t fTextY
Int_t fTextH
TString fTextCol
TRootEmbeddedCanvasfEc
TH1fHist
TString fText

Private Member Functions

 TGShapedToolTip (const TGShapedToolTip &)
TGShapedToolTipoperator= (const TGShapedToolTip &)

Detailed Description

Definition at line 73 of file SplitGLView.C.


Constructor & Destructor Documentation

TGShapedToolTip::TGShapedToolTip ( const TGShapedToolTip  )  [private]

TGShapedToolTip::TGShapedToolTip ( const char *  picname,
Int_t  cx = 0,
Int_t  cy = 0,
Int_t  cw = 0,
Int_t  ch = 0,
Int_t  tx = 0,
Int_t  ty = 0,
Int_t  th = 0,
const char *  col = "#ffffff" 
)

TGShapedToolTip::~TGShapedToolTip (  )  [virtual]

Definition at line 265 of file SplitGLView.C.

References fEc, and fHist.


Member Function Documentation

TGShapedToolTip& TGShapedToolTip::operator= ( const TGShapedToolTip  )  [private]

virtual void TGShapedToolTip::DoRedraw (  )  [inline, protected, virtual]

Reimplemented from TGShapedFrame.

Definition at line 87 of file SplitGLView.C.

void TGShapedToolTip::CloseWindow (  )  [virtual]

Definition at line 276 of file SplitGLView.C.

References TGFrame::DeleteWindow().

void TGShapedToolTip::CreateCanvas ( Int_t  cx,
Int_t  cy,
Int_t  cw,
Int_t  ch 
)

Definition at line 307 of file SplitGLView.C.

References TGCompositeFrame::AddFrame(), TGShapedFrame::fBgnd, fEc, TGFrame::fHeight, TGFrame::fWidth, TGPicture::GetHeight(), TGPicture::GetWidth(), TGWindow::IsMapped(), kLHintsLeft, kLHintsTop, TGCompositeFrame::MapSubwindows(), Refresh(), and TGFrame::Resize().

void TGShapedToolTip::CreateCanvas ( Int_t  cw,
Int_t  ch,
TGLayoutHints hints 
)

Definition at line 325 of file SplitGLView.C.

References TGCompositeFrame::AddFrame(), TGShapedFrame::fBgnd, fEc, TGPicture::GetHeight(), TGPicture::GetWidth(), TGWindow::IsMapped(), TGCompositeFrame::MapSubwindows(), Refresh(), and TGFrame::Resize().

TH1* TGShapedToolTip::GetHisto (  )  const [inline]

Definition at line 98 of file SplitGLView.C.

References fHist.

const char* TGShapedToolTip::GetText (  )  const [inline]

Definition at line 99 of file SplitGLView.C.

References TString::Data(), and fText.

void TGShapedToolTip::Refresh (  ) 

Definition at line 284 of file SplitGLView.C.

References TImage::Clone(), TString::Data(), TGObject::fId, TGShapedFrame::fImage, fp, free(), fText, fTextCol, fTextH, fTextX, fTextY, gEnv, TEnv::GetValue(), gVirtualX, nlines, s, size, and str.

Referenced by CreateCanvas(), SetText(), SetTextAttributes(), SetTextColor(), and Show().

void TGShapedToolTip::SetHisto ( TH1 hist  ) 

Definition at line 340 of file SplitGLView.C.

References TCanvas::cd(), TCanvas::Clear(), TVirtualPad::Draw(), fEc, fHist, TRootEmbeddedCanvas::GetCanvas(), hist, TPad::SetBorderMode(), TAttFill::SetFillColor(), and TCanvas::Update().

Referenced by Show().

void TGShapedToolTip::SetText ( const char *  text  ) 

Definition at line 362 of file SplitGLView.C.

References fText, TGWindow::IsMapped(), and Refresh().

Referenced by Show().

void TGShapedToolTip::SetTextColor ( const char *  col  ) 

Definition at line 374 of file SplitGLView.C.

References fTextCol, TGWindow::IsMapped(), and Refresh().

void TGShapedToolTip::SetTextAttributes ( Int_t  tx,
Int_t  ty,
Int_t  th,
const char *  col = 0 
)

Definition at line 384 of file SplitGLView.C.

References fTextCol, fTextH, fTextX, fTextY, TGWindow::IsMapped(), and Refresh().

void TGShapedToolTip::Show ( Int_t  x,
Int_t  y,
const char *  text = 0,
TH1 hist = 0 
)

Definition at line 397 of file SplitGLView.C.

References TCanvas::cd(), TH1::Draw(), fEc, fHist, TRootEmbeddedCanvas::GetCanvas(), hist, TGFrame::MapWindow(), TGFrame::Move(), Refresh(), TPad::SetBorderMode(), TAttFill::SetFillColor(), SetHisto(), SetText(), and TCanvas::Update().

Referenced by SplitGLView::OnMouseIdle().


Member Data Documentation

Int_t TGShapedToolTip::fTextX [protected]

Definition at line 80 of file SplitGLView.C.

Referenced by Refresh(), and SetTextAttributes().

Int_t TGShapedToolTip::fTextY [protected]

Definition at line 80 of file SplitGLView.C.

Referenced by Refresh(), and SetTextAttributes().

Int_t TGShapedToolTip::fTextH [protected]

Definition at line 80 of file SplitGLView.C.

Referenced by Refresh(), and SetTextAttributes().

TString TGShapedToolTip::fTextCol [protected]

Definition at line 81 of file SplitGLView.C.

Referenced by Refresh(), SetTextAttributes(), and SetTextColor().

TRootEmbeddedCanvas* TGShapedToolTip::fEc [protected]

Definition at line 83 of file SplitGLView.C.

Referenced by CreateCanvas(), SetHisto(), Show(), and ~TGShapedToolTip().

TH1* TGShapedToolTip::fHist [protected]

Definition at line 84 of file SplitGLView.C.

Referenced by GetHisto(), SetHisto(), Show(), and ~TGShapedToolTip().

TString TGShapedToolTip::fText [protected]

Definition at line 85 of file SplitGLView.C.

Referenced by GetText(), Refresh(), and SetText().


The documentation for this class was generated from the following file:
Generated on Tue Jul 5 16:40:52 2011 for ROOT_528-00b_version by  doxygen 1.5.1