PlotAttributes.h
1//-*-C++-*-
2/***************************************************************************
3 *
4 * Copyright (C) 2006 by Willem van Straten
5 * Licensed under the Academic Free License version 2.1
6 *
7 ***************************************************************************/
8
9// psrchive/More/Plotting/Pulsar/PlotAttributes.h
10
11#ifndef __Pulsar_PlotAttributes_h
12#define __Pulsar_PlotAttributes_h
13
14#include "Pulsar/PlotLabel.h"
15#include "TextInterface.h"
16
17namespace Pulsar {
18
21
22 public:
23
26
29
30 // Text interface to the PlotAttributes class
31 class Interface : public TextInterface::To<PlotAttributes> {
32 public:
33 Interface (PlotAttributes* = 0);
34 };
35
37 virtual void set_character_height (float h);
38 float get_character_height () const { return character_height; }
39
41 virtual void set_character_font (int font);
42 int get_character_font () const { return character_font; }
43
45 virtual void set_line_width (int width);
46 int get_line_width () const { return line_width; }
47
49 PlotLabel* get_label_above () { return above; }
52
54 virtual void apply_set (const std::string& name);
56 std::string get_applied () const { return set_applied; }
57
59 virtual void publication_quality ();
60
62 virtual void no_labels ();
63
65 void setup ();
66
67 protected:
68
70
71 float character_height;
72 int character_font;
73 int line_width;
74
75 std::string set_applied;
76
77 };
78
79}
80
81#endif
virtual void set_character_font(int font)
Set the character font.
Definition PlotAttributes.C:33
virtual void no_labels()
Remove all plot labels.
Definition PlotAttributes.C:59
virtual void apply_set(const std::string &name)
Apply the named customization option set.
Definition PlotAttributes.C:65
std::string get_applied() const
Get the applied set.
Definition PlotAttributes.h:56
PlotAttributes()
Default constructor.
Definition PlotAttributes.C:11
PlotLabel * get_label_above()
Get the above-frame label.
Definition PlotAttributes.h:49
void set_label_above(PlotLabel *)
Set the above-frame label.
Definition PlotAttributes.C:44
void setup()
Set the plot colour line and text attributes.
Definition PlotAttributes.C:76
virtual void set_line_width(int width)
Set the line width.
Definition PlotAttributes.C:39
virtual void set_character_height(float h)
Set the character height.
Definition PlotAttributes.C:27
~PlotAttributes()
Destructor.
Definition PlotAttributes.C:22
virtual void publication_quality()
Set publication quality character height and font and line width.
Definition PlotAttributes.C:49
Stores three labels: left, centre, and right.
Definition PlotLabel.h:22
Defines the PSRCHIVE library.
Definition CalSource.h:17

Generated using doxygen 1.14.0