55 const QSizeF
hint = plot->
legend()->sizeHint();
57 double w = qMin( hint.width(), rect.width() );
58 double h = plot->
legend()->heightForWidth( w );
62 if ( h > rect.height() )
284 if ( hint.height() > rect.height() )
304 legendRect.setWidth( dim );
305 rect.setLeft( legendRect.right() );
310 legendRect.setX( rect.right() - dim + 1 );
311 legendRect.setWidth( dim );
312 rect.setRight( legendRect.left() );
317 legendRect.setHeight( dim );
318 rect.setTop( legendRect.bottom() );
323 legendRect.setY( rect.bottom() - dim + 1 );
324 legendRect.setHeight( dim );
325 rect.setBottom( legendRect.top() );
349 QRectF rect( boundingRect );
420 const int dim = qMin( rect.width(), rect.height() );
const QRectF & legendRect() const
A plotting widget, displaying a polar coordinate system.
const QRectF & canvasRect() const
The legend will be between canvas and title.
double zoomFactor() const
void init(const QwtPolarPlot *, const QRectF &rect)
struct QwtPolarLayout::LayoutData::t_legendData legend
void setFont(const QFont &)
QRectF layoutLegend(Options options, QRectF &) const
QwtPolarLayout * plotLayout()
A Widget which displays a QwtText.
QwtPolarCanvas * canvas()
The legend will be below the canvas.
const QRectF & titleRect() const
double radius() const
Returns the radius.
QwtPolarLayout()
Constructor.
virtual void activate(const QwtPolarPlot *, const QRectF &rect, Options options=Options())
Recalculate the geometry of all components.
const QwtText & text() const
Return the text.
QwtPointPolar zoomPos() const
The legend will be right from the canvas.
QwtPolarPlot::LegendPosition legendPosition() const
virtual void invalidate()
bool testPaintAttribute(PaintAttribute) const
double heightForWidth(double width) const
virtual bool isEmpty() const =0
virtual ~QwtPolarLayout()
Destructor.
void setLegendRatio(double ratio)
QwtTextLabel * titleLabel()
A class representing a text.
struct QwtPolarLayout::LayoutData::t_canvasData canvas
QwtPolarPlot::LegendPosition legendPos
QwtPolarLayout::LayoutData layoutData
QwtAbstractLegend * legend()
The legend will be left from the canvas.
void setLegendPosition(QwtPolarPlot::LegendPosition pos, double ratio)
Specify the position of the legend.
struct QwtPolarLayout::LayoutData::t_titleData title
Ignore the dimension of the scrollbars.
The text has an individual font.
virtual int scrollExtent(Qt::Orientation) const
double legendRatio() const