BarScaleDrawX() { enableComponent(QwtScaleDraw::Backbone, false); enableComponent(QwtScaleDraw::Ticks, false); setLabelAlignment(Qt::AlignLeft); setLabelRotation(-90.0); setSpacing(0); }
ScaleDraw::ScaleDraw(Plot *plot, ScaleDraw *sd) : d_plot(plot), d_type(sd->d_type), d_numeric_format(sd->d_numeric_format), d_fmt(sd->d_fmt), d_prec(sd->d_prec), d_formula(sd->d_formula), d_majTicks(sd->d_majTicks), d_minTicks(sd->d_minTicks), d_selected(sd->d_selected), d_name_format(sd->d_name_format), d_date_time_origin(sd->d_date_time_origin), d_format_info(sd->d_format_info), d_text_labels(sd->d_text_labels) { setLabelAlignment(sd->labelAlignment()); setLabelRotation(sd->labelRotation()); }
DistroScaleDraw( Qt::Orientation orientation, const QStringList &labels ): d_labels( labels ) { setTickLength( QwtScaleDiv::MinorTick, 0 ); setTickLength( QwtScaleDiv::MediumTick, 0 ); setTickLength( QwtScaleDiv::MajorTick, 2 ); enableComponent( QwtScaleDraw::Backbone, false ); if ( orientation == Qt::Vertical ) { setLabelRotation( -60.0 ); } else { setLabelRotation( -20.0 ); } setLabelAlignment( Qt::AlignLeft | Qt::AlignVCenter ); }
YearScaleDraw() { setTickLength( QwtScaleDiv::MajorTick, 0 ); setTickLength( QwtScaleDiv::MinorTick, 0 ); setTickLength( QwtScaleDiv::MediumTick, 6 ); setLabelRotation( -60.0 ); setLabelAlignment( Qt::AlignLeft | Qt::AlignVCenter ); setSpacing( 15 ); }
ScaleDraw::ScaleDraw(Plot *plot, ScaleDraw* sd): d_plot(plot) { d_type = sd->d_type; d_numeric_format = sd->d_numeric_format; d_fmt = sd->d_fmt; d_prec = sd->d_prec; d_formula = sd->d_formula; d_majTicks = sd->d_majTicks; d_minTicks = sd->d_minTicks; d_selected = sd->d_selected; d_name_format = sd->d_name_format; d_date_time_origin = sd->d_date_time_origin; d_format_info = sd->d_format_info; d_text_labels = sd->d_text_labels; setLabelAlignment(sd->labelAlignment()); setLabelRotation(sd->labelRotation()); }
ScaleDraw::ScaleDraw(Graph *plot, ScaleDraw* sd): d_plot(plot) { d_type = sd->d_type; d_numeric_format = sd->d_numeric_format; d_fmt = sd->d_fmt; d_prec = sd->d_prec; d_formula = sd->d_formula; d_majTicks = sd->d_majTicks; d_minTicks = sd->d_minTicks; d_selected = sd->d_selected; d_name_format = sd->d_name_format; d_format_info = sd->d_format_info; d_text_labels = sd->d_text_labels; d_show_ticks_policy = sd->showTicksPolicy(); d_prefix = sd->prefix(); d_suffix = sd->suffix(); setLabelAlignment(sd->labelAlignment()); setLabelRotation(sd->labelRotation()); }