xlang v4.0 Release
程序设计语言基础库文档
载入中...
搜索中...
未找到
QwtPlotCurve.x
浏览该文件的文档.
1//xlang Source, Name:QwtPlotCurve.x
2//Date: Wed Nov 04:20:21 2023
3package Qt{
4 @SuppressWarnings public class QwtPlotCurve: QwtPlotItem{
5 public enum CurveStyle
6 {
10 NoCurve = -1,
11
17 Lines,
18
23 Sticks,
24
30 Steps,
31
38 Dots,
39
45 UserCurve = 100
46 };
47
52 public enum CurveAttribute
53 {
58 Inverted = 0x01,
59
70 Fitted = 0x02
71 };
79 public enum LegendAttribute
80 {
85 LegendNoAttribute = 0x00,
86
91 LegendShowLine = 0x01,
92
96 LegendShowSymbol = 0x02,
97
102 LegendShowBrush = 0x04
103 };
110 public enum PaintAttribute
111 {
117 ClipPolygons = 0x01,
118
125 FilterPoints = 0x02,
126
132 MinimizeMemory = 0x04,
133
141 ImageBuffer = 0x08,
142
165 FilterPointsAggressive = 0x10
166 };
168 nativehandle = QtXnl.createNObject(QType.qtQwtPlotCurve, 0);
169 if (nativehandle == 0){
170 throw new IllegalArgumentException("can not new QwtPlotCurve");
171 }
172 }
173
174 public void setTitle(String title){
175 QtXnl.widget_slot_string(nativehandle, Constant.QwtPlotCurve_setTitle, title);
176 }
177
178 public void setPen(int color, float stroke){
179 QtXnl.widget_set_v2int_double_value(nativehandle, Constant.QwtPlotCurve_setPen, color, stroke, 0);
180 }
181
182 public void setSamples(float [] yData, int size ){
183 QtXnl.pointer_intlong2(yData, Constant.QwtPlotCurve_setSamples, nativehandle, size);
184 }
185
186 public void setSamples(float [] xData, float [] yData, int size ){
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 }
192
193 public void setBaseline(double v){
194 QtXnl.widget_set_double_value(nativehandle,Constant.QwtPlotCurve_setBaseline, v);
195 }
196
197 public void setSymbol(QwtSymbol s){
198 QtXnl.widget_set_native_value(nativehandle, Constant.QwtPlotCurve_setSymbol, s.nativehandle);
199 }
200
201 public void setCurveAttribute(CurveAttribute n, bool on ){
202 QtXnl.widget_set_v2int_value(nativehandle, Constant.QwtPlotCurve_setCurveAttribute, n, on ? 1 : 0);
203 }
204
205 public void setPaintAttribute(PaintAttribute n, bool on ){
206 QtXnl.widget_set_v2int_value(nativehandle, Constant.QwtPlotCurve_setPaintAttribute, n, on ? 1 : 0);
207 }
208
209 public void setLegendAttributes( LegendAttribute n){
210 QtXnl.widget_set_v2int_value(nativehandle, Constant.QwtPlotCurve_setLegendAttributes, n, 0);
211 }
212
213 public void setStyle(CurveStyle style ){
214 QtXnl.widget_set_v2int_value(nativehandle, Constant.QwtPlotCurve_setStyle, style, 0);
215 }
216
217 public void delete(){
218 QtXnl.widget_slot(nativehandle, Constant.QwtPlotCurve_CTOR);
219 nativehandle = 0;
220 }
221 };
222};
系统和IO相关
static final void arrayCopy(Object, long, Object, long, long)
void setSymbol(QwtSymbol s)
void setStyle(CurveStyle style )
void setSamples(float [] xData, float [] yData, int size )
void setBaseline(double v)
void setTitle(String title)
void setSamples(float [] yData, int size )
void setCurveAttribute(CurveAttribute n, bool on )
void setLegendAttributes( LegendAttribute n)
void setPaintAttribute(PaintAttribute n, bool on )
void setPen(int color, float stroke)
字符串类