Code example for Vector

Methods: removeAllElements

0
	double miny;
	double maxy;
	String Xlabel;
	String Ylabel;
	String Tlabel;
	Vector<PlotLine> PlotLines = new Vector<PlotLine>();
	public transient boolean Hold_b; 
	int    ntx = 10, nty = 10;
	double  a0, a1;
	 
	public PlotGraph(int plotmode) {
		reset(); 
		setmode(plotmode);
	} 
 
	public void setmode( int mode ){
		if(mode != plotmode)
			reset(); 
		plotmode = mode;
	} 
 
	private void reset(){ 
  		PlotLines.removeAllElements();
  		minx=Double.POSITIVE_INFINITY;
  		maxx=Double.NEGATIVE_INFINITY;
  		miny=Double.POSITIVE_INFINITY;
  		maxy=Double.NEGATIVE_INFINITY;
   		Xlabel  = null;