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;
205 if (graphLineWidth >= 0) {
254 if (color->GetAlpha() == 1.) {
include TDocParser_001 C image html pict1_TDocParser_001 png width
virtual ~TAttLineEditor()
Destructor of line editor.
TAttLineEditor(const TGWindow *p=0, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor of line attributes GUI.
virtual void DoAlpha()
Slot to set the alpha value.
virtual void DoLineColor(Pixel_t color)
Slot connected to the line color.
virtual void DoLineAlphaColor(ULong_t p)
Slot connected to the color with alpha.
virtual void DoLineWidth(Int_t width)
Slot connected to the line width.
virtual void GetCurAlpha()
Slot to update alpha value on click on Slider.
virtual void DoLineStyle(Int_t style)
Slot connected to the line style.
TGLineStyleComboBox * fStyleCombo
virtual void DoLiveAlpha(Int_t a)
Slot to set alpha value online.
TGColorSelect * fColorSelect
TGNumberEntryField * fAlphaField
virtual void SetModel(TObject *obj)
Pick up the used line attributes.
TGLineWidthComboBox * fWidthCombo
virtual void ConnectSignals2Slots()
Connect signals to slots.
virtual void DoAlphaField()
Slot to set the alpha value from the entry field.
virtual Color_t GetLineColor() const
Return the line color.
virtual void SetLineStyle(Style_t lstyle)
Set the line style.
virtual Width_t GetLineWidth() const
Return the line width.
virtual void SetLineWidth(Width_t lwidth)
Set the line width.
virtual void SetLineColor(Color_t lcolor)
Set the line color.
virtual Style_t GetLineStyle() const
Return the line style.
static Bool_t SupportAlpha()
Static function returning "true" if transparency is supported.
The color creation and management class.
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",...
static Int_t GetColorTransparent(Int_t color, Float_t a)
Static function: Returns the transparent color number corresponding to n.
void SetColor(Pixel_t color, Bool_t emit=kTRUE)
Set color.
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 &)
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=0)
Add frame to the composite frame using the specified layout hints.
virtual void Resize(UInt_t w=0, UInt_t h=0)
Resize the frame.
virtual void Disable(Bool_t on=kTRUE)
virtual Double_t GetNumber() const
Get the numeric value (floating point representation).
virtual void SetNumber(Double_t val)
Set the numeric value (floating point representation).
virtual Int_t GetPosition() const
virtual void SetPosition(Int_t pos)
virtual void SetRange(Int_t min, Int_t max)
virtual void SetEnabled(Bool_t flag=kTRUE)
void SetEnabled(Bool_t flag=kTRUE)
virtual void MakeTitle(const char *title)
Create attribute frame title.
virtual void Update()
Update the current pad when an attribute is changed via GUI.
A Graph is a graphics object made of two arrays X and Y with npoints each.
Mother of all ROOT objects.
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
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.