question: protected ResultPlot createChart ( String metric ) { if ( metric . equals ( "Approximation Set" ) ) { return new ApproximationSetPlot ( this , metric ) ; } else { return new LinePlot ( this , metric ) ; } }
target:  Creates and returns the GUI component for plotting the specified metric.