diff options
| author | Keith Packard <keithp@keithp.com> | 2013-01-10 21:38:15 -0800 | 
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2013-01-10 21:48:31 -0800 | 
| commit | 98e74150040e444ed6480ef3d107caa54c205ef9 (patch) | |
| tree | afcb1fef19fc2336a3b8be445c345779e00ebb42 | |
| parent | 505ef49a041740fe7cbb5c537b68d22e5fb6c0be (diff) | |
micropeak: Demonstrate how to hide various parts of the graph
This just shows how to disable a series and axis; it's not used here.
Signed-off-by: Keith Packard <keithp@keithp.com>
| -rw-r--r-- | micropeak/MicroGraph.java | 6 | 
1 files changed, 6 insertions, 0 deletions
| diff --git a/micropeak/MicroGraph.java b/micropeak/MicroGraph.java index 84320be3..5aa127bb 100644 --- a/micropeak/MicroGraph.java +++ b/micropeak/MicroGraph.java @@ -54,6 +54,11 @@ class MicroSeries extends XYSeries {  		renderer.setBaseToolTipGenerator(ttg);  	} +	void set_enable(boolean enable) { +		renderer.setSeriesVisible(0, enable); +		axis.setVisible(enable); +	} +  	public MicroSeries (String label, String units, Color color) {  		super(label);  		this.label = label; @@ -116,6 +121,7 @@ public class MicroGraph implements AltosUnitsListener {  				accelSeries.add(point.time, AltosConvert.accel.value(point.accel));  			}  		} +//		accelSeries.set_enable(false);  	}  	public void setName (String name) { | 
