1 #ifndef __JGIZMO__JLINEATTRIBUTES__
2 #define __JGIZMO__JLINEATTRIBUTES__
16 namespace JPP {
using namespace JGIZMO; }
42 std::vector<TAttLine>(),
45 for (
int i = 1; i <= 10; ++i) {
46 push_back(TAttLine(kBlack, i, width));
71 for (iterator i = this->begin(); i != this->end(); ++i) {
72 i->SetLineWidth(width);
93 return !this->empty();
106 if (index < this->size()) {
107 ps.reset(&this->at(
index));
124 const TAttLine&
get(
unsigned int index)
126 return this->at(
index%this->size());
Auxiliary class to set line attributes.
Interface for object iteration with rewinding.
virtual void rewind()
Rewind index.
JRewindableObjectIterator< TAttLine >::pointer_type pointer_type
Template implementation of class that holds pointer to object(s).
virtual bool hasNext()
Check availability of next element.
static JLineAttributes & getInstance()
Get reference to unique instance of this class object.
virtual const pointer_type & next()
Get next element.
JLineAttributes(const Width_t width=2)
Constructor.
void setLineWidth(const Width_t width)
Set line width.