Example #1
0
 public ScatterPlotDataRow(string name, string description, IEnumerable<Point2D<double>> points, ScatterPlotDataRowVisualProperties visualProperties)
   : base(name, description) {
   VisualProperties = visualProperties;
   this.points = new ObservableList<Point2D<double>>(points);
 }
 protected ScatterPlotDataRowVisualProperties(ScatterPlotDataRowVisualProperties original, Cloner cloner)
   : base(original, cloner) {
   this.color = original.color;
   this.pointStyle = original.pointStyle;
   this.pointSize = original.pointSize;
   this.displayName = original.displayName;
   this.isVisibleInLegend = original.isVisibleInLegend;
 }
Example #3
0
 public ScatterPlotDataRow()
   : base() {
   Name = "ScatterPlotDataRow";
   VisualProperties = new ScatterPlotDataRowVisualProperties();
   points = new ObservableList<Point2D<double>>();
 }
 private MarkerStyle ConvertPointStyle(ScatterPlotDataRowVisualProperties.ScatterPlotDataRowPointStyle pointStyle) {
   switch (pointStyle) {
     case ScatterPlotDataRowVisualProperties.ScatterPlotDataRowPointStyle.Circle:
       return MarkerStyle.Circle;
     case ScatterPlotDataRowVisualProperties.ScatterPlotDataRowPointStyle.Cross:
       return MarkerStyle.Cross;
     case ScatterPlotDataRowVisualProperties.ScatterPlotDataRowPointStyle.Diamond:
       return MarkerStyle.Diamond;
     case ScatterPlotDataRowVisualProperties.ScatterPlotDataRowPointStyle.Square:
       return MarkerStyle.Square;
     case ScatterPlotDataRowVisualProperties.ScatterPlotDataRowPointStyle.Star4:
       return MarkerStyle.Star4;
     case ScatterPlotDataRowVisualProperties.ScatterPlotDataRowPointStyle.Star5:
       return MarkerStyle.Star5;
     case ScatterPlotDataRowVisualProperties.ScatterPlotDataRowPointStyle.Star6:
       return MarkerStyle.Star6;
     case ScatterPlotDataRowVisualProperties.ScatterPlotDataRowPointStyle.Star10:
       return MarkerStyle.Star10;
     case ScatterPlotDataRowVisualProperties.ScatterPlotDataRowPointStyle.Triangle:
       return MarkerStyle.Triangle;
     default:
       return MarkerStyle.None;
   }
 }