65 fColorSelect->Associate(
this);
68 fStyleCombo->Resize(137, 20);
70 fStyleCombo->Associate(
this);
73 fWidthCombo->Resize(90, 20);
75 fWidthCombo->Associate(
this);
82 fAlpha->SetRange(0,1000);
87 fAlphaField->Resize(40,20);
89 fAlpha->SetEnabled(
kFALSE);
91 fAlphaField->SetEnabled(
kFALSE);
109 fColorSelect->
Connect(
"ColorSelected(Pixel_t)",
"TAttLineEditor",
this,
"DoLineColor(Pixel_t)");
110 fColorSelect->
Connect(
"AlphaColorSelected(ULong_t)",
"TAttLineEditor",
this,
"DoLineAlphaColor(ULong_t)");
111 fStyleCombo->
Connect(
"Selected(Int_t)",
"TAttLineEditor",
this,
"DoLineStyle(Int_t)");
112 fWidthCombo->
Connect(
"Selected(Int_t)",
"TAttLineEditor",
this,
"DoLineWidth(Int_t)");
113 fAlpha->
Connect(
"Released()",
"TAttLineEditor",
this,
"DoAlpha()");
114 fAlpha->
Connect(
"PositionChanged(Int_t)",
"TAttLineEditor",
this,
"DoLiveAlpha(Int_t)");
116 fAlpha->
Connect(
"Pressed()",
"TAttLineEditor",
this,
"GetCurAlpha()");
127 if (!attline)
return;
203 if (dynamic_cast<TGraph*>(
fAttLine)) {
205 if (graphLineWidth >= 0) {
254 if (color->GetAlpha() == 1.) {
257 color->SetAlpha((
Float_t)a/1000);
virtual void SetLineWidth(Width_t lwidth)
Set the line width.
virtual Int_t GetPosition() const
TGLineStyleComboBox * fStyleCombo
void SetColor(Pixel_t color, Bool_t emit=kTRUE)
Set color.
virtual void DoAlphaField()
Slot to set the alpha value from the entry field.
virtual Width_t GetLineWidth() const
Return the line width.
virtual ~TAttLineEditor()
Destructor of line editor.
virtual void DoLineWidth(Int_t width)
Slot connected to the line width.
virtual Style_t GetLineStyle() const
Return the line style.
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...
virtual Double_t GetNumber() const
Get the numeric value (floating point representation).
TGColorSelect * fColorSelect
virtual void SetModel(TObject *obj)
Pick up the used line attributes.
static Bool_t SupportAlpha()
Static function returning "true" if transparency is supported.
virtual void SetLineColor(Color_t lcolor)
Set the line color.
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...
virtual void Disable(Bool_t on=kTRUE)
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
virtual void DoLineColor(Pixel_t color)
Slot connected to the line color.
virtual void SetPosition(Int_t pos)
static Int_t GetColor(const char *hexcolor)
Static method returning color number for color specified by hex color string of form: "#rrggbb"...
static Int_t GetColorTransparent(Int_t color, Float_t a)
Static function: Returns the transparent color number corresponding to n.
TGLineWidthComboBox * fWidthCombo
virtual Color_t GetLineColor() const
Return the line color.
static ULong_t Number2Pixel(Int_t ci)
Static method that given a color index number, returns the corresponding pixel value.
virtual void DoLineAlphaColor(ULong_t p)
Slot connected to the color with alpha.
The color creation and management class.
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=0)
Add frame to the composite frame using the specified layout hints.
virtual void DoAlpha()
Slot to set the alpha value.
virtual void SetLineStyle(Style_t lstyle)
Set the line style.
std::string MakeTitle(std::string_view version, std::string_view histname, std::string_view title, std::string_view axis)
TGNumberEntryField * fAlphaField
Mother of all ROOT objects.
virtual void SetNumber(Double_t val)
Set the numeric value (floating point representation).
double f2(const double *x)
virtual void GetCurAlpha()
Slot to update alpha value on click on Slider.
virtual void DoLineStyle(Int_t style)
Slot connected to the line style.
virtual void ConnectSignals2Slots()
Connect signals to slots.
virtual void DoLiveAlpha(Int_t a)
Slot to set alpha value online.