/* SCCS @(#)NslOutModule.java 1.1---04/28/99--16:35:43 */ // Copyright: Copyright (c) 1997 University of Southern California Brain Project. // Copyright: This software may be freely copied provided the toplevel // Copyright: COPYRIGHT file is included with each such copy. // Copyright: Email nsl@java.usc.edu. package nslj.src.lang; import nslj.src.system.NslSystem; import nslj.src.display.*; abstract public class NslOutModule extends NslModule { NslDisplaySystem ds; public NslOutModule(String label, NslModule parent) { super(label,parent); if (!system.getNoDisplay()) { ds = new NslDisplaySystem(this, system); system.addDisplaySystem(ds); } } public void addAreaCanvas(NslNumeric n, double min, double max) { if (ds!=null) { ds.frame.addPlot(n,min,max,"Area"); } } public void addBarCanvas(NslNumeric n, double min, double max) { if (ds!=null) { ds.frame.addPlot(n,min,max,"Bar"); } } public void addDotCanvas(NslNumeric n, double min, double max){ if (ds!=null) { ds.frame.addPlot(n,min,max,"Dot"); } } public void addImageCanvas(NslNumeric n, double min, double max){ if (ds!=null) { ds.frame.addPlot(n,min,max,"Image"); } } public void addSpatialCanvas(NslNumeric n, double min, double max){ if (ds!=null) { ds.frame.addPlot(n,min,max,"Spatial"); } } public void addStringCanvas(NslNumeric n, double min, double max){ if (ds!=null) { ds.frame.addPlot(n,min,max,"String"); } } public void addTemporalCanvas(NslNumeric n, double min, double max){ if (ds!=null) { ds.frame.addPlot(n,min,max,"Temporal"); } } public void addUserCanvas(NslNumeric n, double min, double max,String type){ if (ds!=null) { ds.frame.addUserPlot(n,min,max,type); } } }