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 183 of file qwt_plot_layout.cpp. References invalidate(), setCanvasMargin(), and setLegendPosition(). |
|
|
Destructor.
Definition at line 194 of file qwt_plot_layout.cpp. |
|
||||||||||||||||
|
Recalculate the geometry of all components.
Definition at line 1017 of file qwt_plot_layout.cpp. References invalidate(), QwtLegend::isEmpty(), layoutLegend(), and QwtPlot::legend(). |
|
|
Return the align-canvas-to-axis-scales setting. The canvas may:
Definition at line 288 of file qwt_plot_layout.cpp. |
|
||||||||||||
|
Align the legend to the canvas
Definition at line 709 of file qwt_plot_layout.cpp. |
|
||||||||||||||||
|
Align the ticks of the axis to the canvas borders using the empty corners. Definition at line 850 of file qwt_plot_layout.cpp. |
|
|
Definition at line 254 of file qwt_plot_layout.cpp. Referenced by QwtPlot::canvasMap(). |
|
|
Definition at line 443 of file qwt_plot_layout.cpp. |
|
||||||||||||||||||||
|
Expand all line breaks in text labels, and calculate the height of their widgets in orientation of the text.
Definition at line 744 of file qwt_plot_layout.cpp. |
|
|
Invalidate the geometry of all components.
Definition at line 452 of file qwt_plot_layout.cpp. Referenced by activate(), and QwtPlotLayout(). |
|
||||||||||||
|
Find the geometry for the legend
Definition at line 648 of file qwt_plot_layout.cpp. Referenced by activate(). |
|
|
Definition at line 374 of file qwt_plot_layout.cpp. Referenced by setLegendRatio(). |
|
|
Definition at line 397 of file qwt_plot_layout.cpp. |
|
|
Definition at line 417 of file qwt_plot_layout.cpp. |
|
|
Definition at line 218 of file qwt_plot_layout.cpp. |
|
|
Return a minimum size hint.
Definition at line 464 of file qwt_plot_layout.cpp. References QwtPlot::axisEnabled(), QwtPlot::axisWidget(), and QwtScaleWidget::minimumSizeHint(). |
|
|
Definition at line 428 of file qwt_plot_layout.cpp. |
|
|
Change the align-canvas-to-axis-scales setting. The canvas may:
Definition at line 274 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 236 of file qwt_plot_layout.cpp. Referenced by QwtPlotLayout(). |
|
|
Specify the position of the legend.
Definition at line 364 of file qwt_plot_layout.cpp. References setLegendPosition(). |
|
||||||||||||
|
Specify the position of the legend.
Definition at line 327 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 388 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 207 of file qwt_plot_layout.cpp. |
|
|
Change the spacing of the plot. The spacing is the distance between the plot components.
Definition at line 300 of file qwt_plot_layout.cpp. |
|
|
Definition at line 309 of file qwt_plot_layout.cpp. |
|
|
Definition at line 407 of file qwt_plot_layout.cpp. |
1.4.6