xlang v4.0 Release
程序设计语言基础库文档
载入中...
搜索中...
未找到
QwtPlotItem.x
浏览该文件的文档.
1//xlang Source, Name:QwtPlotItem.x
2//Date: Wed Nov 05:15:03 2023
3
4package Qt{
5 @SuppressWarnings public class QwtPlotItem: QCore{
6 public static const int RenderAntialiased = 1;
7 public enum ItemAttribute
8 {
9 // ! The item is represented on the legend.
10 Legend = 0x01,
11
17 AutoScale = 0x02,
18
19 /* !
20 The item needs extra space to display something outside
21 its bounding rectangle.
22 \sa getCanvasMarginHint()
23 */
24 Margins = 0x04
25 };
26 public enum ItemInterest
27 {
32 ScaleInterest = 0x01,
33
44 LegendInterest = 0x02
45 };
46
109
110
111 public void attach( QwtPlot plot ){
112 QtXnl.widget_set_native_value(nativehandle, Constant.QwtPlotItem_attach, plot.nativehandle);
113 }
114 public void detach(){
115 QtXnl.widget_slot(nativehandle, Constant.QwtPlotItem_detach);
116 }
117
118 public QwtPlot plot() {
119 return (QwtPlot)QtXnl.object_get_handle(nativehandle, Constant.QwtPlotItem_plot, 0);
120 }
121
122 public void setTitle( String title ){
123 QtXnl.widget_slot_string(nativehandle, Constant.QwtPlotItem_SETTITLE, title);
124 }
125
126 /*public void setTitle( QwtText title ){
127
128 }*/
129
130 public String title() {
131 return (String)QtXnl.core_getString(nativehandle, Constant.QwtPlotItem_title);
132 }
133
134 public int rtti() {
135 return QtXnl.widget_get_int_value(nativehandle, Constant.QwtPlotItem_rtti);
136 }
137
138 public void setItemAttribute(ItemAttribute n, bool on ){
139 QtXnl.int_long_int_long_int_int(nativehandle, Constant.QwtPlotItem_setItemAttribute, 0, n, on ? 1 : 0);
140 }
141
142 public bool testItemAttribute( ItemAttribute n){
143 return QtXnl.widget_set_v2int_value(nativehandle, Constant.QwtPlotItem_testItemAttribute, n, 0) != 0;
144 }
145
146 public void setItemInterest( ItemInterest n, bool on ){
147 QtXnl.int_long_int_long_int_int(nativehandle, Constant.QwtPlotItem_setItemInterest, 0, n, on ? 1 : 0);
148 }
149
150 public bool testItemInterest( ItemInterest n) {
151 return QtXnl.widget_set_v2int_value(nativehandle, Constant.QwtPlotItem_testItemInterest, n, 0) != 0;
152 }
153
154 public void setRenderHint( int n, bool on ){
155 QtXnl.int_long_int_long_int_int(nativehandle, Constant.QwtPlotItem_setRenderHint, 0, n, on ? 1 : 0);
156 }
157
158 public bool testRenderHint( int n) {
159 return QtXnl.widget_set_v2int_value(nativehandle, Constant.QwtPlotItem_testRenderHint, n, 0) != 0;
160 }
161
162 public void setRenderThreadCount( int numThreads ){
163 QtXnl.widget_set_v2int_value(nativehandle, Constant.QwtPlotItem_setRenderThreadCount, numThreads, 0) != 0;
164 }
165
166 public int renderThreadCount() {
167 return QtXnl.widget_get_int_value(nativehandle, Constant.QwtPlotItem_renderThreadCount);
168 }
169
170 public void setLegendIconSize( QSize s){
171 QtXnl.native_double2(nativehandle, Constant.QwtPlotItem_setLegendIconSize, s.cx, s.cy);
172 }
173
174 public QSize legendIconSize() {
175 long lsize = QtXnl.long_get(nativehandle, Constant.QwtPlotItem_legendIconSize);
176 return new QSize(lsize >> 32 & 0xffffffff, lsize & 0xffffffff);
177 }
178
179 public double z() {
180 return QtXnl.widget_get_double_value(nativehandle,Constant.QwtPlotItem_z);
181 }
182
183 public void setZ( double z ){
184 QtXnl.widget_set_double_value(nativehandle,Constant.QwtPlotItem_setZ, z);
185 }
186
187 public void show(){
188 QtXnl.widget_slot(nativehandle, Constant.QwtPlotItem_show);
189 }
190
191 public void hide(){
192 QtXnl.widget_slot(nativehandle, Constant.QwtPlotItem_hide);
193 }
194
195 public void setVisible( bool v){
196 QtXnl.widget_set_bool_value(nativehandle, Constant.QwtPlotItem_setVisible, v);
197 }
198
199 public bool isVisible () {
200 return QtXnl.widget_get_bool_value(nativehandle, Constant.QwtPlotItem_isVisible);
201 }
202
203 public void setAxes( int xAxis, int yAxis ){
204 QtXnl.widget_set_v2int_value(nativehandle, Constant.QwtPlotItem_setAxes, xAxis, yAxis);
205 }
206
207 public void setXAxis( int x){
208 QtXnl.widget_set_v2int_value(nativehandle, Constant.QwtPlotItem_setXAxis, x, 0);
209 }
210
211 public int xAxis() {
212 return QtXnl.widget_get_int_value(nativehandle, Constant.QwtPlotItem_xAxis);
213 }
214
215 public void setYAxis( int x){
216 QtXnl.widget_set_v2int_value(nativehandle, Constant.QwtPlotItem_setYAxis, x, 0);
217 }
218
219 public int yAxis() {
220 return QtXnl.widget_get_int_value(nativehandle, Constant.QwtPlotItem_yAxis);
221 }
222 };
223};
String title()
double z()
void setXAxis( int x)
void setItemInterest( ItemInterest n, bool on )
void setRenderHint( int n, bool on )
void setTitle( String title )
void setRenderThreadCount( int numThreads )
bool testItemAttribute( ItemAttribute n)
bool isVisible()
void setLegendIconSize( QSize s)
QSize legendIconSize()
void setZ( double z )
bool testItemInterest( ItemInterest n)
void setYAxis( int x)
int renderThreadCount()
QwtPlot plot()
bool testRenderHint( int n)
void setItemAttribute(ItemAttribute n, bool on )
void setAxes( int xAxis, int yAxis )
void attach( QwtPlot plot )
void setVisible( bool v)
字符串类
Rtti_PlotGraphic
For QwtPlotGraphicItem, QwtPlotSvgItem
Definition QwtPlotItem.x:80
Rtti_PlotMarker
For QwtPlotMarker
Definition QwtPlotItem.x:62
Rtti_PlotTradingCurve
For QwtPlotTradingCurve
Definition QwtPlotItem.x:83
Rtti_PlotSpectroCurve
For QwtPlotSpectroCurve
Definition QwtPlotItem.x:68
Rtti_PlotLegend
For QwtPlotLegendItem
Definition QwtPlotItem.x:59
Rtti_PlotHistogram
For QwtPlotHistogram
Definition QwtPlotItem.x:74
Rtti_PlotVectorField
For QwtPlotVectorField
Rtti_PlotGrid
For QwtPlotGrid
Definition QwtPlotItem.x:53
Rtti_PlotIntervalCurve
For QwtPlotIntervalCurve
Definition QwtPlotItem.x:71
Rtti_PlotZone
For QwtPlotZoneItem
Definition QwtPlotItem.x:98
Rtti_PlotShape
For QwtPlotShapeItem
Definition QwtPlotItem.x:92
Rtti_PlotSpectrogram
For QwtPlotSpectrogram
Definition QwtPlotItem.x:77
Rtti_PlotCurve
For QwtPlotCurve
Definition QwtPlotItem.x:65
Rtti_PlotScale
For QwtPlotScaleItem
Definition QwtPlotItem.x:56
Rtti_PlotBarChart
For QwtPlotBarChart
Definition QwtPlotItem.x:86
Rtti_PlotMultiBarChart
For QwtPlotMultiBarChart
Definition QwtPlotItem.x:89
Rtti_PlotTextLabel
For QwtPlotTextLabel
Definition QwtPlotItem.x:95