2 writes to Axis
System.Windows.Forms.DataVisualization (2)
Common\General\Axis.cs (2)
694
majorGrid.
Axis
= this;
763
majorTickMark.
Axis
= this;
139 references to Axis
System.Windows.Forms.DataVisualization (139)
Common\General\GridTickMarks.cs (131)
162
if (this.
Axis
.majorGrid.GetIntervalType() == DateTimeIntervalType.Auto)
164
this.interval = this.
Axis
.majorGrid.GetInterval() / Grid.NumberOfIntervals;
169
DateTimeIntervalType localIntervalType = this.
Axis
.majorGrid.GetIntervalType();
170
this.interval =
Axis
.CalcInterval(
171
this.
Axis
.ViewMinimum,
172
this.
Axis
.ViewMinimum + (this.
Axis
.ViewMaximum - this.
Axis
.ViewMinimum) / Grid.NumberOfDateTimeIntervals,
177
this.intervalOffsetType = this.
Axis
.majorGrid.GetIntervalOffsetType();
178
this.intervalOffset = this.
Axis
.majorGrid.GetIntervalOffset();
188
if (
Axis
.IsCustomTickMarks())
196
if (
Axis
.axisType == AxisName.X ||
Axis
.axisType == AxisName.X2)
198
List<string> seriesArray =
Axis
.ChartArea.GetXAxesSeries((
Axis
.axisType == AxisName.X) ? AxisType.Primary : AxisType.Secondary,
Axis
.SubAxisName);
201
axisSeries =
Axis
.Common.DataManager.Series[seriesArray[0]];
210
double current =
Axis
.ViewMinimum;
221
if (!
Axis
.ChartArea.chartAreaIsCurcular ||
222
Axis
.axisType == AxisName.Y ||
223
Axis
.axisType == AxisName.Y2)
236
if ((
Axis
.ViewMaximum -
Axis
.ViewMinimum) / ChartHelper.GetIntervalSize(current, this.GetInterval(), this.GetIntervalType(), axisSeries, 0, DateTimeIntervalType.Number, true) > ChartHelper.MaxNumOfGridlines)
243
if (
Axis
.ViewMaximum <=
Axis
.ViewMinimum)
263
if (
Axis
.AxisPosition == AxisPosition.Left)
267
if (
Axis
.GetIsMarksNextToAxis())
268
axisPosition = (float)
Axis
.GetAxisPosition();
270
axisPosition =
Axis
.PlotAreaPosition.X;
290
else if (
Axis
.AxisPosition == AxisPosition.Right)
294
if (
Axis
.GetIsMarksNextToAxis())
295
axisPosition = (float)
Axis
.GetAxisPosition();
297
axisPosition =
Axis
.PlotAreaPosition.Right;
317
else if (
Axis
.AxisPosition == AxisPosition.Top)
321
if (
Axis
.GetIsMarksNextToAxis())
322
axisPosition = (float)
Axis
.GetAxisPosition();
324
axisPosition =
Axis
.PlotAreaPosition.Y;
344
else if (
Axis
.AxisPosition == AxisPosition.Bottom)
348
if (
Axis
.GetIsMarksNextToAxis())
349
axisPosition = (float)
Axis
.GetAxisPosition();
351
axisPosition =
Axis
.PlotAreaPosition.Bottom;
376
while (current <=
Axis
.ViewMaximum)
382
if (this.majorGridTick || this.
Axis
.IsLogarithmic == false)
408
logInterval = Math.Log(1 + this.interval * logStep,
Axis
.logarithmBase);
425
if (current ==
Axis
.ViewMaximum && axisSeries != null)
445
if (this.
Axis
!= null && this.
Axis
.ChartArea != null)
447
if (this.
Axis
.ChartArea.chartAreaIsCurcular &&
448
((this.
Axis
.IsReversed == false && current ==
Axis
.ViewMinimum) ||
449
(this.
Axis
.IsReversed == true && current ==
Axis
.ViewMaximum)))
457
if (!this.majorGridTick && this.
Axis
.IsLogarithmic)
461
if (current >
Axis
.ViewMaximum)
467
if ((decimal)current >= (decimal)
Axis
.ViewMinimum)
470
if (
Axis
.AxisPosition == AxisPosition.Left)
472
first.Y = (float)
Axis
.GetLinearPosition(current);
477
else if (
Axis
.AxisPosition == AxisPosition.Right)
479
first.Y = (float)
Axis
.GetLinearPosition(current);
484
else if (
Axis
.AxisPosition == AxisPosition.Top)
486
first.X = (float)
Axis
.GetLinearPosition(current);
491
else if (
Axis
.AxisPosition == AxisPosition.Bottom)
493
first.X = (float)
Axis
.GetLinearPosition(current);
497
if (
Axis
.Common.ProcessModeRegions)
499
if (this.
Axis
.ChartArea.chartAreaIsCurcular)
506
this.
Axis
.Common.HotRegionsList.AddHotRegion(
513
else if (!this.
Axis
.ChartArea.Area3DStyle.Enable3D || this.
Axis
.ChartArea.chartAreaIsCurcular)
517
Axis
.Common.HotRegionsList.AddHotRegion(rect, this, ChartElementType.TickMarks, true);
521
if (!
Axis
.Common.ProcessModePaint) //if ProcessModePaint is true it will be called later
527
if (
Axis
.Common.ProcessModePaint)
530
if (!this.
Axis
.ChartArea.Area3DStyle.Enable3D || this.
Axis
.ChartArea.chartAreaIsCurcular)
542
if (this.majorGridTick || this.
Axis
.IsLogarithmic == false)
568
double viewMinimum =
Axis
.ViewMinimum;
603
if (
Axis
.AxisPosition == AxisPosition.Left)
607
if (
Axis
.GetIsMarksNextToAxis())
608
axisPosition = (float)
Axis
.GetAxisPosition();
610
axisPosition =
Axis
.PlotAreaPosition.X;
630
else if (
Axis
.AxisPosition == AxisPosition.Right)
634
if (
Axis
.GetIsMarksNextToAxis())
635
axisPosition = (float)
Axis
.GetAxisPosition();
637
axisPosition =
Axis
.PlotAreaPosition.Right;
657
else if (
Axis
.AxisPosition == AxisPosition.Top)
661
if (
Axis
.GetIsMarksNextToAxis())
662
axisPosition = (float)
Axis
.GetAxisPosition();
664
axisPosition =
Axis
.PlotAreaPosition.Y;
684
else if (
Axis
.AxisPosition == AxisPosition.Bottom)
688
if (
Axis
.GetIsMarksNextToAxis())
689
axisPosition = (float)
Axis
.GetAxisPosition();
691
axisPosition =
Axis
.PlotAreaPosition.Bottom;
711
foreach (CustomLabel label in
Axis
.CustomLabels)
716
if (position >=
Axis
.ViewMinimum && position <=
Axis
.ViewMaximum)
719
if (
Axis
.AxisPosition == AxisPosition.Left)
721
first.Y = (float)
Axis
.GetLinearPosition(position);
726
else if (
Axis
.AxisPosition == AxisPosition.Right)
728
first.Y = (float)
Axis
.GetLinearPosition(position);
733
else if (
Axis
.AxisPosition == AxisPosition.Top)
735
first.X = (float)
Axis
.GetLinearPosition(position);
740
else if (
Axis
.AxisPosition == AxisPosition.Bottom)
742
first.X = (float)
Axis
.GetLinearPosition(position);
746
if (
Axis
.Common.ProcessModeRegions)
748
if (!this.
Axis
.ChartArea.Area3DStyle.Enable3D || this.
Axis
.ChartArea.chartAreaIsCurcular)
752
Axis
.Common.HotRegionsList.AddHotRegion(rect, this, ChartElementType.TickMarks, true);
760
if (
Axis
.Common.ProcessModePaint)
763
if (!this.
Axis
.ChartArea.Area3DStyle.Enable3D || this.
Axis
.ChartArea.chartAreaIsCurcular)
792
ChartArea area = this.
Axis
.ChartArea;
798
float wallZPosition =
Axis
.GetMarksZPosition(out axisOnEdge);
807
this.
Axis
.MajorTickMark.TickMarkStyle == TickMarkStyle.AcrossAxis ||
808
this.
Axis
.MajorTickMark.TickMarkStyle == TickMarkStyle.InsideArea ||
809
this.
Axis
.MinorTickMark.TickMarkStyle == TickMarkStyle.AcrossAxis ||
810
this.
Axis
.MinorTickMark.TickMarkStyle == TickMarkStyle.InsideArea)
825
if (
Axis
.AxisPosition == AxisPosition.Bottom &&
826
(!
Axis
.GetIsMarksNextToAxis() || axisOnEdge) &&
831
else if (
Axis
.AxisPosition == AxisPosition.Left &&
832
(!
Axis
.GetIsMarksNextToAxis() || axisOnEdge) &&
837
else if (
Axis
.AxisPosition == AxisPosition.Right &&
838
(!
Axis
.GetIsMarksNextToAxis() || axisOnEdge) &&
843
else if (
Axis
.AxisPosition == AxisPosition.Top &&
844
(!
Axis
.GetIsMarksNextToAxis() || axisOnEdge))
855
if (
Axis
.AxisPosition == AxisPosition.Top)
858
float axisPosition =
Axis
.PlotAreaPosition.Y;
896
if (
Axis
.AxisPosition == AxisPosition.Left && !area.IsSideSceneWallOnLeft())
899
float axisPosition =
Axis
.PlotAreaPosition.X;
937
else if (
Axis
.AxisPosition == AxisPosition.Right && area.IsSideSceneWallOnLeft())
940
float axisPosition =
Axis
.PlotAreaPosition.Right;
985
Axis
.Common,
1001
Axis
.Common,
Common\General\Selection.cs (8)
2359
result.Axis = gridLines.
Axis
;
2360
if (gridLines.
Axis
!= null)
2362
result.ChartArea = gridLines.
Axis
.ChartArea;
2389
result.Axis = tickMarks.
Axis
;
2390
if (tickMarks.
Axis
!= null)
2392
result.ChartArea = tickMarks.
Axis
.ChartArea;
2759
if (!IsArea3D(grid.
Axis
.ChartArea))
2761
if (IsChartAreaCircular(grid.
Axis
.ChartArea))