4 @SuppressWarnings public class QwtPlot : QFrame{
9 public QwtPlot(long handle){
14 nativehandle = QtXnl.createQObject(QType.qtQwtPlot,
this, 0);
15 if (nativehandle == 0){
21 public bool create(@NotNilptr QWidget parent)
override {
22 nativehandle = QtXnl.createQObject(QType.qtQwtPlot,
this, parent.nativehandle);
23 if (nativehandle == 0){
29 public enum LegendPosition
58 AxisPositions = xTop + 1
62 QtXnl.widget_slot_string(nativehandle, Constant.QwtPlot_setTitle, title);
66 QtXnl.widget_slot_string(nativehandle, Constant.QwtPlot_setFooter, title);
70 QtXnl.widget_set_native_value(nativehandle, Constant.QwtPlot_setCanvasBackground, b.nativehandle);
74 QtXnl.widget_set_v2int_value(nativehandle, Constant.QwtPlot_setCanvasBackground, color, style);
78 QtXnl.widget_set_intstring_value(nativehandle, Constant.QwtPlot_setAxisScaleDraw, n, fmt);
82 QtXnl.widget_set_intstring_value(nativehandle, Constant.QwtPlot_setAxisTitle, n, text);
86 QtXnl.long_intlong2(nativehandle, Constant.QwtPlot_setAxisTitle, n, text.nativehandle);
90 QtXnl.widget_set_v2int_value(nativehandle, Constant.QwtPlot_setAxisMaxMinor, n, maxMinor);
94 QtXnl.widget_set_v2int_value(nativehandle, Constant.QwtPlot_setAxisMaxMajor, n, maxMinor);
97 public void setAxisScale(
int axisId,
double min,
double max,
double stepSize ){
98 double [] param = {min, max, stepSize};
99 QtXnl.pointer_intlong2(param, Constant.QwtPlot_setAxisScale, nativehandle, axisId);
102 QtXnl.widget_slot(nativehandle, Constant.QwtPlot_updateLegend);
106 QtXnl.widget_slot(nativehandle, Constant.QwtPlot_replot);
110 QtXnl.widget_set_v2int_value(nativehandle, Constant.QwtPlot_detachItems, QwtPlotItem.RttiValues.Rtti_PlotItem, 1);
114 QtXnl.widget_set_v2int_value(nativehandle, Constant.QwtPlot_detachItems, rtti, autoDelete ? 1 : 0);
118 QtXnl.widget_slot(nativehandle, Constant.QwtPlot_EnableZoom);
122 QtXnl.widget_slot(nativehandle, Constant.QwtPlot_updateAxes);
126 QtXnl.widget_slot(nativehandle, Constant.QwtPlot_updateCanvasMargins);
130 return QtXnl.widget_set_v2int_value(nativehandle, Constant.QwtPlot_isAxisValid, n, 0) != 0;
134 QtXnl.widget_set_v2int_value(nativehandle, Constant.QwtPlot_setAxisVisible, n, on ? 1 : 0);
138 QtXnl.widget_set_v2int_value(nativehandle, Constant.QwtPlot_setAxisAutoScale, n, on ? 1 : 0);
142 return QtXnl.widget_set_v2int_value(nativehandle, Constant.QwtPlot_axisAutoScale, n, 0) != 0;
146 QtXnl.int_long_int_long_int_int(nativehandle, Constant.QwtPlot_setAxisFont, f.nativehandle, n, 0);
150 QtXnl.widget_set_native_value(nativehandle, Constant.QwtPlot_setCanvas, w.nativehandle);
154 QtXnl.int_long_int_long_int_int(nativehandle, Constant.QwtPlot_setAxisScaleDraw, draw.nativehandle, QwtAxisId, 0);
157 public void insertLegend(QwtAbstractLegend Legend, LegendPosition pos,
float ratio){
159 QtXnl.int_long_int_long_int_int(nativehandle, Constant.QwtPlot_insertLegend, Legend.nativehandle, pos, nv);
163 QtXnl.widget_set_v2int_value(nativehandle, Constant.QwtPlot_setAxisLabelAlignment, QwtAxisId, Alignment);
167 QtXnl.widget_set_v2int_double_value(nativehandle, Constant.QwtPlot_setAxisLabelRotation, QwtAxisId, rotation, 0);
static final int floatToIntBits(float)
void setAxisTitle(int n, String text)
void setAxisVisible(int n, bool on)
void setFooter(String title)
void setAxisMaxMinor(int n, int maxMinor )
void insertLegend(QwtAbstractLegend Legend, LegendPosition pos, float ratio)
void setAxisMaxMajor(int n, int maxMinor )
void updateCanvasMargins()
void setAxisScaleDraw(int n, String fmt)
void setCanvasBackground(int color, QBrush.Style style)
void setAxisLabelRotation(int QwtAxisId, double rotation )
void detachItems(int rtti, bool autoDelete)
void setAxisScale(int axisId, double min, double max, double stepSize )
void setTitle(String title)
bool create(@NotNilptr QWidget parent) override
void setAxisAutoScale(int n, bool on)
void setAxisLabelAlignment(int QwtAxisId, int Alignment )
void setAxisScaleDraw(int QwtAxisId, QwtScaleDraw draw)
void setAxisFont(int n, QFont f)
void setCanvas(QWidget w)
bool axisAutoScale(int n)
void setAxisTitle(int n, QwtText text)
void setCanvasBackground(QBrush b)