sventon subversion web client - http://www.sventon.org
[show recent changes]
 
  Help
HEAD
Rev: 10092 - svn://svn.freehep.org/svn / freehep / cvs / aidainclude / trunk / AIDA / ITextStyle.h
Show File - ITextStyle.h  [show properties]
Search for Help
spinner
// -*- C++ -*-
// AID-GENERATED
// =========================================================================
// This class was generated by AID - Abstract Interface Definition
// DO NOT MODIFY, but use the org.freehep.aid.Aid utility to regenerate it.
// =========================================================================
#ifndef AIDA_ITEXTSTYLE_H
#define AIDA_ITEXTSTYLE_H 1
10  // This file is part of the AIDA library
11  // Copyright (C) 2002 by the AIDA team. All rights reserved.
12  // This library is free software and under the terms of the
13  // GNU Library General Public License described in the LGPL.txt
14 
15  #include <string>
16  #include <vector>
17 
18  #include "AIDA/IBrushStyle.h"
19 
20  namespace AIDA {
21 
22  /**
23   * Style for all text (e.g. axis labels, legend box text etc.)
24   *
25   * @author The AIDA team (http://aida.freehep.org/)
26   */
27 
28  class ITextStyle : virtual public IBrushStyle {
29 
30  public:
31      /// Destructor.
32      virtual ~ITextStyle() { /* nop */; }
33 
34    /**
35     * Get list of fonts available in this implementation.
36     */
37      virtual std::vector<std::string> availableFonts() const = 0;
38 
39    /**
40     * Get current font size.
41     */
42      virtual double fontSize() const = 0;
43 
44    /**
45     * Set current font size.
46     * @return false if size not supported by this implementation.
47     */
48      virtual bool setFontSize(double size) = 0;
49 
50    /**
51     * Get name of current font.
52     */
53      virtual std::string font() const = 0;
54 
55    /**
56     * Set current font, e.g. "timesNewRoman" or "courier".
57     * @return false if font not supported by this implementation.
58     */
59      virtual bool setFont(const std::string & font) = 0;
60 
61      virtual bool isBold() const = 0;
62 
63      virtual bool isItalic() const = 0;
64 
65      virtual bool isUnderlined() const = 0;
66 
67      virtual bool setBold(bool bold = true) = 0;
68 
69      virtual bool setItalic(bool italic = true) = 0;
70 
71      virtual bool setUnderlined(bool underlined = true) = 0;
72  }; // class
73  } // namespace AIDA
74  #endif /* ifndef AIDA_ITEXTSTYLE_H */


feed icon

sventon 2.5.1