C# Class LiveCharts.Uwp.Components.GeometryParser

A String-To-PathGeometry Parser from https://stringtopathgeometry.codeplex.com/
Datei anzeigen Open project: beto-rodriguez/Live-Charts Class Usage Examples

Public Methods

Method Description
Convert ( string path ) : PathGeometry

Main conversion routine - converts string path data definition to PathGeometry object

ConvertBack ( PathGeometry geometry ) : string

Main back conversion routine - converts PathGeometry object to its string equivalent

Private Methods

Method Description
EnsureFigure ( ) : void
GetNumericListSeparator ( IFormatProvider provider ) : char
IsNumber ( bool allowComma ) : bool
More ( ) : bool
Parse ( string path ) : PathGeometry

Main parser routine, which loops over each char in received string, and performs actions according to command/parameter being passed

ParseBack ( PathGeometry geometry ) : string
ReadBool ( ) : bool
ReadNumber ( bool allowComma ) : double
ReadPoint ( char cmd, bool allowcomma ) : Point
ReadToken ( ) : bool
Reflect ( ) : Point
SkipDigits ( bool signAllowed ) : void
SkipWhiteSpace ( bool allowComma ) : bool
ThrowBadToken ( ) : void

Method Details

Convert() public method

Main conversion routine - converts string path data definition to PathGeometry object
public Convert ( string path ) : PathGeometry
path string String with path data definition
return Windows.UI.Xaml.Media.PathGeometry

ConvertBack() public method

Main back conversion routine - converts PathGeometry object to its string equivalent
public ConvertBack ( PathGeometry geometry ) : string
geometry Windows.UI.Xaml.Media.PathGeometry Path Geometry object
return string