public CoordinateEllipse(float x, float y, float r) { X = x; Y = y; W = H = r * 2; Style = new CoordinateLineStyle(); }
public CoordinateEllipse(float x, float y, float r, CoordinateLineStyle style) { X = x; Y = y; W = H = r * 2; Style = style; }
public CoordinatePolyline SetStyle(CoordinateLineStyle style) { if (style != null) { Style = style; } return(this); }
public CoordinateEllipse(float x, float y, float w, float h) { X = x; Y = y; W = w; H = h; Style = new CoordinateLineStyle(); }
public CoordinateEllipse(float x, float y, float w, float h, CoordinateLineStyle style) { X = x; Y = y; W = w; H = h; Style = style; }
public CoordinateFunction SetStyle(CoordinateLineStyle style) { if (style != null) { Style = style; } return(this); }
public void AddItem(CoordinateLineStyle style, string name) { if (items.Exists(item => item.GetType() == typeof(CoordinatePlaneLegendLine) && style == ((CoordinatePlaneLegendLine)item).LineStyle)) { return; } items.Add(new CoordinatePlaneLegendLine(name, style, Style)); }
public CoordinateFunction(Func <float, float> func, float minX, float maxX, float minY, float maxY, CoordinateLineStyle style, CoordinatePointStyle pointsStyle) { Function = func; Style = style; PointsStyle = pointsStyle; this.minX = minX; this.maxX = maxX; this.minY = minY; this.maxY = maxY; Lines = CalculateLines(func, minX, maxX, minY, maxY); }
public CoordinateLine(CoordinatePoint p1, CoordinatePoint p2, CoordinateLineStyle style) { P1 = p1; P2 = p2; Style = style; }
public CoordinateLine(CoordinatePoint p1, CoordinatePoint p2) { P1 = p1; P2 = p2; Style = new CoordinateLineStyle(); }
public CoordinateFunction(Func <float, float> func, CoordinateLineStyle style, CoordinatePointStyle pointsStyle) { Function = func; Style = style; PointsStyle = pointsStyle; }
public CoordinatePlaneLegendLine(string name, CoordinateLineStyle lineStyle, CoordinatePlaneLegendStyle legendStyle) { this.name = name; LineStyle = lineStyle; Style = legendStyle; }
public CoordinatePlane AddPolyLine(float[] xs, float[] ys, CoordinateLineStyle style) { entities.Add(new CoordinatePolyline(xs.Select((x, i) => Style.GetDefaultStyledPoint(x, ys[i])).ToArray(), style)); return(this); }
public CoordinatePolyline(CoordinatePoint[] points, CoordinateLineStyle style) { Points = points; Style = style; }
public CoordinatePlane AddLine(PointF p1, PointF p2, CoordinateLineStyle style) { entities.Add(new CoordinateLine(Style.GetDefaultStyledPoint(p1.X, p1.Y), Style.GetDefaultStyledPoint(p2.X, p2.Y), style)); return(this); }
public CoordinatePlane AddEllipse(float x, float y, float w, float h, CoordinateLineStyle style) { entities.Add(new CoordinateEllipse(x, y, w, h, style)); return(this); }
public CoordinatePlane AddFunction(Func <float, float> func, CoordinateLineStyle style, CoordinatePointStyle pointsStyle) { entities.Add(new CoordinateFunction(func, style, pointsStyle)); return(this); }
public CoordinatePlane AddFunction(Func <float, float> func, float minX, float maxX, float minY, float maxY, CoordinateLineStyle style) { entities.Add(new CoordinateFunction(func, minX, maxX, minY, maxY, style, Style.DefaultPointStyle)); return(this); }
public CoordinatePlane AddPolyLine(CoordinatePoint[] points, CoordinateLineStyle style) { entities.Add(new CoordinatePolyline(points, style)); return(this); }
public CoordinatePlane AddPolyLine(PointF[] points, CoordinateLineStyle style) { entities.Add(new CoordinatePolyline(points.Select(p => Style.GetDefaultStyledPoint(p.X, p.Y)).ToArray(), style)); return(this); }
public CoordinatePolyline(CoordinatePoint[] points) { Points = points; Style = new CoordinateLineStyle(); }
public CoordinatePlane AddLine(CoordinatePoint p1, CoordinatePoint p2, CoordinateLineStyle style) { entities.Add(new CoordinateLine(p1, p2, style)); return(this); }
public CoordinatePlane AddLegendItem(CoordinateLineStyle style, string name) { Legend.AddItem(style, name); UpdatePlane(); return(this); }
public CoordinatePlane AddLine(float x1, float y1, float x2, float y2, CoordinateLineStyle style) { entities.Add(new CoordinateLine(Style.GetDefaultStyledPoint(x1, y1), Style.GetDefaultStyledPoint(x2, y2), style)); return(this); }