library: libHistPainter #include "TPaletteAxis.h"

# TPaletteAxis

class description - source file - inheritance tree (.ps)

## class TPaletteAxis : public TPave

| Inheritance Chart:

`TObject`

`TAttLine`

`TAttFill`

<-

`TBox`

<-

`TPave`

<-

`TPaletteAxis`

        public:

                            TPaletteAxis()
                            TPaletteAxis(Double_t x1, Double_t y1, Double_t x2, Double_t y2, TH1* h)
                            TPaletteAxis(const TPaletteAxis& palette)
                    virtual ~TPaletteAxis()
             static TClass* Class()
               virtual void Copy(TObject& palette) const
              virtual Int_t DistancetoPrimitive(Int_t px, Int_t py)
               virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
                    TGaxis* GetAxis()
          virtual Option_t* GetName() const
              virtual char* GetObjectInfo(Int_t px, Int_t py) const
            virtual TClass* IsA() const
              TPaletteAxis& operator=(const TPaletteAxis&)
               virtual void Paint(Option_t* option)
               virtual void SavePrimitive(ofstream& out, Option_t* option)
               virtual void SetLabelColor(Int_t labelcolor)
               virtual void SetLabelFont(Int_t labelfont)
               virtual void SetLabelOffset(Float_t labeloffset)
               virtual void SetLabelSize(Float_t labelsize)
               virtual void SetName(const char* name)
               virtual void SetTitleOffset(Float_t titleoffset = 1)
               virtual void SetTitleSize(Float_t titlesize)
               virtual void ShowMembers(TMemberInspector& insp, char* parent)
               virtual void Streamer(TBuffer& b)
                       void StreamerNVirtual(TBuffer& b)
               virtual void UnZoom()

### Data Members

        protected:

           TGaxis fAxis  palette axis
             TH1* fH     pointer to parent histogram
          TString fName  Pave name

        public:

          static const enum TPaletteAxis:: kHasView

## Class Description

     a TPaletteAxis object is used to display the color palette when
     drawing 2-d histograms.
     The object is automatically created when drawing a 2-D histogram
     when the option "z" is specified.
     The object is added to the histogram list of functions and can be retrieved
     and its attributes changed with:
      TPaletteAxis *palette = (TPaletteAxis*)h->GetListOfFunctions()->FindObject("palette");

     The palette can be interactively moved and resized. The context menu
     can be used to set the axis attributes.

     It is possible to select a range on the axis to set the min/max in z

/* */

TPaletteAxis(): TPave()

     palette default constructor

TPaletteAxis(Double_t x1, Double_t y1,Double_t x2, Double_t y2, TH1 *h) :TPave(x1,y1,x2,y2)

     palette normal constructor

~TPaletteAxis()

TPaletteAxis(const TPaletteAxis &palette) : TPave(palette)

void Copy(TObject &obj) const

    *-*-*-*-*-*-*-*-*-*-*Copy this pave to pave*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
    *-*                  ======================

Int_t DistancetoPrimitive(Int_t px, Int_t py)

    check if mouse on the axis region

void ExecuteEvent(Int_t event, Int_t px, Int_t py)

    check if mouse on the axis region

char* GetObjectInfo(Int_t /* px */, Int_t py) const

       Redefines TObject::GetObjectInfo.
       Displays the z value corresponding to cursor position py

void Paint(Option_t *)

void SavePrimitive(ofstream &, Option_t *)

     Save primitive as a C++ statement(s) on output stream out.

void UnZoom()

### Inline Functions

                  TGaxis* GetAxis()
                Option_t* GetName() const
                     void SetName(const char* name)
                     void SetLabelColor(Int_t labelcolor)
                     void SetLabelFont(Int_t labelfont)
                     void SetLabelOffset(Float_t labeloffset)
                     void SetLabelSize(Float_t labelsize)
                     void SetTitleOffset(Float_t titleoffset = 1)
                     void SetTitleSize(Float_t titlesize)
                  TClass* Class()
                  TClass* IsA() const
                     void ShowMembers(TMemberInspector& insp, char* parent)
                     void Streamer(TBuffer& b)
                     void StreamerNVirtual(TBuffer& b)
            TPaletteAxis& operator=(const TPaletteAxis&)

Author: Rene Brun 15/11/2002
Last update: root/histpainter:$Name: $:$Id: TPaletteAxis.cxx,v 1.7 2003/01/13 16:57:36 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *