Axis.cs 4.1 KB

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