|
OpenMS
2.5.0
|
Go to the documentation of this file.
38 #include <OpenMS/VISUAL/OpenMS_GUIConfig.h>
71 typedef std::vector<std::vector<double> >
GridVector;
81 void setMargin(
UInt size);
87 void showLegend(
bool show_legend);
90 bool isLegendShown()
const;
93 void setLegend(
const String & legend);
96 const String & getLegend();
102 void setLogScale(
bool is_log);
108 void setInverseOrientation(
bool inverse_orientation);
111 bool hasInverseOrientation();
114 void setAllowShortNumbers(
bool short_nums);
117 double getAxisMinimum()
const;
120 double getAxisMaximum()
const;
123 void paint(QPainter * painter, QPaintEvent * e);
128 void setAxisBounds(
double min,
double max);
131 void setTickLevel(
UInt level);
168 void paintEvent(QPaintEvent *)
override;
UInt margin_
margin of axis
Definition: AxisWidget.h:150
std::vector< std::vector< double > > GridVector
Type definitions.
Definition: AxisWidget.h:72
GridVector grid_line_
Vector that defines the position of the ticks/gridlines and the shown values on axis.
Definition: AxisWidget.h:135
Widget that represents an axis of a graph.
Definition: AxisWidget.h:63
bool allow_short_numbers_
true if k/M/G units can be used
Definition: AxisWidget.h:165
bool show_legend_
display of legend enabled or not
Definition: AxisWidget.h:141
UInt tick_level_
maximum number of tick levels (default=2)
Definition: AxisWidget.h:162
double min_
minimum value on the axis
Definition: AxisWidget.h:153
bool is_inverse_orientation_
true if axis label are displayed in inverse order (left to right or bottom to top)
Definition: AxisWidget.h:147
double max_
maximum value on the axis
Definition: AxisWidget.h:156
String legend_
text/unit on axis
Definition: AxisWidget.h:159
Alignment
Where the axis is placed.
Definition: AxisPainter.h:62
A more convenient string class.
Definition: String.h:58
AxisPainter::Alignment alignment_
Position of the axis (right, left, top, down as defined in ALIGNMENT_ENUM)
Definition: AxisWidget.h:144
bool is_log_
format of axis scale (linear or logarithmic)
Definition: AxisWidget.h:138
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
unsigned int UInt
Unsigned integer type.
Definition: Types.h:94