Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

Txq2dAxis.h

Go to the documentation of this file.
00001 //---------------------------------------------------------------------------
00002 //
00003 // File:    Txq2dAxis.h
00004 //
00005 // Purpose: Constructs an X or Y axis for the Txq2dCanvas.
00006 //
00007 // Version: $Id: Txq2dAxis.h,v 1.7 2001/10/10 22:41:05 kgl Exp $
00008 //
00009 // Author:  Kelly G. Luetkemeyer
00010 //
00011 //---------------------------------------------------------------------------
00012 
00013 #ifndef TXQ_2DAXIS_H
00014 #define TXQ_2DAXIS_H
00015 
00016 // std includes
00017 #include <vector>
00018  
00019 // Tx includes
00020 #include <TxqAxis.h>
00021 #include <TxqLinViewPort.h>
00022 #include "Txq2dDrawable.h"
00023 #include "Txq2dLabel.h"
00024 
00037 class Txq2dAxis: public Txq2dDrawable, public TxqAxis
00038 {
00039 
00040 public:
00041 
00045   Txq2dAxis();
00046 
00050   virtual ~Txq2dAxis();
00051 
00056   void setTitleLabel(QString lablel);
00057 
00064   void setTitleLabel(QString lablel, double xpos, double ypos);
00065 
00070   QString getTitleLabel();
00071 
00076   void setTitleLabelFont(QFont f);
00077  
00082   void setTitleLabelColor(QColor c);
00083  
00089   int getAxisMaxWidth();
00090 
00096   int getAxisMaxHeight();
00097 
00102   void paint(QPainter* g );
00103 
00104 
00105 protected:
00106 
00107 
00108 private:
00109 
00114   inline void paintAxis(QPainter* g);
00115 
00120   inline void paintTickMarks(QPainter* g);
00121 
00126   inline void paintLogTickMarks(QPainter* g);
00127 
00132   inline void paintLabels(QPainter* g);
00133 
00134 
00138   Txq2dLabel titleLabel;
00139 
00143   double titleX;
00147   double titleY;
00148 
00152   int yTickLabelPos;
00153 
00154 };
00155 #endif
Copyright Tech-X Corporation, all rights reserved.