public void line(String srcName,Paint color,String legend,float width,boolean stack){
  if (legend != null) {
    comments.add(new LegendText(color,legend));
  }
  SourcedPlotElement parent=stack ? findParent() : null;
  plotElements.add(new Line(srcName,color,new BasicStroke(width),parent));
}

public void line ( String srcName , Paint color , String legend , float width , boolean stack ) { if ( legend != null ) { comments . add ( new LegendText ( color , legend ) ) ; } SourcedPlotElement parent = stack ? findParent ( ) : null ; plotElements . add ( new Line ( srcName , color , new BasicStroke ( width ) , parent ) ) ; }
plots requested data as a line , using the color and the line width specified .
