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 181 of file qwt_plot_layout.cpp. References invalidate(), setCanvasMargin(), and setLegendPosition(). |
|
|
Destructor.
Definition at line 192 of file qwt_plot_layout.cpp. |
|
||||||||||||||||
|
Recalculate the geometry of all components.
Definition at line 988 of file qwt_plot_layout.cpp. References alignLegend(), alignScales(), expandLineBreaks(), invalidate(), QwtLegend::isEmpty(), layoutLegend(), QwtPlot::legend(), and scaleRect(). |
|
|
Return the align-canvas-to-axis-scales setting. The canvas may:
Definition at line 293 of file qwt_plot_layout.cpp. |
|
||||||||||||
|
Align the legend to the canvas
Definition at line 710 of file qwt_plot_layout.cpp. Referenced by activate(). |
|
||||||||||||||||
|
Align the ticks of the axis to the canvas borders using the empty corners. Definition at line 851 of file qwt_plot_layout.cpp. References qwtMax, qwtMin, and scaleRect(). Referenced by activate(). |
|
|
Definition at line 256 of file qwt_plot_layout.cpp. Referenced by QwtPlot::canvasMap(), and QwtPlot::print(). |
|
|
Definition at line 451 of file qwt_plot_layout.cpp. Referenced by QwtPlot::print(). |
|
||||||||||||||||||||
|
Expand all line breaks in text labels, and calculate the height of their widgets in orientation of the text.
Definition at line 745 of file qwt_plot_layout.cpp. References qwtMin. Referenced by activate(). |
|
|
Invalidate the geometry of all components.
Definition at line 460 of file qwt_plot_layout.cpp. Referenced by activate(), and QwtPlotLayout(). |
|
||||||||||||
|
Find the geometry for the legend
Definition at line 651 of file qwt_plot_layout.cpp. References legendRect(), qwtMax, and qwtMin. Referenced by activate(). |
|
|
Definition at line 379 of file qwt_plot_layout.cpp. Referenced by setLegendRatio(). |
|
|
Definition at line 405 of file qwt_plot_layout.cpp. |
|
|
Definition at line 425 of file qwt_plot_layout.cpp. Referenced by layoutLegend(). |
|
|
Definition at line 219 of file qwt_plot_layout.cpp. |
|
|
|
Definition at line 436 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 278 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 237 of file qwt_plot_layout.cpp. Referenced by QwtPlotLayout(). |
|
|
Specify the position of the legend.
Definition at line 368 of file qwt_plot_layout.cpp. References setLegendPosition(). |
|
||||||||||||
|
Specify the position of the legend.
Definition at line 334 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 395 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 206 of file qwt_plot_layout.cpp. |
|
|
Change the spacing of the plot. The spacing is the distance between the plot components.
Definition at line 306 of file qwt_plot_layout.cpp. References qwtMax. |
|
|
Definition at line 315 of file qwt_plot_layout.cpp. |
|
|
Definition at line 415 of file qwt_plot_layout.cpp. |
1.4.4