Organizes the geometry for the different QwtPlot components.
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 | setLegendPos (int pos, double ratio=0.0) |
int | legendPos () const |
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 |
Protected Attributes | |
QRect | d_titleRect |
QRect | d_legendRect |
QRect | d_scaleRect [QwtPlot::axisCnt] |
QRect | d_canvasRect |
QwtPlotLayoutData * | d_layoutData |
|
Constructor.
|
|
Destructor.
|
|
Recalculate the geometry of all components.
|
|
Return the align-canvas-to-axis-scales setting. The canvas may:
|
|
Align the legend to the canvas
|
|
Align the ticks of the axis to the canvas borders using the empty corners. |
|
|
|
|
|
Expand all line breaks in text labels, and calculate the height of their widgets in orientation of the text.
|
|
Invalidate the geometry of all components.
|
|
Find the geometry for the legend
|
|
|
|
|
|
|
|
|
|
Return a minimum size hint.
|
|
|
|
Change the align-canvas-to-axis-scales setting. The canvas may:
|
|
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.
|
|
Specify the position of the legend.
|
|
Change the margin of the plot. The margin is the space around all components.
|
|
Change the spacing of the plot. The spacing is the distance between the plot components.
|
|
|
|
|