question: 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 ) ) ; }
target:  Draws a horizontal rule into the graph and optionally adds a legend.