C# Class LitDev.Engines.GraphEngine

Show file Open project: litdev1/LitDev

Public Properties

Property Type Description
autoScale bool
borderColour string
borderScale double
doEvents bool
faintlinesColour string
interiorColour string
linesColour string
nTickX double
nTickY double
resolution double
textColour string

Public Methods

Method Description
addSeries ( string graphName, string seriesLabel, Primitive data, string colour, eLineType type ) : void
createGraph ( int width, int height ) : string
createSeries ( string seriesLabel, Primitive data, string colour, eLineType type ) : seriesData
deleteSeries ( string graphName, string name ) : void
exportCSV ( plotData _plotData, string fileName ) : void
scaleAxis ( string graphName, double min, double interval, double max, int axis ) : void
setAxes ( string graphName, string title, string labelX, string labelY ) : void
setEvents ( bool bAdd ) : void

Private Methods

Method Description
_MouseDownEvent ( Object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
_MouseDownEventLegend ( Object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
_MouseDownEventScrollX ( Object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
_MouseDownEventScrollY ( Object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
_MouseMoveEvent ( Object sender, System.Windows.Input.MouseEventArgs e ) : void
_MouseMoveEventLegend ( Object sender, System.Windows.Input.MouseEventArgs e ) : void
_MouseMoveEventScrollX ( Object sender, System.Windows.Input.MouseEventArgs e ) : void
_MouseMoveEventScrollY ( Object sender, System.Windows.Input.MouseEventArgs e ) : void
_MouseUpEvent ( Object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
_MouseUpEventLegend ( Object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
_MouseUpEventScrollX ( Object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
_MouseUpEventScrollY ( Object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
_MouseWheelEvent ( Object sender, System.Windows.Input.MouseWheelEventArgs e ) : void
getBrush ( string colour ) : System.Windows.Media.Brush
getInterval ( double range ) : double
getPlotData ( string graphName ) : plotData
mnuCSV_Click ( Object sender, EventArgs e ) : void
mnuExcel_Click ( Object sender, EventArgs e ) : void
mnuHoverVal_Click ( Object sender, EventArgs e ) : void
mnuLegend_Click ( Object sender, EventArgs e ) : void
mnuResetLegend_Click ( Object sender, EventArgs e ) : void
mnuResetZoom_Click ( Object sender, EventArgs e ) : void
mnuSave_Click ( Object sender, EventArgs e ) : void
plotSeries ( System.Windows.Controls.Canvas _graph, plotData _plotData, eZoom eZoom, eRescale eRescale ) : void
plotSeries_Delegate ( ) : void
round ( double &min, double &max ) : void
sigfig ( double val, int sig ) : double

Method Details

addSeries() public method

public addSeries ( string graphName, string seriesLabel, Primitive data, string colour, eLineType type ) : void
graphName string
seriesLabel string
data Primitive
colour string
type eLineType
return void

createGraph() public method

public createGraph ( int width, int height ) : string
width int
height int
return string

createSeries() public method

public createSeries ( string seriesLabel, Primitive data, string colour, eLineType type ) : seriesData
seriesLabel string
data Primitive
colour string
type eLineType
return seriesData

deleteSeries() public method

public deleteSeries ( string graphName, string name ) : void
graphName string
name string
return void

exportCSV() public method

public exportCSV ( plotData _plotData, string fileName ) : void
_plotData plotData
fileName string
return void

scaleAxis() public method

public scaleAxis ( string graphName, double min, double interval, double max, int axis ) : void
graphName string
min double
interval double
max double
axis int
return void

setAxes() public method

public setAxes ( string graphName, string title, string labelX, string labelY ) : void
graphName string
title string
labelX string
labelY string
return void

setEvents() public method

public setEvents ( bool bAdd ) : void
bAdd bool
return void

Property Details

autoScale public property

public bool autoScale
return bool

borderColour public property

public string borderColour
return string

borderScale public property

public double borderScale
return double

doEvents public property

public bool doEvents
return bool

faintlinesColour public property

public string faintlinesColour
return string

interiorColour public property

public string interiorColour
return string

linesColour public property

public string linesColour
return string

nTickX public property

public double nTickX
return double

nTickY public property

public double nTickY
return double

resolution public property

public double resolution
return double

textColour public property

public string textColour
return string