xlang v4.0 Release
程序设计语言基础库文档
载入中...
搜索中...
未找到
结构体 | Public 成员函数
QwtPlot类 参考
类 QwtPlot 继承关系图:
QFrame

结构体

enum  Axis
 
enum  LegendPosition
 

Public 成员函数

额外继承的成员函数

详细描述

在文件 QwtPlot.x4 行定义.

构造及析构函数说明

◆ QwtPlot() [1/2]

QwtPlot ( )

在文件 QwtPlot.x5 行定义.

5 {
6
7 }

◆ QwtPlot() [2/2]

QwtPlot ( long  handle)

在文件 QwtPlot.x9 行定义.

9 {
10 super(handle);
11 }

成员函数说明

◆ axisAutoScale()

bool axisAutoScale ( int  n)

在文件 QwtPlot.x141 行定义.

141 {
142 return QtXnl.widget_set_v2int_value(nativehandle, Constant.QwtPlot_axisAutoScale, n, 0) != 0;
143 }

◆ create() [1/2]

bool create ( )
override

重载 QWidget .

在文件 QwtPlot.x13 行定义.

13 {
14 nativehandle = QtXnl.createQObject(QType.qtQwtPlot, this, 0);
15 if (nativehandle == 0){
16 return false;
17 }
18 return true;
19 }
long nativehandle
Definition QNative.xcsm:91

◆ create() [2/2]

bool create ( @NotNilptr QWidget  parent)
override

重载 QWidget .

在文件 QwtPlot.x21 行定义.

21 {
22 nativehandle = QtXnl.createQObject(QType.qtQwtPlot, this, parent.nativehandle);
23 if (nativehandle == 0){
24 return false;
25 }
26 return true;
27 }

◆ detachItems() [1/2]

void detachItems ( )

在文件 QwtPlot.x109 行定义.

109 {
110 QtXnl.widget_set_v2int_value(nativehandle, Constant.QwtPlot_detachItems, QwtPlotItem.RttiValues.Rtti_PlotItem, 1);
111 }

◆ detachItems() [2/2]

void detachItems ( int  rtti,
bool  autoDelete 
)

在文件 QwtPlot.x113 行定义.

113 {
114 QtXnl.widget_set_v2int_value(nativehandle, Constant.QwtPlot_detachItems, rtti, autoDelete ? 1 : 0);
115 }

◆ enableZoom()

void enableZoom ( )

在文件 QwtPlot.x117 行定义.

117 {
118 QtXnl.widget_slot(nativehandle, Constant.QwtPlot_EnableZoom);
119 }

◆ insertLegend()

void insertLegend ( QwtAbstractLegend  Legend,
LegendPosition  pos,
float  ratio 
)

在文件 QwtPlot.x157 行定义.

157 {
158 int nv = Math.floatToIntBits(ratio);
159 QtXnl.int_long_int_long_int_int(nativehandle, Constant.QwtPlot_insertLegend, Legend.nativehandle, pos, nv);
160 }
Math类
static final int floatToIntBits(float)

引用了 Math.floatToIntBits().

◆ isAxisValid()

bool isAxisValid ( int  n)

在文件 QwtPlot.x129 行定义.

129 {
130 return QtXnl.widget_set_v2int_value(nativehandle, Constant.QwtPlot_isAxisValid, n, 0) != 0;
131 }

◆ replot()

void replot ( )

在文件 QwtPlot.x105 行定义.

105 {
106 QtXnl.widget_slot(nativehandle, Constant.QwtPlot_replot);
107 }

◆ setAxisAutoScale()

void setAxisAutoScale ( int  n,
bool  on 
)

在文件 QwtPlot.x137 行定义.

137 {
138 QtXnl.widget_set_v2int_value(nativehandle, Constant.QwtPlot_setAxisAutoScale, n, on ? 1 : 0);
139 }

◆ setAxisFont()

void setAxisFont ( int  n,
QFont  f 
)

在文件 QwtPlot.x145 行定义.

145 {
146 QtXnl.int_long_int_long_int_int(nativehandle, Constant.QwtPlot_setAxisFont, f.nativehandle, n, 0);
147 }

◆ setAxisLabelAlignment()

void setAxisLabelAlignment ( int  QwtAxisId,
int  Alignment 
)

在文件 QwtPlot.x162 行定义.

162 {
163 QtXnl.widget_set_v2int_value(nativehandle, Constant.QwtPlot_setAxisLabelAlignment, QwtAxisId, Alignment);
164 }

◆ setAxisLabelRotation()

void setAxisLabelRotation ( int  QwtAxisId,
double  rotation 
)

在文件 QwtPlot.x166 行定义.

