245 fAxisColor->
Connect(
"ColorSelected(Pixel_t)",
"TAxisEditor",
this,
"DoAxisColor(Pixel_t)");
252 fDiv3->
Connect(
"ValueSet(Long_t)",
"TAxisEditor",
this,
"DoDivisions()");
254 fDiv2->
Connect(
"ValueSet(Long_t)",
"TAxisEditor",
this,
"DoDivisions()");
256 fDiv1->
Connect(
"ValueSet(Long_t)",
"TAxisEditor",
this,
"DoDivisions()");
258 fTitle->
Connect(
"TextChanged(const char *)",
"TAxisEditor",
this,
"DoTitle(const char *)");;
259 fTitleColor->
Connect(
"ColorSelected(Pixel_t)",
"TAxisEditor",
this,
"DoTitleColor(Pixel_t)");
262 fTitleFont->
Connect(
"Selected(Int_t)",
"TAxisEditor",
this,
"DoTitleFont(Int_t)");
263 fCentered->
Connect(
"Toggled(Bool_t)",
"TAxisEditor",
this,
"DoTitleCentered()");
264 fRotated->
Connect(
"Toggled(Bool_t)",
"TAxisEditor",
this,
"DoTitleRotated()");
267 fLabelColor->
Connect(
"ColorSelected(Pixel_t)",
"TAxisEditor",
this,
"DoLabelColor(Pixel_t)");
271 fDecimal->
Connect(
"Toggled(Bool_t)",
"TAxisEditor",
this,
"DoDecimal(Bool_t)");
274 fLabelFont->
Connect(
"Selected(Int_t)",
"TAxisEditor",
this,
"DoLabelFont(Int_t)");
315 if (!strcmp(both,
"+-")) {
virtual void SetTitleOffset(Float_t offset=1)
Set distance between the axis and the axis title Offset is a correction factor with respect to the "s...
virtual void Resize(UInt_t w=0, UInt_t h=0)
Resize the frame.
virtual Color_t GetAxisColor() const
virtual Color_t GetLabelColor() const
virtual void DoLabelOffset()
Slot connected to the label offset.
virtual void DoTicks()
Slot connected to the ticks draw settings.
virtual Int_t GetLogy() const =0
virtual void DoTickLength()
Slot connected to the tick length settings.
virtual Int_t GetLogz() const =0
virtual void DoMoreLog()
Slot connected to more Log labels flag.
TGCheckButton * fNoExponent
TGFontTypeComboBox * fTitleFont
virtual void SetToolTipText(const char *text, Long_t delayms=500)
Set tool tip text associated with this text entry.
R__EXTERN TStyle * gStyle
virtual void DoTitleCentered()
Slot connected to centered title option.
virtual void SetLabelColor(Color_t color=1, Float_t alpha=1.)
Set color of labels.
TGColorSelect * fLabelColor
void SetColor(Pixel_t color, Bool_t emit=kTRUE)
Set color.
virtual void SetNdivisions(Int_t n=510, Bool_t optim=kTRUE)
Set the number of divisions for this axis.
virtual void SetNumber(Double_t val)
virtual void DoTitle(const char *text)
Slot connected to the axis color.
virtual void SetTitleFont(Style_t font=62)
Set the title font.
virtual TVirtualPad * GetPad() const
virtual Color_t GetTitleColor() const
virtual void DoLogAxis()
Slot for Log scale setting.
virtual Style_t GetTitleFont() const
virtual void ConnectSignals2Slots()
Connect signals to slots.
void CenterTitle(Bool_t center=kTRUE)
Center axis title.
virtual Float_t GetTitleSize() const
virtual void SetModel(TObject *obj)
Pick up the used values of axis attributes.
virtual void SetLabelOffset(Float_t offset=0.005)
Set distance between the axis and the labels The distance is expressed in per cent of the pad width...
TGNumberEntry * fTickLength
virtual void SetLabelFont(Style_t font=62)
Set labels' font.
TGNumberEntryField * GetNumberEntry() const
virtual void DoLabelFont(Int_t font)
Slot connected to the label font.
virtual const char * GetTicks() const
Return the ticks option (see SetTicks)
TGCheckButton * fOptimize
virtual void DoTitleColor(Pixel_t color)
Slot connected to the title color.
virtual Int_t GetLogx() const =0
virtual void Update()
Update the current pad when an attribute is changed via GUI.
virtual void Select(Int_t id, Bool_t emit=kTRUE)
Make the selected item visible in the combo box window and emit signals according to the second param...
TGCompositeFrame(const TGCompositeFrame &)
TGNumberEntry * fTitleSize
TGColorSelect * fTitleColor
TGFontTypeComboBox * fLabelFont
virtual Float_t GetTitleOffset() const
virtual void DoLabelSize()
Slot connected to the label size.
virtual void DoTitleOffset()
Slot connected to the title offset.
Bool_t Connect(const char *signal, const char *receiver_class, void *receiver, const char *slot)
Non-static method is used to connect from the signal of this object to the receiver slot...
TGColorSelect * fAxisColor
Class to manage histogram axis.
TGCheckButton * fTicksBoth
virtual void DoDivisions()
Slot connected to the number of divisions.
TGNumberEntry * fTitleOffset
static Int_t GetColor(const char *hexcolor)
Static method returning color number for color specified by hex color string of form: "#rrggbb"...
virtual const char * GetName() const
Returns name of object.
const char * GetTitle() const
Returns title of object.
virtual void DoTitleFont(Int_t font)
Slot connected to the title font.
Bool_t GetDecimals() const
virtual void SetAxisColor(Color_t color=1, Float_t alpha=1.)
Set color of the line axis and tick marks.
virtual void SetLabelSize(Float_t size=0.04)
Set size of axis labels The size is expressed in per cent of the pad width.
virtual void DoTitleRotated()
Slot connected to the title rotation.
virtual void SetTitleColor(Color_t color=1)
Set color of axis title.
virtual void SetTitleSize(Float_t size=0.04)
Set size of axis title The size is expressed in per cent of the pad width.
Bool_t GetNoExponent() const
virtual ~TAxisEditor()
Destructor of axis editor.
static ULong_t Number2Pixel(Int_t ci)
Static method that given a color index number, returns the corresponding pixel value.
void SetNoExponent(Bool_t noExponent=kTRUE)
Set the NoExponent flag By default, an exponent of the form 10^N is used when the label value are eit...
Bool_t GetCenterTitle() const
TGNumberEntry * fLabelSize
virtual void DoLabelColor(Pixel_t color)
Slot connected to the label color.
virtual Style_t GetLabelFont() const
virtual Int_t GetNdivisions() const
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=0)
Add frame to the composite frame using the specified layout hints.
virtual void SetTicks(Option_t *option="+")
Set ticks orientation.
void SetDecimals(Bool_t dot=kTRUE)
Sets the decimals flag By default, blank characters are stripped, and then the label is correctly ali...
Mother of all ROOT objects.
virtual Float_t GetLabelSize() const
virtual void DoAxisColor(Pixel_t color)
Slot connected to the axis color.
virtual UInt_t GetDefaultHeight() const
double f2(const double *x)
void RotateTitle(Bool_t rotate=kTRUE)
Rotate title by 180 degrees.
void SetMoreLogLabels(Bool_t more=kTRUE)
Set the kMoreLogLabels bit flag When this option is selected more labels are drawn when in log scale ...
ClassImp(TAxisEditor) enum EAxisWid
virtual void SetTickLength(Float_t length=0.03)
Set tick mark length The length is expressed in per cent of the pad width.
virtual Double_t GetNumber() const
TGCheckButton * fCentered
virtual void DoNoExponent()
Slot connected to the labels' exponent flag.
virtual void SetText(const char *text, Bool_t emit=kTRUE)
Sets text entry to text, clears the selection and moves the cursor to the end of the line...
Bool_t GetRotateTitle() const
virtual Float_t GetTickLength() const
virtual void SetTitle(const char *title="")
Change (i.e. set) the title of the TNamed.
Bool_t GetMoreLogLabels() const
virtual void MakeTitle(const char *title)
Create attribute frame title.
TAxisEditor(const TGWindow *p=0, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor of axis attribute GUI.
TGNumberEntry * fLabelOffset
virtual void DoDecimal(Bool_t on)
Slot connected to the decimal part setting.
void SetStripDecimals(Bool_t strip=kTRUE)
Set option to strip decimals when drawing axis labels.
virtual Float_t GetLabelOffset() const
virtual void DoTitleSize()
Slot connected to the title font size.