Graphical 2D size with double width and height
コード例 #1
0
 /// <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);
 }
コード例 #2
0
 /// <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) { }
コード例 #3
0
 /// <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;
 }
コード例 #4
0
 /// <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) { }
コード例 #5
0
 /// <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;
 }
コード例 #6
0
 /// <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);
 }