-
Notifications
You must be signed in to change notification settings - Fork 976
Expand file tree
/
Copy pathShapeAnnotation.cs
More file actions
44 lines (39 loc) · 1.66 KB
/
Copy pathShapeAnnotation.cs
File metadata and controls
44 lines (39 loc) · 1.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="ShapeAnnotation.cs" company="OxyPlot">
// Copyright (c) 2014 OxyPlot contributors
// </copyright>
// <summary>
// Provides an abstract base class for shape annotations, such as <see cref="PointAnnotation" />, <see cref="EllipseAnnotation" />, <see cref="PolygonAnnotation" /> and <see cref="RectangleAnnotation" />.
// </summary>
// --------------------------------------------------------------------------------------------------------------------
#nullable enable
namespace OxyPlot.Annotations
{
/// <summary>
/// Provides an abstract base class for shape annotations, such as <see cref="PointAnnotation" />, <see cref="EllipseAnnotation" />, <see cref="PolygonAnnotation" /> and <see cref="RectangleAnnotation" />.
/// </summary>
public abstract class ShapeAnnotation : TextualAnnotation
{
/// <summary>
/// Initializes a new instance of the <see cref="ShapeAnnotation"/> class.
/// </summary>
protected ShapeAnnotation()
{
this.Stroke = OxyColors.Black;
this.Fill = OxyColors.LightBlue;
}
/// <summary>
/// Gets or sets the fill color.
/// </summary>
/// <value>The fill color.</value>
public OxyColor Fill { get; set; }
/// <summary>
/// Gets or sets the stroke color.
/// </summary>
public OxyColor Stroke { get; set; }
/// <summary>
/// Gets or sets the stroke thickness.
/// </summary>
public double StrokeThickness { get; set; }
}
}