166 {
167 QtXnl.widget_set_v2int_double_value(nativehandle, Constant.QwtPlot_setAxisLabelRotation, QwtAxisId, rotation, 0);
168 }

◆ setAxisMaxMajor()

void setAxisMaxMajor ( int  n,
int  maxMinor 
)

在文件 QwtPlot.x93 行定义.

93 {
94 QtXnl.widget_set_v2int_value(nativehandle, Constant.QwtPlot_setAxisMaxMajor, n, maxMinor);
95 }

◆ setAxisMaxMinor()

void setAxisMaxMinor ( int  n,
int  maxMinor 
)

在文件 QwtPlot.x89 行定义.

89 {
90 QtXnl.widget_set_v2int_value(nativehandle, Constant.QwtPlot_setAxisMaxMinor, n, maxMinor);
91 }

◆ setAxisScale()

void setAxisScale ( int  axisId,
double  min,
double  max,
double  stepSize 
)

在文件 QwtPlot.x97 行定义.

97 {
98 double [] param = {min, max, stepSize};
99 QtXnl.pointer_intlong2(param, Constant.QwtPlot_setAxisScale, nativehandle, axisId);
100 }

◆ setAxisScaleDraw() [1/2]

void setAxisScaleDraw ( int  n,
String  fmt 
)

在文件 QwtPlot.x77 行定义.

77 {
78 QtXnl.widget_set_intstring_value(nativehandle, Constant.QwtPlot_setAxisScaleDraw, n, fmt);
79 }

◆ setAxisScaleDraw() [2/2]

void setAxisScaleDraw ( int  QwtAxisId,
QwtScaleDraw  draw 
)

在文件 QwtPlot.x153 行定义.

153 {
154 QtXnl.int_long_int_long_int_int(nativehandle, Constant.QwtPlot_setAxisScaleDraw, draw.nativehandle, QwtAxisId, 0);
155 }

◆ setAxisTitle() [1/2]

void setAxisTitle ( int  n,
QwtText  text 
)

在文件 QwtPlot.x85 行定义.

85 {
86 QtXnl.long_intlong2(nativehandle, Constant.QwtPlot_setAxisTitle, n, text.nativehandle);
87 }

◆ setAxisTitle() [2/2]

void setAxisTitle ( int  n,
String  text 
)

在文件 QwtPlot.x81 行定义.

81 {
82 QtXnl.widget_set_intstring_value(nativehandle, Constant.QwtPlot_setAxisTitle, n, text);
83 }

◆ setAxisVisible()

void setAxisVisible ( int  n,
bool  on 
)

在文件 QwtPlot.x133 行定义.

133 {
134 QtXnl.widget_set_v2int_value(nativehandle, Constant.QwtPlot_setAxisVisible, n, on ? 1 : 0);
135 }

◆ setCanvas()

void setCanvas ( QWidget  w)

在文件 QwtPlot.x149 行定义.

149 {
150 QtXnl.widget_set_native_value(nativehandle, Constant.QwtPlot_setCanvas, w.nativehandle);
151 }

◆ setCanvasBackground() [1/2]

void setCanvasBackground ( int  color,
QBrush.Style  style 
)

在文件 QwtPlot.x73 行定义.

73 {
74 QtXnl.widget_set_v2int_value(nativehandle, Constant.QwtPlot_setCanvasBackground, color, style);
75 }

◆ setCanvasBackground() [2/2]

void setCanvasBackground ( QBrush  b)

在文件 QwtPlot.x69 行定义.

69 {
70 QtXnl.widget_set_native_value(nativehandle, Constant.QwtPlot_setCanvasBackground, b.nativehandle);
71 }

◆ setFooter()

void setFooter ( String  title)

在文件 QwtPlot.x65 行定义.

65 {
66 QtXnl.widget_slot_string(nativehandle, Constant.QwtPlot_setFooter, title);
67 }

◆ setTitle()

void setTitle ( String  title)

在文件 QwtPlot.x61 行定义.

61 {
62 QtXnl.widget_slot_string(nativehandle, Constant.QwtPlot_setTitle, title);
63 }

◆ updateAxes()

void updateAxes ( )

在文件 QwtPlot.x121 行定义.

121 {
122 QtXnl.widget_slot(nativehandle, Constant.QwtPlot_updateAxes);
123 }

◆ updateCanvasMargins()

void updateCanvasMargins ( )

在文件 QwtPlot.x125 行定义.

125 {
126 QtXnl.widget_slot(nativehandle, Constant.QwtPlot_updateCanvasMargins);
127 }

◆ updateLegend()

void updateLegend ( )

在文件 QwtPlot.x101 行定义.

101 {
102 QtXnl.widget_slot(nativehandle, Constant.QwtPlot_updateLegend);
103 }