projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altosuilib: Add 'show marker' button to graphs
[fw/altos]
/
altosuilib
/
AltosUIGraph.java
diff --git
a/altosuilib/AltosUIGraph.java
b/altosuilib/AltosUIGraph.java
index efc3d493cd840794fc8f4ada944c544701cd2066..6328d40a788820e9dc7340addfd759e12ac479bc 100644
(file)
--- a/
altosuilib/AltosUIGraph.java
+++ b/
altosuilib/AltosUIGraph.java
@@
-36,7
+36,7
@@
import org.jfree.chart.labels.*;
import org.jfree.data.xy.*;
import org.jfree.data.*;
import org.jfree.data.xy.*;
import org.jfree.data.*;
-public class AltosUIGraph implements AltosUnitsListener {
+public class AltosUIGraph implements AltosUnitsListener
, AltosShapeListener
{
XYPlot plot;
JFreeChart chart;
XYPlot plot;
JFreeChart chart;
@@
-99,6
+99,11
@@
public class AltosUIGraph implements AltosUnitsListener {
units_changed(false);
}
units_changed(false);
}
+ public void set_shapes_visible(boolean visible) {
+ for (AltosUITimeSeries s : series)
+ s.set_shapes_visible(visible);
+ }
+
public void setName (String name) {
chart.setTitle(name);
}
public void setName (String name) {
chart.setTitle(name);
}
@@
-127,6
+132,8
@@
public class AltosUIGraph implements AltosUnitsListener {
this.series = null;
this.axis_index = 0;
this.series = null;
this.axis_index = 0;
+ enable.register_shape_listener(this);
+
axes_added = new Hashtable<Integer,Boolean>();
xAxis = new NumberAxis("Time (s)");
axes_added = new Hashtable<Integer,Boolean>();
xAxis = new NumberAxis("Time (s)");