TWbox.h

Go to the documentation of this file.
00001 // @(#)root/graf:$Id: TWbox.h 20882 2007-11-19 11:31:26Z rdm $
00002 // Author: Rene Brun   12/12/94
00003 
00004 /*************************************************************************
00005  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers.               *
00006  * All rights reserved.                                                  *
00007  *                                                                       *
00008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
00009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
00010  *************************************************************************/
00011 
00012 #ifndef ROOT_TWbox
00013 #define ROOT_TWbox
00014 
00015 
00016 //////////////////////////////////////////////////////////////////////////
00017 //                                                                      //
00018 // TWbox                                                                //
00019 //                                                                      //
00020 // A window box (box with 3-D effects).                                 //
00021 //                                                                      //
00022 //////////////////////////////////////////////////////////////////////////
00023 
00024 
00025 #ifndef ROOT_TBox
00026 #include "TBox.h"
00027 #endif
00028 
00029 #ifndef ROOT_TColor
00030 #include "TColor.h"
00031 #endif
00032 
00033 class TWbox : public TBox {
00034 
00035 protected:
00036    Short_t      fBorderSize;    //window box bordersize in pixels
00037    Short_t      fBorderMode;    //Bordermode (-1=down, 0 = no border, 1=up)
00038 
00039 public:
00040    TWbox();
00041    TWbox(Double_t x1, Double_t y1,Double_t x2 ,Double_t y2,
00042          Color_t color=18, Short_t bordersize=5 ,Short_t bordermode=1);
00043    TWbox(const TWbox &wbox);
00044    virtual ~TWbox();
00045 
00046    void          Copy(TObject &wbox) const;
00047    virtual void  Draw(Option_t *option="");
00048    virtual void  DrawWbox(Double_t x1, Double_t y1,Double_t x2 ,Double_t y2,
00049                       Color_t color=33 ,Short_t bordersize=5 ,Short_t bordermode=-1);
00050    virtual void  ExecuteEvent(Int_t event, Int_t px, Int_t py);
00051    Short_t       GetBorderMode() const { return fBorderMode;}
00052    Short_t       GetBorderSize() const { return fBorderSize;}
00053    Int_t         GetDarkColor() const  {return TColor::GetColorDark(GetFillColor());}
00054    Int_t         GetLightColor() const {return TColor::GetColorBright(GetFillColor());}
00055    virtual void  Paint(Option_t *option="");
00056    virtual void  PaintFrame(Double_t x1, Double_t y1,Double_t x2 ,Double_t y2,
00057                             Color_t color, Short_t bordersize, Short_t bordermode,
00058                             Bool_t tops);
00059    virtual void  PaintWbox(Double_t x1, Double_t y1,Double_t x2 ,Double_t y2,
00060                  Color_t color=33, Short_t bordersize=5, Short_t bordermode=-1);
00061    virtual void  SavePrimitive(ostream &out, Option_t *option = "");
00062    virtual void  SetBorderMode(Short_t bordermode) {fBorderMode = bordermode;} // *MENU*
00063    virtual void  SetBorderSize(Short_t bordersize) {fBorderSize = bordersize;} // *MENU*
00064 
00065    ClassDef(TWbox,1)  //A window box (box with 3-D effects)
00066 };
00067 
00068 #endif
00069 

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