public void hrule(double value,Paint color,String legend,BasicStroke stroke){
  LegendText legendText=new LegendText(color,legend);
  comments.add(legendText);
  plotElements.add(new HRule(value,color,legendText,stroke));
}

public void hrule ( double value , Paint color , String legend , BasicStroke stroke ) { LegendText legendText = new LegendText ( color , legend ) ; comments . add ( legendText ) ; plotElements . add ( new HRule ( value , color , legendText , stroke ) ) ; }
draws a horizontal rule into the graph and optionally adds a legend .
