Auxiliary class to set line attributes.
More...
#include <JLineAttributes.hh>
|
| | JLineAttributes (const Width_t width=2) |
| | Constructor.
|
| |
| void | setLineWidth (const Width_t width) |
| | Set line width.
|
| |
| virtual void | rewind () override |
| | Rewind index.
|
| |
| virtual bool | hasNext () override |
| | Check availability of next element.
|
| |
| virtual const pointer_type & | next () override |
| | Get next element.
|
| |
| const TAttLine & | get (unsigned int index) |
| | Get line attributes.
|
| |
| virtual skip_type | skip (const skip_type ns) |
| | Skip items.
|
| |
Auxiliary class to set line attributes.
Definition at line 26 of file JLineAttributes.hh.
◆ pointer_type
◆ JLineAttributes()
| JROOT::JLineAttributes::JLineAttributes |
( |
const Width_t | width = 2 | ) |
|
|
inline |
Constructor.
- Parameters
-
Definition at line 40 of file JLineAttributes.hh.
40 :
43 {
44 for (int i = 1; i <= 10; ++i) {
45 push_back(TAttLine(kBlack, i, width));
46 }
47 }
◆ getInstance()
Get reference to unique instance of this class object.
- Returns
- reference to this class object
Definition at line 55 of file JLineAttributes.hh.
56 {
58
59 return line;
60 }
JLineAttributes(const Width_t width=2)
Constructor.
◆ setLineWidth()
| void JROOT::JLineAttributes::setLineWidth |
( |
const Width_t | width | ) |
|
|
inline |
Set line width.
- Parameters
-
Definition at line 68 of file JLineAttributes.hh.
69 {
70 for (iterator i = this->begin(); i != this->end(); ++i) {
71 i->SetLineWidth(width);
72 }
73 }
◆ rewind()
| virtual void JROOT::JLineAttributes::rewind |
( |
| ) |
|
|
inlineoverridevirtual |
◆ hasNext()
| virtual bool JROOT::JLineAttributes::hasNext |
( |
| ) |
|
|
inlineoverridevirtual |
◆ next()
| virtual const pointer_type & JROOT::JLineAttributes::next |
( |
| ) |
|
|
inlineoverridevirtual |
Get next element.
- Returns
- pointer to element
Implements JLANG::JObjectIterator< T >.
Definition at line 101 of file JLineAttributes.hh.
102 {
104
105 if (index < this->size()) {
106 ps.reset(&this->at(
index));
107 }
108
110
112
113 return ps;
114 }
JRewindableObjectIterator< TAttLine >::pointer_type pointer_type
◆ get()
| const TAttLine & JROOT::JLineAttributes::get |
( |
unsigned int | index | ) |
|
|
inline |
Get line attributes.
- Parameters
-
- Returns
- line attributes
Definition at line 123 of file JLineAttributes.hh.
124 {
125 return this->at(
index%this->size());
126 }
◆ skip()
◆ index
| unsigned int JROOT::JLineAttributes::index |
|
private |
The documentation for this class was generated from the following file: