00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #ifndef ROOT_TWbox
00013 #define ROOT_TWbox
00014
00015
00016
00017
00018
00019
00020
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;
00037 Short_t fBorderMode;
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;}
00063 virtual void SetBorderSize(Short_t bordersize) {fBorderSize = bordersize;}
00064
00065 ClassDef(TWbox,1)
00066 };
00067
00068 #endif
00069