TGSimpleTable.cxx

Go to the documentation of this file.
00001 // Author: Roel Aaij 21/07/2007
00002 
00003 /*************************************************************************
00004  * Copyright (C) 1995-2007, Rene Brun and Fons Rademakers.               *
00005  * All rights reserved.                                                  *
00006  *                                                                       *
00007  * For the licensing terms see $ROOTSYS/LICENSE.                         *
00008  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
00009  *************************************************************************/
00010 
00011 #include "TGTable.h"
00012 #include "TClass.h"
00013 #include "TGWindow.h"
00014 #include "TGResourcePool.h"
00015 #include "Riostream.h"
00016 #include "TSystem.h"
00017 #include "TImage.h"
00018 #include "TEnv.h"
00019 #include "TGToolTip.h"
00020 #include "TGPicture.h"
00021 #include "TRandom3.h"
00022 #include "TGSimpleTableInterface.h"
00023 #include "TGSimpleTable.h"
00024 
00025 ClassImp(TGSimpleTable)
00026 
00027 //______________________________________________________________________________
00028 /* Begin_Html 
00029 <center><h2>TGSimpleTable</h2></center> 
00030 <br><br> 
00031 To provide a simple class to visualize an array of doubles, the class
00032 TGSimpleTable is provided. TGSimpleTable creates it's own
00033 TGSimpleTableInterface. For more information, see the documentation of
00034 TGTable
00035 <br><br>
00036 The interface is accesible through the GetInterface() method.
00037 End_Html
00038 */
00039 
00040 //______________________________________________________________________________
00041 TGSimpleTable::TGSimpleTable(TGWindow *p, Int_t id, Double_t **data, 
00042                              UInt_t nrows, UInt_t ncolumns) 
00043    : TGTable(p, id, 0, nrows, ncolumns)
00044 {
00045    // TGSimpleTable constuctor.
00046 
00047    TGSimpleTableInterface *iface = new TGSimpleTableInterface(data, nrows, 
00048                                                               ncolumns);
00049    SetInterface(iface,nrows, ncolumns);
00050 }
00051 
00052 //______________________________________________________________________________
00053 TGSimpleTable::~TGSimpleTable()
00054 {
00055    // TGSimpleTable destructor.
00056 
00057    delete fInterface;
00058 }
00059 

Generated on Tue Jul 5 14:22:03 2011 for ROOT_528-00b_version by  doxygen 1.5.1