AP&C API Reference
Static Public Member Functions | List of all members
Apac.Reporting.ZedGraphUtilities Class Reference

Provides some utility routines for converting APAC data points to ZedGraph data points. More...

Static Public Member Functions

static PointPairList GetGraphDataFromMeasurements (TimeTrackingList< Measurement > source)
 Gets a graphing point pair list from a set of measurements. The timestamp goes on the X-coordinate, the compiled value goes on the Y-coordinate. More...
 
static PointPairList GetGraphDataFromMeasurements (Measurements source)
 Gets a graphing point pair list from a set of measurements. The timestamp goes on the X-coordinate, the compiled value goes on the Y-coordinate. More...
 
static PointPairList GetGraphDataFromAverages (TimeTrackingList< MeasurementAvg > source)
 Gets a graphing point pair list from a set of averages. The timestamp goes on the X-coordinate, the compiled value goes on the Y-coordinate. More...
 
static PointPairList GetGraphDataFromAverages (WeightedMeasurementAvgs source)
 
static void RenderGraph (GraphHandle gphHandle, ZedGraphWebControlEventHandler renderer, System.Drawing.Imaging.ImageFormat format, Size dimensions)
 Uses different delegates passed to the ZedGraph control to generate images with graphs in them. More...
 
static void SetGraphTitles (GraphPane pane, GraphHandle gphHandle)
 Sets the graph titles. More...
 
static ZedGraphWebControlEventHandler CreateCustomStackedBarDelegate (GraphHandle gphHandle, bool showWatermark)
 Creates a custom stacked bar graph with optional XAxis labels More...
 
static void addWatermark (GraphPane pane, float x, float y, float tilt)
 
static ZedGraphWebControlEventHandler CreateLineGraphDelegate (GraphHandle gphHandle, bool showWatermark)
 Creates a line graph with optional XAxis labels More...
 
static ZedGraphWebControlEventHandler CreatePieChartDelegate (GraphHandle gphHandle, bool showWatermark)
 
static ZedGraphWebControlEventHandler CreateStackedHorizontalBarDelegate (GraphHandle gphHandle, bool showWatermark, BarType barType, BarBase barBase)
 Creates a stacked bar graph with optional XAxis labels More...
 
static ZedGraphWebControlEventHandler CreateStackedVerticalBarDelegate (GraphHandle gphHandle, bool showWatermark, BarType barType, BarBase barBase)
 Creates a stacked bar graph with optional XAxis labels More...
 
static CurveHandle BuildTimeCurveHandle (Measurements measurements, double padValue)
 
static CurveHandle BuildTimeCurveHandle (ManagedElement me, List< decimal > samples, decimal padValue)
 
static CurveHandle BuildTimeCurveHandle (WeightedMeasurementAvgs avgs, decimal padValue)
 
static CurveHandle BuildTimeCurveHandle (WeightedMeasurementAvg avg, decimal padValue, Nullable< Color > overrideColor)
 

Detailed Description

Provides some utility routines for converting APAC data points to ZedGraph data points.

Member Function Documentation

◆ CreateCustomStackedBarDelegate()

static ZedGraphWebControlEventHandler Apac.Reporting.ZedGraphUtilities.CreateCustomStackedBarDelegate ( GraphHandle  gphHandle,
bool  showWatermark 
)
inlinestatic

Creates a custom stacked bar graph with optional XAxis labels

Parameters
gphHandle
Returns

◆ CreateLineGraphDelegate()

static ZedGraphWebControlEventHandler Apac.Reporting.ZedGraphUtilities.CreateLineGraphDelegate ( GraphHandle  gphHandle,
bool  showWatermark 
)
inlinestatic

Creates a line graph with optional XAxis labels

Parameters
gphHandle
Returns

◆ CreateStackedHorizontalBarDelegate()

static ZedGraphWebControlEventHandler Apac.Reporting.ZedGraphUtilities.CreateStackedHorizontalBarDelegate ( GraphHandle  gphHandle,
bool  showWatermark,
BarType  barType,
BarBase  barBase 
)
inlinestatic

Creates a stacked bar graph with optional XAxis labels

Parameters
gphHandleThe GPH handle.
showWatermarkif set to true [show watermark].
barTypeType of the bar.
Returns
Returns a delegate that renders a horizontal stacked bar graph.

◆ CreateStackedVerticalBarDelegate()

static ZedGraphWebControlEventHandler Apac.Reporting.ZedGraphUtilities.CreateStackedVerticalBarDelegate ( GraphHandle  gphHandle,
bool  showWatermark,
BarType  barType,
BarBase  barBase 
)
inlinestatic

Creates a stacked bar graph with optional XAxis labels

Parameters
gphHandleThe GPH handle.
showWatermarkif set to true [show watermark].
barTypeType of the bar.
barBaseThe bar base.
Returns

◆ GetGraphDataFromAverages()

static PointPairList Apac.Reporting.ZedGraphUtilities.GetGraphDataFromAverages ( TimeTrackingList< MeasurementAvg source)
inlinestatic

Gets a graphing point pair list from a set of averages. The timestamp goes on the X-coordinate, the compiled value goes on the Y-coordinate.

Parameters
sourceThe data to be graphed in a series.
Returns
The series of points to be graphed.

◆ GetGraphDataFromMeasurements() [1/2]

static PointPairList Apac.Reporting.ZedGraphUtilities.GetGraphDataFromMeasurements ( Measurements  source)
inlinestatic

Gets a graphing point pair list from a set of measurements. The timestamp goes on the X-coordinate, the compiled value goes on the Y-coordinate.

Parameters
sourceThe data to be graphed in a series.
Returns
The series of points to be graphed.

◆ GetGraphDataFromMeasurements() [2/2]

static PointPairList Apac.Reporting.ZedGraphUtilities.GetGraphDataFromMeasurements ( TimeTrackingList< Measurement source)
inlinestatic

Gets a graphing point pair list from a set of measurements. The timestamp goes on the X-coordinate, the compiled value goes on the Y-coordinate.

Parameters
sourceThe data to be graphed in a series.
Returns
The series of points to be graphed.

◆ RenderGraph()

static void Apac.Reporting.ZedGraphUtilities.RenderGraph ( GraphHandle  gphHandle,
ZedGraphWebControlEventHandler  renderer,
System.Drawing.Imaging.ImageFormat  format,
Size  dimensions 
)
inlinestatic

Uses different delegates passed to the ZedGraph control to generate images with graphs in them.

Parameters
gphHandleThe object describing the desired graph.
rendererThe renderer.
formatThe format.
dimensionsThe dimensions.

◆ SetGraphTitles()

static void Apac.Reporting.ZedGraphUtilities.SetGraphTitles ( GraphPane  pane,
GraphHandle  gphHandle 
)
inlinestatic

Sets the graph titles.

Parameters
paneThe pane.
gphHandleThe GPH handle.

The documentation for this class was generated from the following file: