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

Axis.h

Go to the documentation of this file.
00001 //LabPlot: Axis.h
00002 
00003 #ifndef AXIS_H
00004 #define AXIS_H
00005 
00006 #include <qstring.h>
00007 #include <qfont.h>
00008 #include <qcolor.h>
00009 #include "Label.h"
00010 #include "defs.h"
00011 
00012 class Axis {
00013 public:
00014         Axis();
00015         void enable(bool b) { e = b; }          
00016         bool enabled() { return e; }            
00017         void setScale(TScale s) { scale=s; }
00018         TScale Scale() { return scale; }
00019         void setLabel(Label *label) { l = label; }      
00020         void setScaling(double s) { scaling=s; }
00021         double Scaling() { return scaling; }
00022         void setShift(double s) { shift=s; }
00023         double Shift() { return shift; }
00024         Label *label() { return l; }            
00025         void setTicsLabelRotation(double r) { tlrotation = r; }
00026         double TicsLabelRotation() { return tlrotation; }
00027         void setTicsLabelPrefix(QString p) { tlprefix=p; }
00028         QString TicsLabelPrefix() { return tlprefix; }
00029         void setTicsLabelSuffix(QString s) { tlsuffix=s; }
00030         QString TicsLabelSuffix() { return tlsuffix; }
00031         void setTicsFont(QFont a) { tf = a; }   
00032         QFont TicsFont() { return tf; }         
00033         void setTicsColor(QColor col) { tc = col; }
00034         QColor TicsColor() { return tc; }
00035         void setTicsLabelColor(QColor col) { tlc = col; }
00036         QColor TicsLabelColor() { return tlc; }
00037         void setTicsLabelFormat(TFormat tmp) { atlf = tmp; }
00038         TFormat TicsLabelFormat() { return atlf; }
00039         void setDateTimeFormat(QString f) { datetimeformat = f; }
00040         QString DateTimeFormat() { return datetimeformat; }
00041         void setTicsLabelPrecision(int tmp) { tlp = tmp; }
00042         int TicsLabelPrecision() { return tlp; }
00043         void setTicsLabelGap(int g) { gap=g; }
00044         int TicsLabelGap() { return gap; }
00045         
00046         void setMajorTics(int t) { majortics = t; }     
00047         int MajorTics() { return majortics; }           
00048         void setMinorTics(int t) { minortics = t; }     
00049         int MinorTics() { return minortics; }           
00050         void enableMajorTics(bool b) { majorticse = b; }
00051         void enableMinorTics(bool b) { minorticse = b; }
00052         bool MajorTicsEnabled() { return majorticse; }
00053         bool MinorTicsEnabled() { return minorticse; }
00054         void setTicsPos(int tp) { ticspos = tp; }
00055         int TicsPos() { return ticspos; }
00056         void setBorderColor(QColor col) { bc = col; }
00057         QColor BorderColor() { return bc; }
00058         void setGridColor(QColor col) { gc = col; }
00059         QColor GridColor() { return gc; }
00060 private:
00061         bool e;                         
00062         TScale scale;
00063         double scaling, shift;  
00064         Label *l;
00065         double tlrotation;              
00066         QString tlprefix, tlsuffix;     
00067         QFont tf;                               
00068         QColor tc, tlc, bc, gc;
00069         TFormat atlf;                   
00070         QString datetimeformat; 
00071         int tlp;                                
00072         int ticspos;                    
00073         int majortics;                  
00074         int minortics;                  
00075         bool majorticse;                
00076         bool minorticse;                
00077         int gap;                                
00078 };
00079 
00080 #endif  //AXIS_H

Generated on Sun Nov 28 22:31:16 2004 for LabPlot by doxygen 1.3.6