public ScatterPlotDataRow()
     : base()
 {
     Name             = "ScatterPlotDataRow";
     VisualProperties = new ScatterPlotDataRowVisualProperties();
     points           = new ObservableList <Point2D <double> >();
 }
 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;
 }
 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;
     this.regressionType              = original.regressionType;
     this.polynomialRegressionOrder   = original.polynomialRegressionOrder;
     this.isRegressionVisibleInLegend = original.isRegressionVisibleInLegend;
     this.regressionDisplayName       = original.regressionDisplayName;
 }
 public ScatterPlotDataRow(string name, string description, IEnumerable <Point2D <double> > points)
     : base(name, description)
 {
     VisualProperties = new ScatterPlotDataRowVisualProperties(name);
     this.points      = new ObservableList <Point2D <double> >(points);
 }
Example #5
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);
 }
Example #6
0
 public ScatterPlotDataRow()
   : base() {
   Name = "ScatterPlotDataRow";
   VisualProperties = new ScatterPlotDataRowVisualProperties();
   points = new ObservableList<Point2D<double>>();
 }
 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;
 }
 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;
   }
 }