QwtPlotLayout(3) | Qwt User's Guide | QwtPlotLayout(3) |
QwtPlotLayout - Layout engine for QwtPlot.
#include <qwt_plot_layout.h>
enum Option { AlignScales = 0x01,
IgnoreScrollbars = 0x02, IgnoreFrames = 0x04,
IgnoreLegend = 0x08, IgnoreTitle = 0x10, IgnoreFooter =
0x20 }
typedef QFlags< Option > Options
Layout options.
QwtPlotLayout ()
Constructor. virtual ~QwtPlotLayout ()
Destructor. void setCanvasMargin (int margin, int axis=-1)
int canvasMargin (int axisId) const
void setAlignCanvasToScales (bool)
Set the align-canvas-to-axis-scales flag for all axes. void
setAlignCanvasToScale (int axisId, bool)
bool alignCanvasToScale (int axisId) const
void setSpacing (int)
int spacing () const
void setLegendPosition (QwtPlot::LegendPosition pos, double
ratio)
Specify the position of the legend. void setLegendPosition
(QwtPlot::LegendPosition pos)
Specify the position of the legend. QwtPlot::LegendPosition
legendPosition () const
void setLegendRatio (double ratio)
double legendRatio () const
virtual QSize minimumSizeHint (const QwtPlot *) const
virtual void activate (const QwtPlot *, const QRectF
&plotRect, Options options=0x00)
Recalculate the geometry of all components. virtual void invalidate ()
QRectF titleRect () const
QRectF footerRect () const
QRectF legendRect () const
QRectF scaleRect (int axis) const
QRectF canvasRect () const
void setTitleRect (const QRectF &)
Set the geometry for the title. void setFooterRect (const QRectF &)
Set the geometry for the footer. void setLegendRect (const QRectF
&)
Set the geometry for the legend. void setScaleRect (int axis, const
QRectF &)
Set the geometry for an axis. void setCanvasRect (const QRectF &)
Set the geometry for the canvas. QRectF layoutLegend (Options
options, const QRectF &) const
QRectF alignLegend (const QRectF &canvasRect, const QRectF
&legendRect) const
void expandLineBreaks (Options options, const QRectF &rect,
int &dimTitle, int &dimFooter, int dimAxes[QwtPlot::axisCnt])
const
void alignScales (Options options, QRectF
&canvasRect, QRectF scaleRect[QwtPlot::axisCnt])
const
Layout engine for QwtPlot.
It is used by the QwtPlot widget to organize its internal widgets or by QwtPlot::print() to render its content to a QPaintDevice like a QPrinter, QPixmap/QImage or QSvgRenderer.
See also:
Options to configure the plot layout engine
See also:
Enumerator
Recalculate the geometry of all components.
Parameters:
See also:
Return the align-canvas-to-axis-scales setting. The canvas may:
Parameters:
Returns:
See also:
Align the legend to the canvas
Parameters:
Returns:
Align the ticks of the axis to the canvas borders using the empty corners.
Parameters:
See also:
Parameters:
Returns:
See also:
Returns:
See also:
Expand all line breaks in text labels, and calculate the height of their widgets in orientation of the text.
Parameters:
See also:
Returns:
See also:
Invalidate the geometry of all components.
See also:
Find the geometry for the legend
Parameters:
Returns:
See also:
Returns:
See also:
Returns:
See also:
Returns:
See also:
Returns:
Parameters:
See also:
Parameters:
Returns:
See also:
Change the align-canvas-to-axis-scales setting. The canvas may:
The axisId parameter is somehow confusing as it identifies a border of the plot and not the axes, that are aligned. F.e when QwtPlot::yLeft is set, the left end of the the x-axes ( QwtPlot::xTop, QwtPlot::xBottom ) is aligned.
Parameters:
See also:
Warning:
Set the align-canvas-to-axis-scales flag for all axes.
Parameters:
See also:
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.
Parameters:
See also:
Warning:
Set the geometry for the canvas. This method is intended to be used from derived layouts overloading activate()
See also:
Set the geometry for the footer. This method is intended to be used from derived layouts overloading activate()
See also:
Specify the position of the legend.
Parameters:
See also:
Specify the position of the legend.
Parameters:
See also:
Specify the relative size of the legend in the plot
Parameters:
Set the geometry for the legend. This method is intended to be used from derived layouts overloading activate()
Parameters:
See also:
Set the geometry for an axis. This method is intended to be used from derived layouts overloading activate()
Parameters:
See also:
Change the spacing of the plot. The spacing is the distance between the plot components.
Parameters:
See also:
Set the geometry for the title. This method is intended to be used from derived layouts overloading activate()
See also:
Returns:
See also:
Returns:
See also:
Generated automatically by Doxygen for Qwt User's Guide from the source code.
Wed Jan 2 2019 | Version 6.1.4 |