Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:28:09

0001 // -*- C++ -*-
0002 // AID-GENERATED
0003 // =========================================================================
0004 // This class was generated by AID - Abstract Interface Definition          
0005 // DO NOT MODIFY, but use the org.freehep.aid.Aid utility to regenerate it. 
0006 // =========================================================================
0007 #ifndef AIDA_ITEXTSTYLE_H
0008 #define AIDA_ITEXTSTYLE_H 1
0009 
0010 //  This file is part of the AIDA library
0011 //  Copyright (C) 2002 by the AIDA team.  All rights reserved.
0012 //  This library is free software and under the terms of the
0013 //  GNU Library General Public License described in the LGPL.txt 
0014 
0015 #include <string>
0016 #include <vector>
0017 
0018 #include "AIDA/IBrushStyle.h"
0019 
0020 namespace AIDA {
0021 
0022 /**
0023  * Style for all text (e.g. axis labels, legend box text etc.)
0024  *
0025  * @author The AIDA team (http://aida.freehep.org/)
0026  */
0027 
0028 class ITextStyle : virtual public IBrushStyle {
0029 
0030 public: 
0031     /// Destructor.
0032     virtual ~ITextStyle() { /* nop */; }
0033 
0034   /** 
0035    * Get list of fonts available in this implementation.
0036    */
0037     virtual std::vector<std::string>  availableFonts() const = 0;
0038 
0039   /**
0040    * Get current font size.
0041    */
0042     virtual double fontSize() const = 0;
0043 
0044   /**
0045    * Set current font size.
0046    * @return false if size not supported by this implementation.
0047    */
0048     virtual bool setFontSize(double size) = 0;
0049 
0050   /**
0051    * Get name of current font.
0052    */
0053     virtual std::string font() const = 0;
0054 
0055   /**
0056    * Set current font, e.g. "timesNewRoman" or "courier".
0057    * @return false if font not supported by this implementation.
0058    */
0059     virtual bool setFont(const std::string & font) = 0;
0060 
0061     virtual bool isBold() const = 0;
0062 
0063     virtual bool isItalic() const = 0;
0064 
0065     virtual bool isUnderlined() const = 0;
0066 
0067     virtual bool setBold(bool bold = true) = 0;
0068 
0069     virtual bool setItalic(bool italic = true) = 0;
0070 
0071     virtual bool setUnderlined(bool underlined = true) = 0;
0072 }; // class
0073 } // namespace AIDA
0074 #endif /* ifndef AIDA_ITEXTSTYLE_H */