Main Page   Namespace List   Alphabetical List   Compound List   File List   Namespace Members   Compound Members  

AIDA_Info.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 
00004 //                                                                     //
00005 //  This library is free software; you can redistribute it and/or      //
00006 //  modify it under the terms of the GNU Lesser General Public         //
00007 //  License as published by the Free Software Foundation; either       //
00008 //  version 2.1 of the License, or (at your option) any later version. //
00009 //                                                                     //
00010 //  This library is distributed in the hope that it will be useful,    //
00011 //  but WITHOUT ANY WARRANTY; without even the implied warranty of     //
00012 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU   //
00013 //  Lesser General Public License for more details.                    //
00014 //                                                                     //
00015 //  You should have received a copy of the GNU Lesser General Public   //
00016 //  License along with this library (see file COPYING); if not, write  //
00017 //  to the Free Software Foundation, Inc., 59 Temple Place, Suite      //
00018 //  330, Boston, MA 02111-1307 USA, or contact the author.             //
00019 //                                                                     //
00021 
00030 // 
00031 // Created by user sang on Sun Oct  6 17:29:38 2002
00032 // 
00033 
00034 #ifndef ANAPHE_AIDA_INFO_H
00035 #define ANAPHE_AIDA_INFO_H
00036 
00037 
00038 #include "AIDA/IInfo.h"
00039 
00040 
00041 namespace Anaphe {
00042   // Concrete classes from GracePlotter
00043   class LegendBox;
00044 }
00045 
00046 
00047 
00048 namespace Anaphe {
00049 namespace AIDA_Plotter_Grace {
00050 
00051 
00052 
00053 
00058 class AIDA_Info : public AIDA::IInfo
00059 {
00060 public:
00061   AIDA_Info();
00062   AIDA_Info(LegendBox*, bool ownership = true);
00063   virtual ~AIDA_Info();
00064 
00065 private:
00066   AIDA_Info(const AIDA_Info&);
00067   AIDA_Info& operator=(const AIDA_Info&);
00068 
00069 public:
00070   virtual void clear();
00071   virtual void addText(const std::string& text);
00072   virtual void addLegend(const AIDA::IMarkerStyle& style, const std::string & description);
00073   virtual void addLegend(const AIDA::ILineStyle& style, const std::string & description);
00074   virtual void addLegend(const AIDA::IFillStyle& style, const std::string & description);
00075 
00076   LegendBox* theRep();
00077   void setRep(LegendBox&, bool ownership);
00078  
00079 private:
00080   void crisis();
00081 
00082 private:
00083   LegendBox* rep;
00084   bool ownRep;
00085 
00086 };
00087 
00088 
00089 
00090 } // end of namespace AIDA_Plotter_Grace
00091 } // end of namespace Anaphe
00092 
00093 
00094 #endif // ANAPHE_AIDA_INFO_H
00095 

Generated on Tue Jan 28 13:30:45 2003 for Anaphe_AIDA_Plotter_Grace by doxygen1.2.16