You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: OpenBCI_GUI/W_AnalogRead.pde
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -28,8 +28,8 @@ class W_AnalogRead extends Widget {
28
28
29
29
privateAnalogCapableBoard analogBoard;
30
30
31
-
W_AnalogRead(PApplet_parent) {
32
-
super(_parent);
31
+
W_AnalogRead(String_widgetName) {
32
+
super(_widgetName);
33
33
34
34
analogBoard = (AnalogCapableBoard)currentBoard;
35
35
@@ -49,7 +49,7 @@ class W_AnalogRead extends Widget {
49
49
//create our channel bars and populate our analogReadBars array!
50
50
for(int i =0; i < analogReadBars.length; i++) {
51
51
int analogReadBarY =int(ar_y) + i*(analogReadBarHeight); //iterate through bar locations
52
-
AnalogReadBar tempBar =newAnalogReadBar(_parent, i+5, int(ar_x), analogReadBarY, int(ar_w), analogReadBarHeight); //int _channelNumber, int _x, int _y, int _w, int _h
52
+
AnalogReadBar tempBar =newAnalogReadBar(ourApplet, i+5, int(ar_x), analogReadBarY, int(ar_w), analogReadBarHeight); //int _channelNumber, int _x, int _y, int _w, int _h
53
53
analogReadBars[i] = tempBar;
54
54
}
55
55
@@ -60,7 +60,7 @@ class W_AnalogRead extends Widget {
60
60
}
61
61
62
62
publicvoidupdate() {
63
-
super.update();//calls the parent update() method of Widget (DON'T REMOVE)
63
+
super.update();
64
64
65
65
if (currentBoard instanceofDataSourcePlayback) {
66
66
if (((DataSourcePlayback)currentBoard) instanceofAnalogCapableBoard
@@ -87,7 +87,7 @@ class W_AnalogRead extends Widget {
87
87
}
88
88
89
89
publicvoiddraw() {
90
-
super.draw();//calls the parent draw() method of Widget (DON'T REMOVE)
90
+
super.draw();
91
91
92
92
//remember to refer to x,y,w,h which are the positioning variables of the Widget class
93
93
if (analogBoard.isAnalogActive()) {
@@ -98,7 +98,7 @@ class W_AnalogRead extends Widget {
98
98
}
99
99
100
100
publicvoidscreenResized() {
101
-
super.screenResized();//calls the parent screenResized() method of Widget (DON'T REMOVE)
101
+
super.screenResized();
102
102
103
103
ar_x =float(x) + arPadding;
104
104
ar_y =float(y) + (arPadding);
@@ -115,11 +115,11 @@ class W_AnalogRead extends Widget {
115
115
}
116
116
117
117
publicvoidmousePressed() {
118
-
super.mousePressed();//calls the parent mousePressed() method of Widget (DON'T REMOVE)
118
+
super.mousePressed();
119
119
}
120
120
121
121
publicvoidmouseReleased() {
122
-
super.mouseReleased();//calls the parent mouseReleased() method of Widget (DON'T REMOVE)
0 commit comments