Annotation.cs 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. // Authors:
  2. // Francis Fisher ([email protected])
  3. //
  4. // (C) Francis Fisher 2013
  5. //
  6. // Permission is hereby granted, free of charge, to any person obtaining
  7. // a copy of this software and associated documentation files (the
  8. // "Software"), to deal in the Software without restriction, including
  9. // without limitation the rights to use, copy, modify, merge, publish,
  10. // distribute, sublicense, and/or sell copies of the Software, and to
  11. // permit persons to whom the Software is furnished to do so, subject to
  12. // the following conditions:
  13. //
  14. // The above copyright notice and this permission notice shall be
  15. // included in all copies or substantial portions of the Software.
  16. //
  17. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  18. // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  19. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  20. // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
  21. // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
  22. // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
  23. // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE./
  24. using System;
  25. using System.Drawing;
  26. namespace System.Windows.Forms.DataVisualization.Charting
  27. {
  28. public abstract class Annotation : ChartNamedElement
  29. {
  30. protected Annotation ()
  31. {
  32. }
  33. public virtual ContentAlignment Alignment { get; set; }
  34. public virtual bool AllowAnchorMoving { get; set; }
  35. public virtual bool AllowMoving { get; set; }
  36. public virtual bool AllowPathEditing { get; set; }
  37. public virtual bool AllowResizing { get; set; }
  38. public virtual bool AllowSelecting { get; set; }
  39. public virtual bool AllowTextEditing { get; set; }
  40. public virtual ContentAlignment AnchorAlignment { get; set; }
  41. public virtual DataPoint AnchorDataPoint { get; set; }
  42. public virtual string AnchorDataPointName { get; set; }
  43. public virtual double AnchorOffsetX { get; set; }
  44. public virtual double AnchorOffsetY { get; set; }
  45. public virtual double AnchorX { get; set; }
  46. public virtual double AnchorY { get; set; }
  47. public AnnotationGroup AnnotationGroup { get; private set; }
  48. public abstract string AnnotationType { get; }
  49. public virtual Axis AxisX { get; set; }
  50. public virtual string AxisXName { get; set; }
  51. public virtual Axis AxisY { get; set; }
  52. public virtual string AxisYName { get; set; }
  53. public virtual Color BackColor { get; set; }
  54. public virtual GradientStyle BackGradientStyle { get; set; }
  55. public virtual ChartHatchStyle BackHatchStyle { get; set; }
  56. public virtual Color BackSecondaryColor { get; set; }
  57. public virtual double Bottom { get; set; }
  58. public virtual string ClipToChartArea { get; set; }
  59. public virtual Font Font { get; set; }
  60. public virtual Color ForeColor { get; set; }
  61. public virtual double Height { get; set; }
  62. public virtual bool IsSelected { get; set; }
  63. public virtual bool IsSizeAlwaysRelative { get; set; }
  64. public virtual Color LineColor { get; set; }
  65. public virtual ChartDashStyle LineDashStyle { get; set; }
  66. public virtual int LineWidth { get; set; }
  67. public override string Name { get; set; }
  68. public virtual double Right { get; set; }
  69. public virtual Color ShadowColor { get; set; }
  70. public virtual int ShadowOffset { get; set; }
  71. public AnnotationSmartLabelStyle SmartLabelStyle { get; set; }
  72. public virtual TextStyle TextStyle { get; set; }
  73. public virtual string ToolTip { get; set; }
  74. public virtual bool Visible { get; set; }
  75. public virtual double Width { get; set; }
  76. public virtual double X { get; set; }
  77. public virtual double Y { get; set; }
  78. public virtual string YAxisName { get; set; }
  79. [MonoTODO]
  80. public virtual void BeginPlacement ()
  81. {
  82. throw new NotImplementedException ();
  83. }
  84. [MonoTODO]
  85. public virtual void BringToFront ()
  86. {
  87. throw new NotImplementedException ();
  88. }
  89. [MonoTODO]
  90. protected override void Dispose (bool disposing)
  91. {
  92. throw new NotImplementedException ();
  93. }
  94. [MonoTODO]
  95. public virtual void EndPlacement ()
  96. {
  97. throw new NotImplementedException ();
  98. }
  99. [MonoTODO]
  100. public virtual void ResizeToContent ()
  101. {
  102. throw new NotImplementedException ();
  103. }
  104. [MonoTODO]
  105. public virtual void SendToBack ()
  106. {
  107. throw new NotImplementedException ();
  108. }
  109. [MonoTODO]
  110. public void SetAnchor (DataPoint dataPoint)
  111. {
  112. throw new NotImplementedException ();
  113. }
  114. [MonoTODO]
  115. public void SetAnchor (DataPoint dataPoint1, DataPoint dataPoint2)
  116. {
  117. throw new NotImplementedException ();
  118. }
  119. }
  120. }