Axis.cs 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. //
  2. // Authors:
  3. // Jonathan Pobst ([email protected])
  4. // Francis Fisher ([email protected])
  5. //
  6. // Copyright (C) 2009 Novell, Inc (http://www.novell.com)
  7. //
  8. // Permission is hereby granted, free of charge, to any person obtaining
  9. // a copy of this software and associated documentation files (the
  10. // "Software"), to deal in the Software without restriction, including
  11. // without limitation the rights to use, copy, modify, merge, publish,
  12. // distribute, sublicense, and/or sell copies of the Software, and to
  13. // permit persons to whom the Software is furnished to do so, subject to
  14. // the following conditions:
  15. //
  16. // The above copyright notice and this permission notice shall be
  17. // included in all copies or substantial portions of the Software.
  18. //
  19. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  20. // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  21. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  22. // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
  23. // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
  24. // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
  25. // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  26. using System;
  27. using System.Drawing;
  28. namespace System.Windows.Forms.DataVisualization.Charting
  29. {
  30. public class Axis : ChartNamedElement, IDisposable
  31. {
  32. #region Constructors
  33. public Axis (ChartArea chartArea, AxisName axisTypeName)
  34. {
  35. this.ChartArea = chartArea;
  36. this.AxisName = axisTypeName;
  37. }
  38. public Axis ()
  39. {
  40. }
  41. #endregion
  42. #region Public Properties
  43. public AxisArrowStyle ArrowStyle { get; set; }
  44. public virtual AxisName AxisName { get; private set; }
  45. public virtual double Crossing { get; set; }
  46. public CustomLabelCollection CustomLabels { get; private set; }
  47. public AxisEnabled Enabled { get; set; }
  48. public Color InterlacedColor { get; set; }
  49. public double Interval { get; set; }
  50. public IntervalAutoMode IntervalAutoMode { get; set; }
  51. public double IntervalOffset { get; set; }
  52. public DateTimeIntervalType IntervalOffsetType { get; set; }
  53. public DateTimeIntervalType IntervalType { get; set; }
  54. public bool IsInterlaced { get; set; }
  55. public bool IsLabelAutoFit { get; set; }
  56. public bool IsLogarithmic { get; set; }
  57. public bool IsMarginVisible { get; set; }
  58. public virtual bool IsMarksNextToAxis { get; set; }
  59. public bool IsReversed { get; set; }
  60. public bool IsStartedFromZero { get; set; }
  61. public int LabelAutoFitMaxFontSize { get; set; }
  62. public int LabelAutoFitMinFontSize { get; set; }
  63. public LabelAutoFitStyles LabelAutoFitStyle { get; set; }
  64. public LabelStyle LabelStyle { get; set; }
  65. public Color LineColor { get; set; }
  66. public ChartDashStyle LineDashStyle { get; set; }
  67. public int LineWidth { get; set; }
  68. public double LogarithmBase { get; set; }
  69. public Grid MajorGrid { get; set; }
  70. public TickMark MajorTickMark { get; set; }
  71. public double Maximum { get; set; }
  72. public float MaximumAutoSize { get; set; }
  73. public double Minimum { get; set; }
  74. public Grid MinorGrid { get; set; }
  75. public TickMark MinorTickMark { get; set; }
  76. public override string Name {
  77. get { return base.Name; }
  78. set { base.Name = value; }
  79. }
  80. public virtual AxisScaleBreakStyle ScaleBreakStyle { get; set; }
  81. public AxisScaleView ScaleView { get; set; }
  82. public AxisScrollBar ScrollBar { get; set; }
  83. public StripLinesCollection StripLines { get; private set; }
  84. public TextOrientation TextOrientation { get; set; }
  85. public string Title { get; set; }
  86. public StringAlignment TitleAlignment { get; set; }
  87. public Font TitleFont { get; set; }
  88. public Color TitleForeColor { get; set; }
  89. public string ToolTip { get; set; }
  90. #endregion
  91. private ChartArea ChartArea;
  92. #region Public Methods
  93. [MonoTODO]
  94. public double GetPosition (double axisValue)
  95. {
  96. throw new NotImplementedException ();
  97. }
  98. [MonoTODO]
  99. public double PixelPositionToValue (double position)
  100. {
  101. throw new NotImplementedException ();
  102. }
  103. [MonoTODO]
  104. public double PositionToValue (double position)
  105. {
  106. throw new NotImplementedException ();
  107. }
  108. [MonoTODO]
  109. public void RoundAxisValues ()
  110. {
  111. throw new NotImplementedException ();
  112. }
  113. [MonoTODO]
  114. public double ValueToPixelPosition (double axisValue)
  115. {
  116. throw new NotImplementedException ();
  117. }
  118. [MonoTODO]
  119. public double ValueToPosition (double axisValue)
  120. {
  121. throw new NotImplementedException ();
  122. }
  123. #endregion
  124. }
  125. }