Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members

Style.h

Go to the documentation of this file.
00001 //LabPlot : Style.cc
00002 
00003 #include <qcolor.h>
00004 
00005 class Style
00006 {
00007 public:
00008         Style(int t=0, QColor c="blue", bool f=0, QColor fc="green", int w=1,int p=1, int b=1 );
00009         void save(QTextStream *t);
00010         int open(QTextStream *t,int version);           // returns graph type
00011         int Type() { return type; }
00012         void setType(int t) { type = t; }
00013         QColor Color() { return color; }
00014         void setColor(QString c) { color = QColor(c); }
00015         int Width() { return width; }
00016         void setWidth(int w) { width = w; }
00017         int PenStyle() { return penStyle; }
00018         void setPenStyle(int p) { penStyle = p; }
00019         int Brush() { return brush; }
00020         void setBrush (int b) { brush = b; }
00021         bool isFilled() { return fill; }
00022         void setFilled(int f) { fill = f; }
00023         QColor FillColor() { return fillcolor; }
00024         void setFillColor(QString c) { fillcolor = QColor(c); }
00025         int BoxWidth() { return boxwidth; }
00026         void setBoxWidth(int b) { boxwidth = b; }
00027         bool AutoBoxWidth() { return autoboxwidth; }
00028         void setAutoBoxWidth(bool b) { autoboxwidth = b; }
00029 private:
00030         int type;               // type : line,noline,steps,boxes,impulses,yboxes
00031         QColor color;           // line color
00032         int width;              // line width
00033         bool fill;              // filled to baseline
00034         QColor fillcolor;       // fill color
00035         int penStyle;           // pen style :NoPen, SolidLine, DashLine, DotLine, DashDotLine, DashDotDotLine
00036         int brush;              // fill brush : NoBrush, Solid, Dense1, Dense2, Dense3, Dense4, Dense5,
00037                                 //       Dense6, Dense7, Horizontal, Vertical, Cross, BDiag, FDiag, DiagCross
00038         int boxwidth;           // width for type boxes
00039         bool autoboxwidth;      // automatic box width
00040 };

Generated on Fri Mar 25 19:47:03 2005 for LabPlot by doxygen 1.3.6