1 #ifndef __JROOT__JLINEATTRIBUTES__
2 #define __JROOT__JLINEATTRIBUTES__
16 namespace JPP {
using namespace JROOT; }
41 std::vector<TAttLine>(),
44 for (
int i = 1;
i <= 10; ++
i) {
45 push_back(TAttLine(kBlack,
i, width));
70 for (iterator
i = this->begin();
i != this->end(); ++
i) {
71 i->SetLineWidth(width);
92 return !this->empty();
105 if (index < this->size()) {
123 const TAttLine&
get(
unsigned int index)
125 return this->at(
index%this->size());
JRewindableObjectIterator< TAttLine >::pointer_type pointer_type
virtual bool hasNext() override
Check availability of next element.
Interface for object iteration with rewinding.
Auxiliary class to set line attributes.
virtual const pointer_type & next() override
Get next element.
virtual void rewind() override
Rewind index.
static JLineAttributes & getInstance()
Get reference to unique instance of this class object.
JLineAttributes(const Width_t width=2)
Constructor.
void setLineWidth(const Width_t width)
Set line width.
virtual void reset() override
Reset pointer.