COPASI API  4.16.103
CLabel.h
Go to the documentation of this file.
1 // Begin CVS Header
2 // $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/layoutUI/CLabel.h,v $
3 // $Revision: 1.3 $
4 // $Name: $
5 // $Author: shoops $
6 // $Date: 2011/12/13 19:49:57 $
7 // End CVS Header
8 
9 // Copyright (C) 2011 by Pedro Mendes, Virginia Tech Intellectual
10 // Properties, Inc., University of Heidelberg, and The University
11 // of Manchester.
12 // All rights reserved.
13 
14 // Copyright (C) 2008 by Pedro Mendes, Virginia Tech Intellectual
15 // Properties, Inc., EML Research, gGmbH, University of Heidelberg,
16 // and The University of Manchester.
17 // All rights reserved.
18 
19 #ifndef CLABEL_H_
20 #define CLABEL_H_
21 
22 #include <string>
23 
24 #include "copasi.h"
25 #include "layout/CLGlyphs.h"
26 
27 class CLabel : public CLTextGlyph
28 {
29 private:
34 
35  void initOrigValues();
36 
37 public:
38 
39  CLabel();
40  CLabel(const CLTextGlyph & tg);
41  CLabel(const CLabel & l);
42 
44  C_FLOAT64 getOrigWidth() {return this->orig_width;}
45 
46  virtual void scale(const double & scaleFactor);
47  void adaptToHeight(const double & h);
48  void scalePosition(const double & hz);
49 
50  virtual std::string getText() const;
51 };
52 
53 #endif
C_FLOAT64 getOrigHeight()
Definition: CLabel.h:43
void initOrigValues()
Definition: CLabel.cpp:43
C_FLOAT64 orig_width
Definition: CLabel.h:32
C_FLOAT64 getOrigWidth()
Definition: CLabel.h:44
CLabel()
Definition: CLabel.cpp:25
void adaptToHeight(const double &h)
Definition: CLabel.cpp:62
C_FLOAT64 orig_height
Definition: CLabel.h:33
virtual std::string getText() const
Definition: CLabel.cpp:80
C_FLOAT64 orig_y
Definition: CLabel.h:31
Definition: CLabel.h:27
#define C_FLOAT64
Definition: copasi.h:92
virtual void scale(const double &scaleFactor)
Definition: CLabel.cpp:52
void scalePosition(const double &hz)
Definition: CLabel.cpp:69
C_FLOAT64 orig_x
Definition: CLabel.h:30