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

结构体

enum  CurveAttribute
 
enum  CurveStyle
 
enum  LegendAttribute
 
enum  PaintAttribute
 

Public 成员函数

额外继承的成员函数

详细描述

在文件 QwtPlotCurve.x4 行定义.

构造及析构函数说明

◆ QwtPlotCurve()

QwtPlotCurve ( ) throws IllegalArgumentException

在文件 QwtPlotCurve.x167 行定义.

167 {
168 nativehandle = QtXnl.createNObject(QType.qtQwtPlotCurve, 0);
169 if (nativehandle == 0){
170 throw new IllegalArgumentException("can not new QwtPlotCurve");
171 }
172 }
long nativehandle
Definition QNative.xcsm:91

成员函数说明

◆ delete()

void delete ( )

在文件 QwtPlotCurve.x217 行定义.

217 {
218 QtXnl.widget_slot(nativehandle, Constant.QwtPlotCurve_CTOR);
219 nativehandle = 0;
220 }

◆ setBaseline()

void setBaseline ( double  v)

在文件 QwtPlotCurve.x193 行定义.

193 {
194 QtXnl.widget_set_double_value(nativehandle,Constant.QwtPlotCurve_setBaseline, v);
195 }

◆ setCurveAttribute()

void setCurveAttribute ( CurveAttribute  n,
bool  on 
)

在文件 QwtPlotCurve.x201 行定义.

201 {
202 QtXnl.widget_set_v2int_value(nativehandle, Constant.QwtPlotCurve_setCurveAttribute, n, on ? 1 : 0);
203 }

◆ setLegendAttributes()

void setLegendAttributes ( LegendAttribute  n)

在文件 QwtPlotCurve.x209 行定义.

209 {
210 QtXnl.widget_set_v2int_value(nativehandle, Constant.QwtPlotCurve_setLegendAttributes, n, 0);
211 }

◆ setPaintAttribute()

void setPaintAttribute ( PaintAttribute  n,
bool  on 
)

在文件 QwtPlotCurve.x205 行定义.

205 {
206 QtXnl.widget_set_v2int_value(nativehandle, Constant.QwtPlotCurve_setPaintAttribute, n, on ? 1 : 0);
207 }

◆ setPen()

void setPen ( int  color,
float  stroke 
)

在文件 QwtPlotCurve.x178 行定义.

178 {
179 QtXnl.widget_set_v2int_double_value(nativehandle, Constant.QwtPlotCurve_setPen, color, stroke, 0);
180 }

◆ setSamples() [1/2]

void setSamples ( float []  xData,
float []  yData,
int  size 
)

在文件 QwtPlotCurve.x186 行定义.

186 {
187 float [] total = new float[size *2];
188 _system_.arrayCopy(xData,0,total,0,size);
189 _system_.arrayCopy(yData,0,total,size,size);
190 QtXnl.pointer_intlong2(total, Constant.QwtPlotCurve_setSamples2, nativehandle, size);
191 }
系统和IO相关
static final void arrayCopy(Object, long, Object, long, long)

引用了 _system_.arrayCopy().

◆ setSamples() [2/2]

void setSamples ( float []  yData,
int  size 
)

在文件 QwtPlotCurve.x182 行定义.

182 {
183 QtXnl.pointer_intlong2(yData, Constant.QwtPlotCurve_setSamples, nativehandle, size);
184 }

◆ setStyle()

void setStyle ( CurveStyle  style)

在文件 QwtPlotCurve.x213 行定义.

213 {
214 QtXnl.widget_set_v2int_value(nativehandle, Constant.QwtPlotCurve_setStyle, style, 0);
215 }

◆ setSymbol()

void setSymbol ( QwtSymbol  s)

在文件 QwtPlotCurve.x197 行定义.

197 {
198 QtXnl.widget_set_native_value(nativehandle, Constant.QwtPlotCurve_setSymbol, s.nativehandle);
199 }

◆ setTitle()

void setTitle ( String  title)

重载 QwtPlotItem .

在文件 QwtPlotCurve.x174 行定义.

174 {
175 QtXnl.widget_slot_string(nativehandle, Constant.QwtPlotCurve_setTitle, title);
176 }