1
  
2
  
3
  
4
  
5
  
6
  
7
  
8
  
9
  
10
  
11
  
12
  
13
  
14
  
15
  
16
  
17
  
18
  
19
  
20
  
21
  
22
  
23
  
24
  
25
  
26
  
27
  
28
  
29
  
30
  
31
  
32
  
33
  
34
  
35
  
36
  
37
  
38
  
39
  
40
  
41
  
42
  
43
  
44
  
45
  
46
  
47
  
48
  
49
  
50
  
51
  
52
  
53
  
54
  
55
  
56
  
57
  
58
  
59
  
60
  
61
  
62
  
63
  
64
  
65
  
66
  
67
  
68
  
69
  
70
  
71
  
72
  
73
  
74
  
75
  
76
  
77
  
78
  
79
  
80
  
81
  
82
  
83
  
84
  
85
  
86
  
87
  
88
  
89
  
90
  
91
  
92
  
93
  
94
  
95
  
96
  
97
  
98
  
99
  
100
  
101
  
102
  
103
  
104
  
105
  
106
  
107
  
108
  
109
  
110
  
111
  
112
  
113
  
114
  
115
  
116
  
117
  
118
  
119
  
120
  
121
  
122
  
123
  
124
  
125
  
126
  
127
  
128
  
129
  
130
  
131
  
132
  
133
  
134
  
135
  
136
  
137
  
138
  
139
  
140
  
141
  
142
  
143
  
144
  
145
  
146
  
147
  
148
  
149
  
150
  
151
  
152
  
153
  
154
  
155
  
156
  
157
  
158
  
159
  
160
  
161
  
162
  
163
  
164
  
165
  
166
  
167
  
168
  
//! GtkDatabox is designed to display large amounts of numerical data 
//! fast and easy. Thousands of data points (X and Y coordinate) may be 
//! displayed without any problems, zooming and scrolling as well as 
//! optional rulers are already included. 
//!  
//! The widget may be used as display for oscilloscopes or other 
//! applications that need to display fast changes in their data. 
//!  
//!@expr{   GTK2.Databox x=GTK2.Databox(); x->data_add_x_y(3, ({ 1.0, 0.5, 0.0 }), ({1.0, -1.0, 0.0}),GTK2.GdkColor(Image.Color.red), GTK2.DataboxLines,2); x->rescale(); x->set_size_request(300,300); return x;@} 
//!@xml{<image>../images/gtk2_databox.png</image>@} 
//! 
//! 
//! 
//!  Signals: 
//! @b{marked@} 
//! 
//! @b{selection_canceled@} 
//! 
//! @b{selection_changed@} 
//! 
//! @b{selection_started@} 
//! 
//! @b{selection_stopped@} 
//! 
//! @b{zoomed@} 
//! 
 
inherit GTK2.Vbox; 
 
protected GTK2.Databox create( ); 
//! Create a new databox widget 
//! 
//! 
 
int data_add( int nelems, array x, array y, GTK2.GdkColor color, int type, int dot_size ); 
//! Type is one of @[DATABOX_BARS], @[DATABOX_CROSS_SIMPLE], @[DATABOX_GRID], @[DATABOX_LINES], @[DATABOX_NOT_DISPLAYED] and @[DATABOX_POINTS] 
//! 
//! 
 
GTK2.GdkColor data_get_color( int index ); 
//! Get the color at index. 
//! 
//! 
 
array data_get_extrema( ); 
//! 
 
int data_get_grid_config( int index ); 
//! See data_set_grid_config(). 
//! 
//! 
 
array data_get_type( int index ); 
//! Return type and dot size at index. 
//! 
//! 
 
mapping data_get_value( int x, int y ); 
//! 
 
array data_get_visible_extrema( ); 
//! 
 
int data_remove( int index ); 
//! Remove data at index. 
//! 
//! 
 
int data_remove_all( ); 
//! Remove all data. 
//! 
//! 
 
int data_set_color( int index, GTK2.GdkColor color ); 
//! 
 
int data_set_grid_config( int index, int hlines, int vlines ); 
//! Not useful unless the data type is GTK2.DATABOX_GRID. 
//! 
//! 
 
int data_set_type( int index, int type, int dot_size ); 
//! Type is one of @[DATABOX_BARS], @[DATABOX_CROSS_SIMPLE], @[DATABOX_GRID], @[DATABOX_LINES], @[DATABOX_NOT_DISPLAYED] and @[DATABOX_POINTS] 
//! 
//! 
 
GTK2.Databox get_rulers_enable( ); 
//! Get whether rulers will be displayed. 
//! 
//! 
 
GTK2.Databox get_scrollbars_enable( ); 
//! Get whether scrollbars will be displayed. 
//! 
//! 
 
int get_selection_enable( ); 
//! Get whether selection is enabled. 
//! 
//! 
 
int get_selection_fill_enable( ); 
//! Get whether the selection will be filled. 
//! 
//! 
 
GTK2.Databox get_zoom_enable( ); 
//! Get whether zoom is enabled. 
//! 
//! 
 
float get_zoom_limit( ); 
//! Get the zoom limit. 
//! 
//! 
 
GTK2.Databox redraw( ); 
//! Redraw. 
//! 
//! 
 
GTK2.Databox rescale( ); 
//! 
 
GTK2.Databox rescale_inverted( int invertX, int invertY ); 
//! Rescale with an inverted x and/or y direction. 
//! 
//! 
 
GTK2.Databox rescale_with_values( float minx, float miny, float maxx, float maxy ); 
//! 
 
GTK2.Databox set_background_color( GTK2.GdkColor color ); 
//! Set the background color. 
//! 
//! 
 
GTK2.Databox set_rulers_enable( int setting ); 
//! Set whether rulers will be displayed. 
//! 
//! 
 
GTK2.Databox set_scrollbars_enable( int setting ); 
//! Set whether scrollbars will be displayed. 
//! 
//! 
 
GTK2.Databox set_selection_enable( int setting ); 
//! Set whether selection is enabled. 
//! 
//! 
 
GTK2.Databox set_selection_fill_enable( int setting ); 
//! Set whether the selection will be filled. 
//! 
//! 
 
GTK2.Databox set_zoom_enable( int setting ); 
//! Set whether zoom is enabled. 
//! 
//! 
 
GTK2.Databox set_zoom_limit( float limit ); 
//! Set the zoom limit.  Default is 0.01, which is 100 times. 
//! 
//!