97 fTickLength->GetNumberEntry()->SetToolTipText(
"Set ticks' length");
105 fTicksBoth->SetToolTipText(
"Draw ticks on both axis sides");
108 fLogAxis->SetToolTipText(
"Draw logarithmic scale");
115 fOptimize->SetToolTipText(
"Optimize the number of axis divisions");
118 fMoreLog->SetToolTipText(
"Draw more logarithmic labels");
127 fDiv3->GetNumberEntry()->SetToolTipText(
"Tertiary axis divisions");
132 fDiv2->GetNumberEntry()->SetToolTipText(
"Secondary axis divisions");
137 fDiv1->GetNumberEntry()->SetToolTipText(
"Primary axis divisions");
147 fTitle->SetToolTipText(
"Enter the axis title string");
160 fTitleSize->GetNumberEntry()->SetToolTipText(
"Set title size");
170 fCentered->SetToolTipText(
"Center axis title");
179 fRotated->SetToolTipText(
"Rotate axis title by 180 degrees");
185 fTitleOffset->GetNumberEntry()->SetToolTipText(
"Set title offset");
202 fLabelSize->GetNumberEntry()->SetToolTipText(
"Set labels' size");
208 fNoExponent->SetToolTipText(
"Labels drawn without exponent notation");
214 fLabelOffset->GetNumberEntry()->SetToolTipText(
"Set labels' offset");
224 fDecimal->SetToolTipText(
"Draw the decimal part of labels");
240 fAxisColor->Connect(
"ColorSelected(Pixel_t)",
"TAxisEditor",
this,
"DoAxisColor(Pixel_t)");
241 fTickLength->Connect(
"ValueSet(Long_t)",
"TAxisEditor",
this,
"DoTickLength()");
242 (
fTickLength->GetNumberEntry())->Connect(
"ReturnPressed()",
"TAxisEditor",
this,
"DoTickLength()");
243 fTicksBoth->Connect(
"Toggled(Bool_t)",
"TAxisEditor",
this,
"DoTicks()");
244 fOptimize->Connect(
"Toggled(Bool_t)",
"TAxisEditor",
this,
"DoDivisions()");
245 fLogAxis->Connect(
"Toggled(Bool_t)",
"TAxisEditor",
this,
"DoLogAxis()");
246 fMoreLog->Connect(
"Toggled(Bool_t)",
"TAxisEditor",
this,
"DoMoreLog()");
247 fDiv3->Connect(
"ValueSet(Long_t)",
"TAxisEditor",
this,
"DoDivisions()");
248 (
fDiv3->GetNumberEntry())->Connect(
"ReturnPressed()",
"TAxisEditor",
this,
"DoDivisions()");
249 fDiv2->Connect(
"ValueSet(Long_t)",
"TAxisEditor",
this,
"DoDivisions()");
250 (
fDiv2->GetNumberEntry())->Connect(
"ReturnPressed()",
"TAxisEditor",
this,
"DoDivisions()");
251 fDiv1->Connect(
"ValueSet(Long_t)",
"TAxisEditor",
this,
"DoDivisions()");
252 (
fDiv1->GetNumberEntry())->Connect(
"ReturnPressed()",
"TAxisEditor",
this,
"DoDivisions()");
253 fTitle->Connect(
"TextChanged(const char *)",
"TAxisEditor",
this,
"DoTitle(const char *)");;
254 fTitleColor->Connect(
"ColorSelected(Pixel_t)",
"TAxisEditor",
this,
"DoTitleColor(Pixel_t)");
255 fTitleSize->Connect(
"ValueSet(Long_t)",
"TAxisEditor",
this,
"DoTitleSize()");
256 (
fTitleSize->GetNumberEntry())->Connect(
"ReturnPressed()",
"TAxisEditor",
this,
"DoTitleSize()");
257 fTitleFont->Connect(
"Selected(Int_t)",
"TAxisEditor",
this,
"DoTitleFont(Int_t)");
258 fCentered->Connect(
"Toggled(Bool_t)",
"TAxisEditor",
this,
"DoTitleCentered()");
259 fRotated->Connect(
"Toggled(Bool_t)",
"TAxisEditor",
this,
"DoTitleRotated()");
260 fTitleOffset->Connect(
"ValueSet(Long_t)",
"TAxisEditor",
this,
"DoTitleOffset()");
261 (
fTitleOffset->GetNumberEntry())->Connect(
"ReturnPressed()",
"TAxisEditor",
this,
"DoTitleOffset()");
262 fLabelColor->Connect(
"ColorSelected(Pixel_t)",
"TAxisEditor",
this,
"DoLabelColor(Pixel_t)");
263 fLabelSize->Connect(
"ValueSet(Long_t)",
"TAxisEditor",
this,
"DoLabelSize()");
264 (
fLabelSize->GetNumberEntry())->Connect(
"ReturnPressed()",
"TAxisEditor",
this,
"DoLabelSize()");
265 fNoExponent->Connect(
"Toggled(Bool_t)",
"TAxisEditor",
this,
"DoNoExponent()");
266 fDecimal->Connect(
"Toggled(Bool_t)",
"TAxisEditor",
this,
"DoDecimal(Bool_t)");
267 fLabelOffset->Connect(
"ValueSet(Long_t)",
"TAxisEditor",
this,
"DoLabelOffset()");
268 (
fLabelOffset->GetNumberEntry())->Connect(
"ReturnPressed()",
"TAxisEditor",
this,
"DoLabelOffset()");
269 fLabelFont->Connect(
"Selected(Int_t)",
"TAxisEditor",
this,
"DoLabelFont(Int_t)");
289 fDiv1->SetNumber(div % 100);
290 fDiv2->SetNumber((div/100) % 100);
291 fDiv3->SetNumber((div/10000) % 100);
294 if ((!strcmp(
fAxis->GetName(),
"xaxis") &&
fGedEditor->GetPad()->GetLogx()) ||
295 (!strcmp(
fAxis->GetName(),
"yaxis") &&
fGedEditor->GetPad()->GetLogy()) ||
296 (!strcmp(
fAxis->GetName(),
"zaxis") &&
fGedEditor->GetPad()->GetLogz()))
309 const char *both =
fAxis->GetTicks();
310 if (!strcmp(both,
"+-")) {
321 c =
fAxis->GetTitleColor();
325 fl =
fAxis->GetTitleSize();
332 fl =
fAxis->GetTitleOffset();
343 c =
fAxis->GetLabelColor();
347 fl =
fAxis->GetLabelSize();
350 font =
fAxis->GetLabelFont();
354 fl =
fAxis->GetLabelOffset();
386 fAxis->SetTickLength(ticks);
399 fAxis->SetTicks(
"+-");
402 else fAxis->SetTicks(
"");
415 +
fDiv3->GetNumber() * 10000);
431 if (!strcmp(
fAxis->GetName(),
"xaxis"))
gPad->SetLogx(1);
432 if (!strcmp(
fAxis->GetName(),
"yaxis"))
gPad->SetLogy(1);
433 if (!strcmp(
fAxis->GetName(),
"zaxis"))
gPad->SetLogz(1);
441 if (!strcmp(
fAxis->GetName(),
"xaxis"))
gPad->SetLogx(0);
442 if (!strcmp(
fAxis->GetName(),
"yaxis"))
gPad->SetLogy(0);
443 if (!strcmp(
fAxis->GetName(),
"zaxis"))
gPad->SetLogz(0);
459 fAxis->SetMoreLogLabels(flag);
523 fAxis->CenterTitle(ctr);
534 fAxis->RotateTitle(rot);
588 fAxis->SetNoExponent(exp);
ULong_t Pixel_t
Pixel value.
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h offset
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void on
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t height
Option_t Option_t TPoint TPoint const char text
R__EXTERN TStyle * gStyle
Implements GUI for axis attributes.
TGCheckButton * fRotated
check button for rotated title
virtual void DoLabelColor(Pixel_t color)
Slot connected to the label color.
virtual void DoTitleColor(Pixel_t color)
Slot connected to the title color.
TGColorSelect * fTitleColor
color selection widget
~TAxisEditor() override
Destructor of axis editor.
virtual void DoAxisColor(Pixel_t color)
Slot connected to the axis color.
virtual void DoTitleCentered()
Slot connected to centered title option.
TGCheckButton * fMoreLog
more logarithmic labels check box
TGNumberEntry * fDiv2
secondary axis division number entry
TGColorSelect * fAxisColor
color selection widget
Int_t fLabelPrec
font precision level
Int_t fTicksFlag
positive/negative ticks' flag
virtual void DoTitleOffset()
Slot connected to the title offset.
virtual void ConnectSignals2Slots()
Connect signals to slots.
virtual void DoTicks()
Slot connected to the ticks draw settings.
virtual void DoTitleFont(Int_t font)
Slot connected to the title font.
TGTextEntry * fTitle
axis title input field
TGCheckButton * fNoExponent
check box for No exponent choice
TGFontTypeComboBox * fTitleFont
title font combo box
TAxisEditor(const TGWindow *p=nullptr, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor of axis attribute GUI.
TGCheckButton * fLogAxis
logarithmic check box
Int_t fTitlePrec
font precision level
virtual void DoTitle(const char *text)
Slot connected to the axis color.
virtual void DoDecimal(Bool_t on)
Slot connected to the decimal part setting.
TGNumberEntry * fTickLength
tick length number entry
virtual void DoTitleSize()
Slot connected to the title font size.
TGNumberEntry * fTitleOffset
title offset number entry
virtual void DoLabelOffset()
Slot connected to the label offset.
TGNumberEntry * fDiv1
primary axis division number entry
TGNumberEntry * fTitleSize
title size number entry
TGColorSelect * fLabelColor
color selection widget
virtual void DoTickLength()
Slot connected to the tick length settings.
TGCheckButton * fTicksBoth
check box setting ticks on both axis sides
virtual void DoTitleRotated()
Slot connected to the title rotation.
TGNumberEntry * fLabelOffset
label offset number entry
TGCheckButton * fOptimize
tick optimization check box
virtual void DoLogAxis()
Slot for Log scale setting.
TGCheckButton * fCentered
check button for centered title
virtual void DoNoExponent()
Slot connected to the labels' exponent flag.
TGCheckButton * fDecimal
decimal part check box
virtual void DoDivisions()
Slot connected to the number of divisions.
virtual void DoLabelFont(Int_t font)
Slot connected to the label font.
TGNumberEntry * fDiv3
tertiary axis division number entry
void SetModel(TObject *obj) override
Pick up the used values of axis attributes.
virtual void DoMoreLog()
Slot connected to more Log labels flag.
TGNumberEntry * fLabelSize
label size number entry
virtual void DoLabelSize()
Slot connected to the label size.
TGFontTypeComboBox * fLabelFont
label font combo box
Class to manage histogram axis.
static ULong_t Number2Pixel(Int_t ci)
Static method that given a color index number, returns the corresponding pixel value.
static Int_t GetColor(const char *hexcolor)
Static method returning color number for color specified by hex color string of form: "#rrggbb",...
Like a checkbutton but instead of the check mark there is color area with a little down arrow.
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=nullptr)
Add frame to the composite frame using the specified layout hints.
TGCompositeFrame(const TGCompositeFrame &)=delete
The TGFontTypeComboBox is user callable and it creates a combobox for selecting the font.
This class handles GUI labels.
This class describes layout hints used by the layout classes.
TGNumberEntry is a number entry input widget with up/down buttons.
A text buffer is used in several widgets, like TGTextEntry, TGFileDialog, etc.
A TGTextEntry is a one line text input widget.
ROOT GUI Window base class.
TGedEditor * fGedEditor
manager of this frame
TGedFrame(const TGedFrame &)=delete
Bool_t fInit
init flag for setting signals/slots
virtual void MakeTitle(const char *title)
Create attribute frame title.
virtual void Update()
Update the current pad when an attribute is changed via GUI.
Bool_t fAvoidSignal
flag for executing slots
Mother of all ROOT objects.