C# Class JMeter.Toolkit.Engine.Charts.BaseChartBuilder

Inheritance: IChartBuilder
显示文件 Open project: fdore/jmeter-toolkit

Public Methods

Method Description
Generate ( Stream outputStream, IEnumerable dataResults ) : void

Generate image, and save it to the output stream

Protected Methods

Method Description
GenerateBarColor ( IEnumerable dataResults, int selectedIndex ) : Color

Generate color of the bars

RenderAverageLine ( ZedGraph.GraphPane gp, RequestDataResults d, int x ) : void

Render average response time excluding the 10% fastest and 10% slowest requests

RenderBackground ( ZedGraph.GraphPane gp ) : void

Render background

RenderBar ( ZedGraph.GraphPane gp, IEnumerable dataResults, int selectedIndex, float x, Func func ) : void

Render individual bar

RenderBarContent ( ZedGraph.GraphPane gp, RequestDataResults d, float x ) : void

Render text inside bar

RenderBarLabel ( ZedGraph.GraphPane gp, RequestDataResults d, float x ) : void

Render text at the bottom of a bar

RenderLegend ( ZedGraph.GraphPane gp, IEnumerable dataResults ) : void

Render legend

RenderMinMaxExcludingExtremesLine ( ZedGraph.GraphPane gp, RequestDataResults d, int x, int maxY ) : void

Render min/max response time excluding the 10% fastest and 10% slowest requests

RenderMinMaxLine ( ZedGraph.GraphPane gp, RequestDataResults d, int x, int maxY ) : void

Render min/max line

RenderResponseTimeDistributionCurve ( ZedGraph.GraphPane gp, RequestDataResults dataResults, int index, int max ) : void

Render curve representing the distribution of response time

RenderTimeTag ( ZedGraph.GraphPane gp ) : void

Render time at which the graph has been generated

RenderTitle ( ZedGraph.GraphPane gp, IEnumerable dataResults ) : void

Render chart title

RenderXAxis ( ZedGraph.GraphPane gp, string title, int min, int max ) : void

Render X Axis

RenderYAxis ( ZedGraph.GraphPane gp, string title, int min, int max ) : void

Render Y Axis

Method Details

Generate() public method

Generate image, and save it to the output stream
public Generate ( Stream outputStream, IEnumerable dataResults ) : void
outputStream Stream
dataResults IEnumerable
return void

GenerateBarColor() protected method

Generate color of the bars
protected GenerateBarColor ( IEnumerable dataResults, int selectedIndex ) : Color
dataResults IEnumerable
selectedIndex int
return Color

RenderAverageLine() protected method

Render average response time excluding the 10% fastest and 10% slowest requests
protected RenderAverageLine ( ZedGraph.GraphPane gp, RequestDataResults d, int x ) : void
gp ZedGraph.GraphPane
d JMeter.Toolkit.Services.Spec.RequestDataResults
x int
return void

RenderBackground() protected method

Render background
protected RenderBackground ( ZedGraph.GraphPane gp ) : void
gp ZedGraph.GraphPane
return void

RenderBar() protected method

Render individual bar
protected RenderBar ( ZedGraph.GraphPane gp, IEnumerable dataResults, int selectedIndex, float x, Func func ) : void
gp ZedGraph.GraphPane
dataResults IEnumerable
selectedIndex int
x float
func Func Function to retrieve color to apply to the bar
return void

RenderBarContent() protected method

Render text inside bar
protected RenderBarContent ( ZedGraph.GraphPane gp, RequestDataResults d, float x ) : void
gp ZedGraph.GraphPane
d JMeter.Toolkit.Services.Spec.RequestDataResults
x float
return void

RenderBarLabel() protected method

Render text at the bottom of a bar
protected RenderBarLabel ( ZedGraph.GraphPane gp, RequestDataResults d, float x ) : void
gp ZedGraph.GraphPane
d JMeter.Toolkit.Services.Spec.RequestDataResults
x float
return void

RenderLegend() protected method

Render legend
protected RenderLegend ( ZedGraph.GraphPane gp, IEnumerable dataResults ) : void
gp ZedGraph.GraphPane
dataResults IEnumerable
return void

RenderMinMaxExcludingExtremesLine() protected method

Render min/max response time excluding the 10% fastest and 10% slowest requests
protected RenderMinMaxExcludingExtremesLine ( ZedGraph.GraphPane gp, RequestDataResults d, int x, int maxY ) : void
gp ZedGraph.GraphPane
d JMeter.Toolkit.Services.Spec.RequestDataResults
x int
maxY int
return void

RenderMinMaxLine() protected method

Render min/max line
protected RenderMinMaxLine ( ZedGraph.GraphPane gp, RequestDataResults d, int x, int maxY ) : void
gp ZedGraph.GraphPane
d JMeter.Toolkit.Services.Spec.RequestDataResults
x int
maxY int
return void

RenderResponseTimeDistributionCurve() protected method

Render curve representing the distribution of response time
protected RenderResponseTimeDistributionCurve ( ZedGraph.GraphPane gp, RequestDataResults dataResults, int index, int max ) : void
gp ZedGraph.GraphPane
dataResults JMeter.Toolkit.Services.Spec.RequestDataResults
index int
max int
return void

RenderTimeTag() protected method

Render time at which the graph has been generated
protected RenderTimeTag ( ZedGraph.GraphPane gp ) : void
gp ZedGraph.GraphPane
return void

RenderTitle() protected method

Render chart title
protected RenderTitle ( ZedGraph.GraphPane gp, IEnumerable dataResults ) : void
gp ZedGraph.GraphPane
dataResults IEnumerable
return void

RenderXAxis() protected method

Render X Axis
protected RenderXAxis ( ZedGraph.GraphPane gp, string title, int min, int max ) : void
gp ZedGraph.GraphPane
title string
min int
max int
return void

RenderYAxis() protected method

Render Y Axis
protected RenderYAxis ( ZedGraph.GraphPane gp, string title, int min, int max ) : void
gp ZedGraph.GraphPane
title string
min int
max int
return void