diff options
| author | Keith Packard <keithp@keithp.com> | 2017-10-04 13:43:45 -0700 |
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2017-10-04 13:43:45 -0700 |
| commit | 2f779d318753b73463f7166977453ab5533e5921 (patch) | |
| tree | 35c62d27a36ce90a3e5789cf9bbc3b9e85e197af /altosuilib/AltosUITimeSeries.java | |
| parent | 730ee7bf91f607ece42c010a10c53d0013492b96 (diff) | |
altosuilib: Add 'show marker' button to graphs
Provides a marker at each actual data point which can be useful for
sparse data sets like telemetry with poor reception.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosuilib/AltosUITimeSeries.java')
| -rw-r--r-- | altosuilib/AltosUITimeSeries.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/altosuilib/AltosUITimeSeries.java b/altosuilib/AltosUITimeSeries.java index 71166064..b98c8376 100644 --- a/altosuilib/AltosUITimeSeries.java +++ b/altosuilib/AltosUITimeSeries.java @@ -66,7 +66,7 @@ public class AltosUITimeSeries extends AltosTimeSeries implements AltosUIGrapher AltosUIAxis axis; boolean marker; boolean marker_top; - XYItemRenderer renderer; + XYLineAndShapeRenderer renderer; XYPlot plot; AltosXYSeries xy_series; ArrayList<ValueMarker> markers; @@ -188,6 +188,10 @@ public class AltosUITimeSeries extends AltosTimeSeries implements AltosUIGrapher this.marker_top = marker_top; } + public void set_shapes_visible(boolean shapes_visible) { + renderer.setSeriesShapesVisible(0, shapes_visible); + } + public AltosUITimeSeries(String label, AltosUnits units) { super(label, units); } |
