/// <summary> /// Create the on-chart rectangle /// </summary> /// <param name="chart">Chart for rectangle</param> /// <param name="left_bottom">The left-bottom corner point</param> /// <param name="size">The size of rectangle</param> public ChartRectangle(Chart chart, DPoint left_bottom, DSize size) : this(chart, left_bottom, size, Color.Black) { }
/// <summary> /// Create math function on chart /// </summary> /// <param name="chart">Chart for function</param> /// <param name="func">The math function for display</param> /// <param name="color">Color of function</param> public ChartFunction(Chart chart, MathFunction func, Color color) : base(chart) { Function = func; Color = color; }
/// <summary> /// Create math function on chart /// </summary> /// <param name="chart">Chart for function</param> /// <param name="func">The math function for display</param> public ChartFunction(Chart chart, MathFunction func) : base(chart) { Function = func; Color = Color.Black; }
/// <summary> /// Create simple square point on chart with specified color and text near it /// </summary> /// <param name="chart">Chart for point</param> /// <param name="text">Text near the point</param> /// <param name="center">The center position of this point, in real coordinates</param> /// <param name="place_type">Text placement type of text near the point</param> public ChartTextPoint(Chart chart, string text, DPoint center, TextPlaceType place_type) : base(chart, center) { Flags = 0; Text = text; Color = Color.Black; TextPlace = place_type; }
/// <summary> /// Base constructor for all on-chart objects /// </summary> /// <param name="chart">The chart on which object should be displayed</param> public ChartObject(Chart chart) { Chart = chart; }
/// <summary> /// Create the on-chart polygon /// </summary> /// <param name="chart">Chart for polygon</param> /// <param name="points">The points of polygon</param> /// <param name="color">The color of polygon</param> public ChartPolygon(Chart chart, DPoint[] points, Color color) : base(chart) { Flags = ChartObject.Rectangle | ChartObject.MouseMovable; Points = points; Color = color; }
/// <summary> /// Create simple square point on chart /// </summary> /// <param name="chart">Chart for point</param> /// <param name="center">The center position of this point, in real coordinates</param> public ChartPoint(Chart chart, DPoint center) : this(chart, center, Color.Black, new DSize(8, 8)) { }
/// <summary> /// Create line on chart /// </summary> /// <param name="chart">Chart for line</param> /// <param name="begin">Begin point of line</param> /// <param name="end">End point of line</param> public ChartLine(Chart chart, DPoint begin, DPoint end) : base(chart) { Begin = begin; End = end; Color = Color.Black; }
/// <summary> /// Create simple square point on chart /// </summary> /// <param name="chart">Chart for point</param> public ChartPoint(Chart chart) : this(chart, new DPoint(), Color.Black, new DSize(8, 8)) { }
/// <summary> /// Create simple square point on chart /// </summary> /// <param name="chart">Chart for point</param> /// <param name="center">The center position of this point, in real coordinates</param> /// <param name="color">The color of this point</param> public ChartPoint(Chart chart, DPoint center, Color color) : this(chart, center, color, new DSize(8, 8)) { }
/// <summary> /// Create simple square point on chart /// </summary> /// <param name="chart">Chart for point</param> /// <param name="center">The center position of this point, in real coordinates</param> /// <param name="color">The color of this point</param> /// <param name="size">The size of this point, in screen coordinates</param> public ChartPoint(Chart chart, DPoint center, Color color, DSize size) : base(chart) { ScreenSizeMode = true; Size = size; Center = center; Color = color; }
/// <summary> /// Create base class for all rect-like objects /// </summary> /// <param name="chart"></param> public ChartRectObject(Chart chart) : base(chart) { Flags |= ChartObject.Rectangle; Font = new Font("Tahoma", 10); LeftBottom = new DPoint(); Size = new DSize(); TextBrush = new SolidBrush(Color.Black); }
/// <summary> /// Create base class for all visible objects /// </summary> /// <param name="chart"></param> public ChartVisibleObject(Chart chart) : base(chart) { }
/// <summary> /// Create the on-chart ellipse /// </summary> /// <param name="chart">Chart for ellipse</param> /// <param name="left_bottom">The left-bottom corner point</param> /// <param name="size">The size of ellipse</param> /// <param name="color">The color of ellipse</param> public ChartEllipse(Chart chart, DPoint left_bottom, DSize size, Color color) : base(chart) { Flags = ChartObject.Rectangle | ChartObject.MouseMovable; LeftBottom = left_bottom; Size = size; Color = color; }
/// <summary> /// Create line on chart /// </summary> /// <param name="chart">Chart for line</param> public ChartLine(Chart chart) : this(chart, new DPoint(), new DPoint()) { }
/// <summary> /// Create the on-chart ellipse /// </summary> /// <param name="chart">Chart for ellipse</param> /// <param name="left_bottom">The left-bottom corner point</param> /// <param name="size">The size of ellipse</param> public ChartEllipse(Chart chart, DPoint left_bottom, DSize size) : this(chart, left_bottom, size, Color.Black) { }
/// <summary> /// Create text line on chart /// </summary> /// <param name="chart">Chart for line</param> /// <param name="text">Text on line</param> public ChartTextLine(Chart chart, string text) : base(chart) { Text = text; Font = new Font("Times New Roman", 10); TextBrush = new SolidBrush(Color.Black); TextBackgroundBrush = new SolidBrush(Color.White); }
/// <summary> /// Create the on-chart polygon /// </summary> /// <param name="chart">Chart for polygon</param> /// <param name="points">The points of polygon</param> public ChartPolygon(Chart chart, DPoint[] points) : this(chart, points, Color.Black) { }