summaryrefslogtreecommitdiff
path: root/altosuilib/AltosUIEnable.java
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-02-09 20:24:33 -0800
committerKeith Packard <keithp@keithp.com>2013-02-10 00:30:32 -0800
commit0169e56ad030c0096b1068d00f06957990dfb31f (patch)
tree9a70b183d8170a8633cfac932a0ed8f2f17660f0 /altosuilib/AltosUIEnable.java
parent518b16f64f4be096ceff13ab31b96d6909fe3ae2 (diff)
altosuilib/micropeak: Add state markers to micropeak graph
I think this makes the micropeak graph as functional as the altosui graph Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosuilib/AltosUIEnable.java')
-rw-r--r--altosuilib/AltosUIEnable.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/altosuilib/AltosUIEnable.java b/altosuilib/AltosUIEnable.java
index e5695fa0..297cf320 100644
--- a/altosuilib/AltosUIEnable.java
+++ b/altosuilib/AltosUIEnable.java
@@ -41,28 +41,28 @@ public class AltosUIEnable extends Container {
int y;
class GraphElement implements ActionListener {
- AltosUISeries series;
+ AltosUIGrapher grapher;
JLabel label;
JRadioButton enable;
String name;
public void actionPerformed(ActionEvent ae) {
- series.set_enable(enable.isSelected());
+ grapher.set_enable(enable.isSelected());
}
- GraphElement (String name, AltosUISeries series, boolean enabled) {
+ GraphElement (String name, AltosUIGrapher grapher, boolean enabled) {
this.name = name;
- this.series = series;
+ this.grapher = grapher;
label = new JLabel(name);
enable = new JRadioButton("Enable", enabled);
- series.set_enable(enabled);
+ grapher.set_enable(enabled);
enable.addActionListener(this);
}
}
- public void add(String name, AltosUISeries series, boolean enabled) {
+ public void add(String name, AltosUIGrapher grapher, boolean enabled) {
- GraphElement e = new GraphElement(name, series, enabled);
+ GraphElement e = new GraphElement(name, grapher, enabled);
/* Add label */
GridBagConstraints c = new GridBagConstraints();