C# Class PoiServer.PoI.Highlight

Inheritance: Caliburn.Micro.PropertyChangedBase, IConvertibleXml
显示文件 Open project: TNOCS/csTouch Class Usage Examples

Public Properties

Property Type Description
Histogram int>.Dictionary

Private Properties

Property Type Description
CalculateMinLabelValue double
CalculateMinSensorValue double
CalculateResultUsingMultipleCriteria double
CreateCriteria bool
CreateMetaInfo void
CreateResultFormula void
GetHighlightColor Color
GetIcon string
GetOpacity double
GetSensorValue double
GetStringHighlightColor Color
GetStrokeWidth double
GetSymbolSize double
ParseLabelToDouble double
RemoveMetaInfo void

Public Methods

Method Description
CalculateCategories ( PoiService service ) : void
CalculateMax ( PoiService service ) : void
CalculateMin ( PoiService service ) : void
CalculateResult ( BaseContent bc ) : void
CleanUp ( PoiService service ) : void
CreatePallette ( int categories, string type, string name, bool gradient ) : void
FromXml ( System.Xml.Linq.XElement hx ) : void
ToXml ( ) : System.Xml.Linq.XElement
UpdateMathFormula ( ) : void
UpdateMultipleCriteria ( BaseContent p ) : void

Initializes the multiple criteria and creates an initial MCA function (weigthed values) for the evaluation.

UpdateTitle ( ) : void

Private Methods

Method Description
CalculateMinLabelValue ( PoiService service ) : double
CalculateMinSensorValue ( PoiService service ) : double
CalculateResultUsingMultipleCriteria ( BaseContent bc ) : double

Calculate the results using the created formula. Note that you can have up to 8 parameters.

CreateCriteria ( BaseContent p ) : bool

Create the multiple criteria based on the SelectionCriteria.

CreateMetaInfo ( BaseContent bc ) : void
CreateResultFormula ( string formula ) : void
GetHighlightColor ( Highlight hl, double value ) : Color
GetIcon ( Highlight hl, string value ) : string
GetOpacity ( Highlight hl, double value ) : double
GetSensorValue ( BaseContent bc, string key ) : double
GetStringHighlightColor ( Highlight hl, string value ) : Color
GetStrokeWidth ( Highlight hl, double value ) : double
GetSymbolSize ( Highlight hl, double value ) : double
ParseLabelToDouble ( BaseContent bc, string key ) : double

Try to parse the label to a double using either the invariant or the Dutch culture.

RemoveMetaInfo ( BaseContent bc ) : void

Method Details

CalculateCategories() public method

public CalculateCategories ( PoiService service ) : void
service PoiService
return void

CalculateMax() public method

public CalculateMax ( PoiService service ) : void
service PoiService
return void

CalculateMin() public method

public CalculateMin ( PoiService service ) : void
service PoiService
return void

CalculateResult() public method

public CalculateResult ( BaseContent bc ) : void
bc DataServer.BaseContent
return void

CleanUp() public method

public CleanUp ( PoiService service ) : void
service PoiService
return void

CreatePallette() public method

public CreatePallette ( int categories, string type, string name, bool gradient ) : void
categories int
type string
name string
gradient bool
return void

FromXml() public method

public FromXml ( System.Xml.Linq.XElement hx ) : void
hx System.Xml.Linq.XElement
return void

ToXml() public method

public ToXml ( ) : System.Xml.Linq.XElement
return System.Xml.Linq.XElement

UpdateMathFormula() public method

public UpdateMathFormula ( ) : void
return void

UpdateMultipleCriteria() public method

Initializes the multiple criteria and creates an initial MCA function (weigthed values) for the evaluation.
public UpdateMultipleCriteria ( BaseContent p ) : void
p DataServer.BaseContent
return void

UpdateTitle() public method

public UpdateTitle ( ) : void
return void

Property Details

Histogram public_oe static_oe property

public static Dictionary Histogram
return int>.Dictionary