Organizes the geometry for the different QwtPlot components.
Definition at line 22 of file qwt_plot_layout.h.
Public Types | |
enum | Options { AlignScales = 1, IgnoreScrollbars = 2, IgnoreFrames = 4, IgnoreMargin = 8, IgnoreLegend = 16 } |
Public Member Functions | |
QwtPlotLayout () | |
virtual | ~QwtPlotLayout () |
void | setMargin (int) |
int | margin () const |
void | setCanvasMargin (int margin, int axis=-1) |
int | canvasMargin (int axis) const |
void | setAlignCanvasToScales (bool) |
bool | alignCanvasToScales () const |
void | setSpacing (int) |
int | spacing () const |
void | setLegendPosition (QwtPlot::LegendPosition pos, double ratio) |
void | setLegendPosition (QwtPlot::LegendPosition pos) |
QwtPlot::LegendPosition | legendPosition () const |
void | setLegendRatio (double ratio) |
double | legendRatio () const |
virtual QSize | minimumSizeHint (const QwtPlot *) const |
virtual void | activate (const QwtPlot *, const QRect &rect, int options=0) |
virtual void | invalidate () |
const QRect & | titleRect () const |
const QRect & | legendRect () const |
const QRect & | scaleRect (int axis) const |
const QRect & | canvasRect () const |
Protected Member Functions | |
QRect | layoutLegend (int options, const QRect &) const |
QRect | alignLegend (const QRect &canvasRect, const QRect &legendRect) const |
void | expandLineBreaks (int options, const QRect &rect, int &dimTitle, int dimAxes[QwtPlot::axisCnt]) const |
void | alignScales (int options, QRect &canvasRect, QRect scaleRect[QwtPlot::axisCnt]) const |
|
Constructor.
Definition at line 191 of file qwt_plot_layout.cpp. References invalidate(), setCanvasMargin(), and setLegendPosition(). |
|
Destructor.
Definition at line 202 of file qwt_plot_layout.cpp. |
|
Recalculate the geometry of all components.
Definition at line 1000 of file qwt_plot_layout.cpp. References alignLegend(), alignScales(), expandLineBreaks(), invalidate(), layoutLegend(), and scaleRect(). |
|
Return the align-canvas-to-axis-scales setting. The canvas may:
Definition at line 303 of file qwt_plot_layout.cpp. |
|
Align the legend to the canvas
Definition at line 719 of file qwt_plot_layout.cpp. References canvasRect(), and legendRect(). Referenced by activate(). |
|
Align the ticks of the axis to the canvas borders using the empty corners. Definition at line 863 of file qwt_plot_layout.cpp. References canvasRect(), and scaleRect(). Referenced by activate(). |
|
Definition at line 266 of file qwt_plot_layout.cpp. Referenced by QwtPlot::canvasMap(), and QwtPlot::print(). |
|
Definition at line 461 of file qwt_plot_layout.cpp. Referenced by alignLegend(), alignScales(), and QwtPlot::print(). |
|
Expand all line breaks in text labels, and calculate the height of their widgets in orientation of the text.
Definition at line 754 of file qwt_plot_layout.cpp. References QwtLegend::heightForWidth(). Referenced by activate(). |
|
Invalidate the geometry of all components.
Definition at line 470 of file qwt_plot_layout.cpp. Referenced by activate(), QwtPlot::print(), and QwtPlotLayout(). |
|
Find the geometry for the legend
Definition at line 660 of file qwt_plot_layout.cpp. References legendRect(). Referenced by activate(). |
|
Definition at line 389 of file qwt_plot_layout.cpp. Referenced by setLegendRatio(). |
|
Definition at line 415 of file qwt_plot_layout.cpp. |
|
Definition at line 435 of file qwt_plot_layout.cpp. Referenced by alignLegend(), and layoutLegend(). |
|
Definition at line 229 of file qwt_plot_layout.cpp. |
|
Return a minimum size hint.
Definition at line 482 of file qwt_plot_layout.cpp. References QwtScaleWidget::baseLineDist(), QwtLegend::heightForWidth(), QwtLegend::isEmpty(), QwtScaleDraw::majTickLength(), QwtScaleWidget::minBorderDist(), QwtScaleWidget::minimumSizeHint(), QwtScaleWidget::scaleDraw(), QwtLegend::sizeHint(), and QwtLegend::verticalScrollBar(). |
|
Definition at line 446 of file qwt_plot_layout.cpp. Referenced by activate(), alignScales(), and QwtPlot::print(). |
|
Change the align-canvas-to-axis-scales setting. The canvas may:
Definition at line 288 of file qwt_plot_layout.cpp. |
|
Change a margin of the canvas. The margin is the space above/below the scale ticks. A negative margin will be set to -1, excluding the borders of the scales.
Definition at line 247 of file qwt_plot_layout.cpp. Referenced by QwtPlotLayout(). |
|
Specify the position of the legend.
Definition at line 378 of file qwt_plot_layout.cpp. References setLegendPosition(). |
|
Specify the position of the legend.
Definition at line 344 of file qwt_plot_layout.cpp. Referenced by QwtPlotLayout(), setLegendPosition(), and setLegendRatio(). |
|
Specify the relative size of the legend in the plot
Definition at line 405 of file qwt_plot_layout.cpp. References legendPosition(), and setLegendPosition(). |
|
Change the margin of the plot. The margin is the space around all components.
Definition at line 216 of file qwt_plot_layout.cpp. |
|
Change the spacing of the plot. The spacing is the distance between the plot components.
Definition at line 316 of file qwt_plot_layout.cpp. |
|
Definition at line 325 of file qwt_plot_layout.cpp. |
|
Definition at line 425 of file qwt_plot_layout.cpp. |